Skip to content

Commit

Permalink
📝 Switch packaging metadata to use PEP 621
Browse files Browse the repository at this point in the history
This patch migrated most related content to `pyproject.toml`
semi-automatically. The change was produced by using
`jaraco.develop.migrate-config` and `ini2toml`.

As a part of this change previously used for packaging configuration
`setup.cfg` and `setup.py` files have been removed.
`setup.py` hasn't been needed for quite a while but kept for backward
compatibility. We don't care about that anymore.

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
  • Loading branch information
jaraco and webknjaz committed Apr 20, 2024
1 parent 3bd0b51 commit 3ddeabd
Show file tree
Hide file tree
Showing 4 changed files with 75 additions and 101 deletions.
75 changes: 74 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,84 @@
# NOTE: at all times.
requires = [
# Essentials
"setuptools>=34.4",
"setuptools >= 61.2",

# Plugins
"setuptools-scm >= 7.0.0",
]
build-backend = "setuptools.build_meta"

[project]
name = "cheroot"
description = "Highly-optimized, pure-python HTTP server"
authors = [
{ name = "CherryPy Team", email = "[email protected]" },
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Framework :: CherryPy",
"License :: OSI Approved :: BSD License",
"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 :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: Jython",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: HTTP Servers",
"Topic :: Internet :: WWW/HTTP :: WSGI",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Server",
"Typing :: Typed",
]
keywords = [
"http",
"server",
"ssl",
"wsgi",
]
requires-python = ">=3.8"
dependencies = [
"more_itertools >= 2.6",
"jaraco.functools",
]
dynamic = ["version"]

[project.urls]
Homepage = "https://cheroot.cherrypy.dev"
"Chat: Matrix" = "https://matrix.to/#/#cherrypy-space:matrix.org"
"CI: GitHub" = "https://github.com/cherrypy/cheroot/actions"
"Docs: RTD" = "https://cheroot.cherrypy.dev"
"GitHub: issues" = "https://github.com/cherrypy/cheroot/issues"
"GitHub: repo" = "https://github.com/cherrypy/cheroot"
"Tidelift: funding" = "https://tidelift.com/subscription/pkg/pypi-cheroot?utm_source=pypi-cheroot&utm_medium=referral&utm_campaign=pypi"

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

[project.optional-dependencies]
docs = [
# upstream
"sphinx >= 1.8.2",
"jaraco.packaging >= 3.2",
"sphinx-tabs >= 1.1.0",

# local
"furo",
# `scm_tag_titles_ext` extension dep in docs/
"python-dateutil",
"sphinxcontrib-apidoc >= 0.3.0",
]

[project.scripts]
cheroot = "cheroot.cli:main"

[tool.setuptools_scm]
2 changes: 1 addition & 1 deletion requirements/dist-build-constraints.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# NOTE: at all times.

# Essentials
setuptools >= 34.4
setuptools >= 61.2

# Plugins
setuptools-scm[toml] >= 7.0.0
Expand Down
91 changes: 0 additions & 91 deletions setup.cfg

This file was deleted.

8 changes: 0 additions & 8 deletions setup.py

This file was deleted.

0 comments on commit 3ddeabd

Please sign in to comment.