##// END OF EJS Templates
core: switched bumpversion to pyproject setup, to deprecate bumpversion
super-admin -
r1308:5c188ed8 default
parent child Browse files
Show More
@@ -1,73 +1,94 b''
1 [build-system]
1 [build-system]
2 requires = ["setuptools>=61.0.0", "wheel"]
2 requires = ["setuptools>=61.0.0", "wheel"]
3 build-backend = "setuptools.build_meta"
3 build-backend = "setuptools.build_meta"
4
4
5 [project]
5 [project]
6 name = "rhodecode-vcsserver"
6 name = "rhodecode-vcsserver"
7 description = "Version Control System Server for RhodeCode"
7 description = "Version Control System Server for RhodeCode"
8 authors = [
8 authors = [
9 {name = "RhodeCode GmbH", email = "support@rhodecode.com"},
9 {name = "RhodeCode GmbH", email = "support@rhodecode.com"},
10 ]
10 ]
11
11
12 license = {text = "GPL V3"}
12 license = {text = "GPL V3"}
13 requires-python = ">=3.10"
13 requires-python = ">=3.10"
14 dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
14 dynamic = ["version", "readme", "dependencies", "optional-dependencies"]
15 classifiers = [
15 classifiers = [
16 'Development Status :: 6 - Mature',
16 'Development Status :: 6 - Mature',
17 'Intended Audience :: Developers',
17 'Intended Audience :: Developers',
18 'Operating System :: OS Independent',
18 'Operating System :: OS Independent',
19 'Topic :: Software Development :: Version Control',
19 'Topic :: Software Development :: Version Control',
20 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
20 'License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)',
21 'Programming Language :: Python :: 3.10',
21 'Programming Language :: Python :: 3.10',
22 ]
22 ]
23
23
24 [project.entry-points."paste.app_factory"]
24 [project.entry-points."paste.app_factory"]
25 main = "vcsserver.http_main:main"
25 main = "vcsserver.http_main:main"
26
26
27
27
28 [tool.setuptools]
28 [tool.setuptools]
29 packages = ["vcsserver"]
29 packages = ["vcsserver"]
30
30
31 [tool.setuptools.dynamic]
31 [tool.setuptools.dynamic]
32 readme = {file = ["README.rst"], content-type = "text/rst"}
32 readme = {file = ["README.rst"], content-type = "text/rst"}
33 version = {file = "vcsserver/VERSION"}
33 version = {file = "vcsserver/VERSION"}
34 dependencies = {file = ["requirements.txt"]}
34 dependencies = {file = ["requirements.txt"]}
35 optional-dependencies.tests = {file = ["requirements_test.txt"]}
35 optional-dependencies.tests = {file = ["requirements_test.txt"]}
36
36
37 [tool.ruff]
37 [tool.ruff]
38
38
39 select = [
39 select = [
40 # Pyflakes
40 # Pyflakes
41 "F",
41 "F",
42 # Pycodestyle
42 # Pycodestyle
43 "E",
43 "E",
44 "W",
44 "W",
45 # isort
45 # isort
46 "I001"
46 "I001"
47 ]
47 ]
48
48
49 ignore = [
49 ignore = [
50 "E501", # line too long, handled by black
50 "E501", # line too long, handled by black
51 ]
51 ]
52
52
53 # Same as Black.
53 # Same as Black.
54 line-length = 120
54 line-length = 120
55
55
56 [tool.ruff.isort]
56 [tool.ruff.isort]
57
57
58 known-first-party = ["vcsserver"]
58 known-first-party = ["vcsserver"]
59
59
60 [tool.ruff.format]
60 [tool.ruff.format]
61
61
62 # Like Black, use double quotes for strings.
62 # Like Black, use double quotes for strings.
63 quote-style = "double"
63 quote-style = "double"
64
64
65 # Like Black, indent with spaces, rather than tabs.
65 # Like Black, indent with spaces, rather than tabs.
66 indent-style = "space"
66 indent-style = "space"
67
67
68 # Like Black, respect magic trailing commas.
68 # Like Black, respect magic trailing commas.
69 skip-magic-trailing-comma = false
69 skip-magic-trailing-comma = false
70
70
71 # Like Black, automatically detect the appropriate line ending.
71 # Like Black, automatically detect the appropriate line ending.
72 line-ending = "auto"
72 line-ending = "auto"
73
73
74
75 [tool.bumpversion]
76 current_version = "5.4.0"
77 parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
78 serialize = ["{major}.{minor}.{patch}"]
79 search = "{current_version}"
80 replace = "{new_version}"
81 regex = false
82 ignore_missing_version = false
83 ignore_missing_files = false
84 tag = false
85 sign_tags = false
86 tag_name = "v{new_version}"
87 tag_message = "release(version-bump): {current_version} → {new_version}"
88 allow_dirty = false
89 commit = false
90 message = "release(version-bump): {current_version} → {new_version}"
91 commit_args = ""
92 setup_hooks = []
93 pre_commit_hooks = []
94 post_commit_hooks = []
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now