Skip to content

Commit 1427974

Browse files
committed
Move project metadata from setup.cfg to pyproject.toml
1 parent 58aef99 commit 1427974

File tree

2 files changed

+56
-62
lines changed

2 files changed

+56
-62
lines changed

pyproject.toml

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,67 @@ requires = [
44
# NOTE: provisioning of the in-tree build backend located under
55
# NOTE: `packaging/pep517_backend/`.
66
"expandvars",
7-
"setuptools >= 47", # Minimum required for `version = attr:`
7+
"setuptools >= 77", # Minimum required for PEP 639 license expressions
88
"tomli; python_version < '3.11'",
99
]
1010
backend-path = ["packaging"] # requires `pip >= 20` or `pep517 >= 0.6.0`
1111
build-backend = "pep517_backend.hooks" # wraps `setuptools.build_meta`
1212

13+
[project]
14+
name = "frozenlist"
15+
license = "Apache-2.0"
16+
license-files = ["LICENSE"]
17+
description = "A list-like structure which implements collections.abc.MutableSequence"
18+
maintainers = [{ name = "aiohttp team", email = "[email protected]" }]
19+
requires-python = ">=3.9"
20+
classifiers = [
21+
"Development Status :: 5 - Production/Stable",
22+
23+
"Intended Audience :: Developers",
24+
25+
"Operating System :: POSIX",
26+
"Operating System :: MacOS :: MacOS X",
27+
"Operating System :: Microsoft :: Windows",
28+
29+
"Programming Language :: Cython",
30+
"Programming Language :: Python",
31+
"Programming Language :: Python :: 3",
32+
"Programming Language :: Python :: 3.9",
33+
"Programming Language :: Python :: 3.10",
34+
"Programming Language :: Python :: 3.11",
35+
"Programming Language :: Python :: 3.12",
36+
"Programming Language :: Python :: 3.13",
37+
"Programming Language :: Python :: Implementation :: CPython",
38+
"Programming Language :: Python :: Implementation :: PyPy",
39+
]
40+
dynamic = ["version", "readme"]
41+
42+
[project.urls]
43+
"Homepage" = "https://github.com/aio-libs/frozenlist"
44+
"Chat: Matrix" = "https://matrix.to/#/#aio-libs:matrix.org"
45+
"Chat: Matrix Space" = "https://matrix.to/#/#aio-libs-space:matrix.org"
46+
"CI: Github Actions" = "https://github.com/aio-libs/frozenlist/actions"
47+
"Code of Conduct" = "https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md"
48+
"Coverage: codecov" = "https://codecov.io/github/aio-libs/frozenlist"
49+
"Docs: Changelog" = "https://github.com/aio-libs/frozenlist/blob/master/CHANGES.rst#changelog"
50+
"Docs: RTD" = "https://frozenlist.aio-libs.org"
51+
"GitHub: issues" = "https://github.com/aio-libs/frozenlist/issues"
52+
"GitHub: repo" = "https://github.com/aio-libs/frozenlist"
53+
54+
[tool.setuptools.dynamic]
55+
version = { attr = "frozenlist.__version__" }
56+
readme = { file = ["README.rst", "CHANGES.rst"] }
57+
58+
[tool.setuptools.packages.find]
59+
include = ["frozenlist*"]
60+
61+
[tool.setuptools.package-data]
62+
# https://setuptools.pypa.io/en/latest/userguide/datafiles.html#package-data
63+
"*" = ["*.so"]
64+
65+
[tool.setuptools.exclude-package-data]
66+
"*" = ["*.c", "*.h"]
67+
1368
[tool.local.cythonize]
1469
# This attr can contain multiple globs
1570
src = ["frozenlist/*.pyx"]

setup.cfg

Lines changed: 0 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,3 @@
1-
[metadata]
2-
name = frozenlist
3-
version = attr: frozenlist.__version__
4-
url = https://github.com/aio-libs/frozenlist
5-
project_urls =
6-
Chat: Matrix = https://matrix.to/#/#aio-libs:matrix.org
7-
Chat: Matrix Space = https://matrix.to/#/#aio-libs-space:matrix.org
8-
CI: Github Actions = https://github.com/aio-libs/frozenlist/actions
9-
Code of Conduct = https://github.com/aio-libs/.github/blob/master/CODE_OF_CONDUCT.md
10-
Coverage: codecov = https://codecov.io/github/aio-libs/frozenlist
11-
Docs: Changelog = https://github.com/aio-libs/frozenlist/blob/master/CHANGES.rst#changelog
12-
Docs: RTD = https://frozenlist.aio-libs.org
13-
GitHub: issues = https://github.com/aio-libs/frozenlist/issues
14-
GitHub: repo = https://github.com/aio-libs/frozenlist
15-
description = A list-like structure which implements collections.abc.MutableSequence
16-
long_description = file: README.rst, CHANGES.rst
17-
long_description_content_type = text/x-rst
18-
maintainer = aiohttp team <[email protected]>
19-
maintainer_email = [email protected]
20-
license = Apache-2.0
21-
license_files =
22-
LICENSE
23-
classifiers =
24-
Development Status :: 5 - Production/Stable
25-
26-
Intended Audience :: Developers
27-
28-
Operating System :: POSIX
29-
Operating System :: MacOS :: MacOS X
30-
Operating System :: Microsoft :: Windows
31-
32-
Programming Language :: Cython
33-
Programming Language :: Python
34-
Programming Language :: Python :: 3
35-
Programming Language :: Python :: 3.9
36-
Programming Language :: Python :: 3.10
37-
Programming Language :: Python :: 3.11
38-
Programming Language :: Python :: 3.12
39-
Programming Language :: Python :: 3.13
40-
Programming Language :: Python :: Implementation :: CPython
41-
Programming Language :: Python :: Implementation :: PyPy
42-
43-
[options]
44-
python_requires = >=3.9
45-
packages = find:
46-
# https://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag
47-
zip_safe = False
48-
include_package_data = True
49-
50-
[options.exclude_package_data]
51-
* =
52-
*.c
53-
*.h
54-
55-
[options.package_data]
56-
# Ref:
57-
# https://setuptools.readthedocs.io/en/latest/setuptools.html#options
58-
# (see notes for the asterisk/`*` meaning)
59-
* =
60-
*.so
61-
621
[pep8]
632
max-line-length=88
643

0 commit comments

Comments
 (0)