|
1 | 1 | #
|
2 | 2 | #
|
3 | 3 | # See also https://setuptools.pypa.io/en/latest/userguide/pyproject_config.html
|
| 4 | +# |
| 5 | +# General idea taken from |
| 6 | +# https://godatadriven.com/blog/a-practical-guide-to-setuptools-and-pyproject-toml/ |
4 | 7 |
|
5 | 8 | [build-system]
|
6 | 9 | requires = [
|
7 | 10 | # sync with setup.py until we discard non-pep-517/518
|
8 |
| - "setuptools>=62.0", |
| 11 | + "setuptools", |
9 | 12 | "setuptools-scm",
|
10 | 13 | "wheel",
|
11 | 14 | "build",
|
12 | 15 | ]
|
13 | 16 | build-backend = "setuptools.build_meta"
|
14 | 17 |
|
15 |
| -[project] |
16 |
| -name = "semver" |
17 |
| -description = "Python helper for Semantic Versioning (http://semver.org/)" |
18 |
| -requires-python = ">=3.6" |
19 |
| -license = {file = "LICENSE.txt"} |
20 |
| -keywords = ["semantic versioning", "version", "semver",] |
21 |
| -authors = [ |
22 |
| - {name = "Kostiantyn Rybnikov", email = "k-bx@k-bx.com"} |
23 |
| -] |
24 |
| -maintainers = [ |
25 |
| - {name = "Sebastien Celles", email = "s.celles@gmail.com"}, |
26 |
| - {name = "Tom Schraitle", email = "tom_schr@web.de"}, |
27 |
| -] |
28 |
| -classifiers=[ |
29 |
| - # See https://pypi.org/pypi?%3Aaction=list_classifiers |
30 |
| - "Environment :: Web Environment", |
31 |
| - "Intended Audience :: Developers", |
32 |
| - "License :: OSI Approved :: BSD License", |
33 |
| - "Operating System :: OS Independent", |
34 |
| - "Programming Language :: Python", |
35 |
| - "Programming Language :: Python :: 3", |
36 |
| - "Programming Language :: Python :: 3.6", |
37 |
| - "Programming Language :: Python :: 3.7", |
38 |
| - "Programming Language :: Python :: 3.8", |
39 |
| - "Programming Language :: Python :: 3.9", |
40 |
| - "Programming Language :: Python :: 3.10", |
41 |
| - "Programming Language :: Python :: 3.11", |
42 |
| - "Topic :: Software Development :: Libraries :: Python Modules", |
43 |
| -] |
44 |
| -dynamic = ["version"] |
45 |
| - |
46 |
| -[tool.setuptools.dynamic] |
47 |
| -version = {attr = "semver.__about__.__version__"} |
48 |
| - |
49 |
| -[project.readme] |
50 |
| -file = "README.rst" |
51 |
| -content-type = "text/x-rst" |
52 |
| - |
53 |
| -[project.urls] |
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" |
59 |
| - |
60 |
| -[project.scripts] |
61 |
| -pysemver = "semver.cli:main" |
62 |
| - |
63 |
| -[tool.setuptools] |
64 |
| -# package-dir = {"" = "src"} |
65 |
| -include-package-data = true |
66 |
| - |
67 |
| -[tool.setuptools.packages.find] |
68 |
| -where = ["src"] |
69 |
| -namespaces = false |
70 |
| - |
71 |
| -[tool.setuptools.package-data] |
72 |
| -semver = ["py.typed"] |
73 |
| - |
74 |
| - |
75 |
| -[project.optional-dependencies] |
76 |
| -test = [ |
77 |
| - "pytest", |
78 |
| - "pytest-cov[all]", |
79 |
| -] |
80 |
| -doc = [ |
81 |
| - "sphinx", |
82 |
| - "sphinx-argparse", |
83 |
| -] |
84 | 18 |
|
85 | 19 |
|
86 | 20 | [tool.black]
|
|
0 commit comments