1
+ #
2
+ #
3
+ # See also https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
4
+
1
5
[build-system ]
2
6
requires = [
3
7
# sync with setup.py until we discard non-pep-517/518
4
- " setuptools>=40 .0" ,
8
+ " setuptools>=62 .0" ,
5
9
" setuptools-scm" ,
6
10
" wheel" ,
11
+ " build" ,
7
12
]
8
13
build-backend = " setuptools.build_meta"
9
14
10
15
[project ]
11
16
name = " semver"
12
- version = " 3.0.0-alpha0"
13
17
description = " Python helper for Semantic Versioning (http://semver.org/)"
14
- readme = " README.rst"
15
18
requires-python = " >=3.6"
16
19
license = {file = " LICENSE.txt" }
17
- keywords = [" semantic versioning" , " version" , " semver" , ]
20
+ keywords = [" semantic versioning" , " version" , " semver" ,]
18
21
authors = [
19
22
{name = " Kostiantyn Rybnikov" , email = " k-bx@k-bx.com" }
20
23
]
21
24
maintainers = [
22
- {name = " Thomas Schraitle" , email = " " }
25
+ {name = " Sebastien Celles" , email = " s.celles@gmail.com" },
26
+ {name = " Tom Schraitle" , email = " tom_schr@web.de" },
23
27
]
24
28
classifiers =[
25
29
# See https://pypi.org/pypi?%3Aaction=list_classifiers
@@ -33,35 +37,51 @@ classifiers=[
33
37
" Programming Language :: Python :: 3.7" ,
34
38
" Programming Language :: Python :: 3.8" ,
35
39
" Programming Language :: Python :: 3.9" ,
36
- # "Programming Language :: Python :: Implementation :: PyPy",
40
+ " Programming Language :: Python :: 3.10" ,
41
+ " Programming Language :: Python :: 3.11" ,
37
42
" Topic :: Software Development :: Libraries :: Python Modules" ,
38
43
]
44
+ dynamic = [" version" ]
39
45
40
- [project .optional-dependencies ]
41
- test = [
42
- " pytest" ,
43
- " pytest-cov[all]" ,
44
- ]
45
- doc = [" sphinx" ,
46
- " sphinx-argparse" ,
47
- ]
46
+ [tool .setuptools .dynamic ]
47
+ version = {attr = " semver.__about__.__version__" }
48
48
49
+ [project .readme ]
50
+ file = " README.rst"
51
+ content-type = " text/x-rst"
49
52
50
53
[project .urls ]
51
- homepage = " https://github.com/python-semver/python-semver"
52
- documentation = " https://python-semver.rtfd.io/"
53
- changelog = " https://github.com/python-semver/python-semver/blob/master/CHANGELOG.rst"
54
+ Homepage = " https://github.com/python-semver/python-semver"
55
+ Changelog = " https://python-semver.readthedocs.io/en/latest/changelog.html"
56
+ Documentation = " https://python-semver.rtfd.io"
57
+ Releases = " https://github.com/python-semver/python-semver/releases"
58
+ "Bug Tracker" = " https://github.com/python-semver/python-semver/issues"
54
59
55
60
[project .scripts ]
56
- pysemver = " semver:main"
61
+ pysemver = " semver.cli:main"
62
+
63
+ [tool .setuptools ]
64
+ # package-dir = {"" = "src"}
65
+ include-package-data = true
57
66
67
+ [tool .setuptools .packages .find ]
68
+ where = [" src" ]
69
+ namespaces = false
58
70
59
- [tool .flit .metadata ]
60
- module = " semver"
61
- homepage = " https://github.com/python-semver/python-semver"
62
- license = " License :: OSI Approved :: BSD License"
71
+ [tool .setuptools .package-data ]
72
+ semver = [" py.typed" ]
63
73
64
74
75
+ [project .optional-dependencies ]
76
+ test = [
77
+ " pytest" ,
78
+ " pytest-cov[all]" ,
79
+ ]
80
+ doc = [
81
+ " sphinx" ,
82
+ " sphinx-argparse" ,
83
+ ]
84
+
65
85
66
86
[tool .black ]
67
87
line-length = 88
@@ -78,7 +98,7 @@ include = '''
78
98
79
99
[tool .towncrier ]
80
100
package = " semver"
81
- # package_dir = "src"
101
+ package_dir = " src"
82
102
filename = " CHANGELOG.rst"
83
103
directory = " changelog.d/"
84
104
title_format = " Version {version}"
@@ -125,52 +145,3 @@ template = "changelog.d/_template.rst"
125
145
directory = " removal"
126
146
name = " Removals"
127
147
showcontent = true
128
-
129
-
130
- [tool .poetry ]
131
- name = " semver"
132
- version = " 2.9.0"
133
- description = " Python helper for Semantic Versioning (http://semver.org/)"
134
- authors = [
135
- " Kostiantyn Rybnikov <k-bx@k-bx.com>" ,
136
- " Sébastien Celles <s.celles@gmail.com>" ,
137
- ]
138
- license = " BSD-3-Clause"
139
- readme = " README.rst"
140
- homepage = " https://github.com/python-semver/python-semver"
141
- repository = " https://github.com/python-semver/python-semver"
142
- documentation = " https://python-semver.readthedocs.io/en/latest/"
143
- keywords = [" semantic versioning" , " semver" , " version" , ]
144
- classifiers = [
145
- " Topic :: Software Development" ,
146
- " Topic :: Software Development :: Libraries :: Python Modules" ,
147
- " Environment :: Web Environment" ,
148
- " Intended Audience :: Developers" ,
149
- " License :: OSI Approved :: BSD License" ,
150
- " Operating System :: OS Independent" ,
151
- " Programming Language :: Python" ,
152
- " Programming Language :: Python :: 3" ,
153
- " Programming Language :: Python :: 3.6" ,
154
- " Programming Language :: Python :: 3.7" ,
155
- " Programming Language :: Python :: 3.8" ,
156
- " Programming Language :: Python :: 3.9" ,
157
- ]
158
- packages = [
159
- { include = " src/semver/" },
160
- ]
161
- include = [" CHANGELOG.rst" , " CONTRIBUTORS" , " README.rst" ]
162
-
163
-
164
- [tool .poetry .scripts ]
165
- pysemver = " semver:main"
166
-
167
-
168
- [tool .poetry .dependencies ]
169
- python = " ^3.5"
170
-
171
-
172
- [tool .poetry .dev-dependencies ]
173
- pytest = " ^3.0"
174
- flake8 = " ^3.7"
175
- isort = " ^4.3"
176
-
0 commit comments