Skip to content

Commit de39ade

Browse files
authored
Merge pull request #1085 from pypa/feature/pep-621
Migrate config to pyproject.toml (PEP 621)
2 parents 75de094 + 7d70217 commit de39ade

File tree

2 files changed

+66
-57
lines changed

2 files changed

+66
-57
lines changed

pyproject.toml

Lines changed: 66 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,73 @@
11
# pyproject.toml
22
[build-system]
3-
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
3+
requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=6.0"]
44
build-backend = "setuptools.build_meta"
55

6+
[project]
7+
name = "twine"
8+
authors = [
9+
{ name = "Donald Stufft and individual contributors", email = "donald@stufft.io" },
10+
]
11+
description = "Collection of utilities for publishing packages on PyPI"
12+
classifiers = [
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: Apache Software License",
15+
"Natural Language :: English",
16+
"Operating System :: MacOS :: MacOS X",
17+
"Operating System :: POSIX",
18+
"Operating System :: POSIX :: BSD",
19+
"Operating System :: POSIX :: Linux",
20+
"Operating System :: Microsoft :: Windows",
21+
"Programming Language :: Python",
22+
"Programming Language :: Python :: 3",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Programming Language :: Python :: 3.8",
25+
"Programming Language :: Python :: 3.9",
26+
"Programming Language :: Python :: 3.10",
27+
"Programming Language :: Python :: 3.11",
28+
"Programming Language :: Python :: 3.12",
29+
"Programming Language :: Python :: Implementation :: CPython",
30+
]
31+
requires-python = ">=3.8"
32+
dependencies = [
33+
"pkginfo >= 1.8.1",
34+
"readme-renderer >= 35.0",
35+
"requests >= 2.20",
36+
"requests-toolbelt >= 0.8.0, != 0.9.0",
37+
"urllib3 >= 1.26.0",
38+
"importlib-metadata >= 3.6",
39+
"keyring >= 15.1",
40+
"rfc3986 >= 1.4.0",
41+
"rich >= 12.0.0",
42+
]
43+
dynamic = ["version"]
44+
45+
[project.readme]
46+
file = "README.rst"
47+
content-type = "text/x-rst"
48+
49+
[project.urls]
50+
Homepage = "https://twine.readthedocs.io/"
51+
Source = "https://github.com/pypa/twine/"
52+
Documentation = "https://twine.readthedocs.io/en/latest/"
53+
"Packaging tutorial" = "https://packaging.python.org/tutorials/packaging-projects/"
54+
55+
[project.entry-points."twine.registered_commands"]
56+
check = "twine.commands.check:main"
57+
upload = "twine.commands.upload:main"
58+
register = "twine.commands.register:main"
59+
60+
[project.scripts]
61+
twine = "twine.__main__:main"
62+
63+
[tool.setuptools]
64+
packages = [
65+
"twine",
66+
"twine.commands",
67+
]
68+
include-package-data = true
69+
license-files = ["LICENSE"]
70+
671
[tool.setuptools_scm]
772

873
[tool.towncrier]

setup.cfg

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)