Skip to content

Commit

Permalink
Merge pull request #1085 from pypa/feature/pep-621
Browse files Browse the repository at this point in the history
Migrate config to pyproject.toml (PEP 621)
  • Loading branch information
sigmavirus24 authored May 15, 2024
2 parents 75de094 + 7d70217 commit de39ade
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 57 deletions.
67 changes: 66 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,73 @@
# pyproject.toml
[build-system]
requires = ["setuptools>=45", "wheel", "setuptools_scm[toml]>=6.0"]
requires = ["setuptools>=61.2", "wheel", "setuptools_scm[toml]>=6.0"]
build-backend = "setuptools.build_meta"

[project]
name = "twine"
authors = [
{ name = "Donald Stufft and individual contributors", email = "[email protected]" },
]
description = "Collection of utilities for publishing packages on PyPI"
classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX",
"Operating System :: POSIX :: BSD",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation :: CPython",
]
requires-python = ">=3.8"
dependencies = [
"pkginfo >= 1.8.1",
"readme-renderer >= 35.0",
"requests >= 2.20",
"requests-toolbelt >= 0.8.0, != 0.9.0",
"urllib3 >= 1.26.0",
"importlib-metadata >= 3.6",
"keyring >= 15.1",
"rfc3986 >= 1.4.0",
"rich >= 12.0.0",
]
dynamic = ["version"]

[project.readme]
file = "README.rst"
content-type = "text/x-rst"

[project.urls]
Homepage = "https://twine.readthedocs.io/"
Source = "https://github.com/pypa/twine/"
Documentation = "https://twine.readthedocs.io/en/latest/"
"Packaging tutorial" = "https://packaging.python.org/tutorials/packaging-projects/"

[project.entry-points."twine.registered_commands"]
check = "twine.commands.check:main"
upload = "twine.commands.upload:main"
register = "twine.commands.register:main"

[project.scripts]
twine = "twine.__main__:main"

[tool.setuptools]
packages = [
"twine",
"twine.commands",
]
include-package-data = true
license-files = ["LICENSE"]

[tool.setuptools_scm]

[tool.towncrier]
Expand Down
56 changes: 0 additions & 56 deletions setup.cfg

This file was deleted.

0 comments on commit de39ade

Please sign in to comment.