-
Notifications
You must be signed in to change notification settings - Fork 131
Expand file tree
/
Copy pathpyproject.toml
More file actions
83 lines (73 loc) · 2.49 KB
/
pyproject.toml
File metadata and controls
83 lines (73 loc) · 2.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
[build-system]
requires = ["setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pynvim"
version = "0.6.1.dev0"
description = "Python client for Neovim"
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [
{ name = "Neovim Authors" }
]
requires-python = ">=3.10"
dependencies = [
"msgpack>=1.0.0",
"greenlet>=3.0; python_implementation != 'PyPy'",
"typing-extensions>=4.5; python_version < '3.13'",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
]
[project.optional-dependencies]
test = [
"pytest",
"pytest-timeout",
]
docs = [
"sphinx",
"sphinx-rtd-theme",
]
dev = [
"bump-my-version",
]
[project.scripts]
pynvim-python = "pynvim.python:main"
[project.urls]
Homepage = "https://github.com/neovim/pynvim"
Download = "https://github.com/neovim/pynvim/archive/refs/tags/0.6.1.dev0.tar.gz"
Documentation = "https://pynvim.readthedocs.io"
# Configuration for bumpversion / bump-my-version
[tool.bumpversion]
current_version = "0.6.1.dev0"
commit = true
tag = true
# Regex that captures major/minor/patch/prerelease (prerelease optional)
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)(?:\\.(?P<prerelease>[a-zA-Z]+\\d*))?"
serialize = [
"{major}.{minor}.{patch}.{prerelease}",
"{major}.{minor}.{patch}"
]
# Update the version in pyproject.toml
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'version = "{current_version}"'
replace = 'version = "{new_version}"'
# Update the version in pynvim/_version.py (non-hardcoded)
[[tool.bumpversion.files]]
filename = "pynvim/_version.py"
search = 'VERSION = SimpleNamespace(major={current_major}, minor={current_minor}, patch={current_patch}, prerelease="{current_prerelease}")'
replace = 'VERSION = SimpleNamespace(major={new_major}, minor={new_minor}, patch={new_patch}, prerelease="{new_prerelease}")'
# Update the download URL in pyproject.toml
[[tool.bumpversion.files]]
filename = "pyproject.toml"
search = 'Download = "https://github.com/neovim/pynvim/archive/refs/tags/{current_version}.tar.gz"'
replace = 'Download = "https://github.com/neovim/pynvim/archive/refs/tags/{new_version}.tar.gz"'