Skip to content

Commit 18d33bd

Browse files
committed
Moved the metadata from setup.cfg into PEP 621-compliant pyproject.toml.
1 parent 40e1744 commit 18d33bd

File tree

3 files changed

+52
-49
lines changed

3 files changed

+52
-49
lines changed

newsfragments/2449.feature.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Moved the metadata into ``PEP 621``-compliant ``pyproject.toml``.

pyproject.toml

+51-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,57 @@
11
[build-system]
2-
requires = ["setuptools>=42.2", "setuptools_scm[toml]>=3.4.3"]
2+
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"]
33
build-backend = "setuptools.build_meta"
44

5+
[project]
6+
name = "trio"
7+
authors = [{name = "Nathaniel J. Smith", email = "[email protected]"}]
8+
license = {text = "MIT OR Apache-2.0"}
9+
description = "A friendly Python library for async concurrency and I/O"
10+
readme = "README.rst"
11+
keywords = ["async", "io", "networking", "trio"]
12+
classifiers = [
13+
"Development Status :: 3 - Alpha",
14+
"Intended Audience :: Developers",
15+
"License :: OSI Approved :: MIT License",
16+
"License :: OSI Approved :: Apache Software License",
17+
"Operating System :: POSIX :: Linux",
18+
"Operating System :: MacOS :: MacOS X",
19+
"Operating System :: POSIX :: BSD",
20+
"Operating System :: Microsoft :: Windows",
21+
"Programming Language :: Python :: Implementation :: CPython",
22+
"Programming Language :: Python :: Implementation :: PyPy",
23+
"Programming Language :: Python :: 3 :: Only",
24+
"Programming Language :: Python :: 3.7",
25+
"Programming Language :: Python :: 3.8",
26+
"Programming Language :: Python :: 3.9",
27+
"Programming Language :: Python :: 3.10",
28+
"Programming Language :: Python :: 3.11",
29+
"Topic :: System :: Networking",
30+
"Framework :: Trio",
31+
]
32+
urls = {Homepage = "https://github.com/python-trio/trio"}
33+
requires-python = ">=3.7"
34+
dependencies = [
35+
"attrs >= 19.2.0",
36+
"sortedcontainers",
37+
"async_generator >= 1.9",
38+
"idna",
39+
"outcome",
40+
"sniffio",
41+
# cffi 1.12 adds from_buffer(require_writable=True) and ffi.release()
42+
# cffi 1.14 fixes memory leak inside ffi.getwinerror()
43+
# cffi is required on Windows, except on PyPy where it is built-in
44+
"cffi>=1.14; os_name == 'nt' and implementation_name != 'pypy'",
45+
"exceptiongroup >= 1.0.0rc9; python_version < '3.11'",
46+
]
47+
dynamic = ["version"]
48+
49+
[tool.setuptools]
50+
include-package-data = true
51+
52+
[tool.setuptools.packages]
53+
find = {namespaces = false}
54+
555
[tool.setuptools_scm]
656
write_to = "trio/_version.py"
757
write_to_template = "__version__ = \"{version}\"\n"

setup.cfg

-48
This file was deleted.

0 commit comments

Comments
 (0)