Skip to content

Commit 422c298

Browse files
committed
Migrated the metadata from setup.cfg into PEP 621-compliant pyproject.toml.
1 parent de29d97 commit 422c298

File tree

3 files changed

+39
-31
lines changed

3 files changed

+39
-31
lines changed

newsfragments/33.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

+38-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,44 @@
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 = "sniffio"
7+
authors = [{name = "Nathaniel J. Smith", email = "[email protected]"}]
8+
license = {text = "MIT OR Apache-2.0"}
9+
description = "Sniff out which async library your code is running under"
10+
readme = "README.rst"
11+
keywords = ["async", "trio", "asyncio"]
12+
classifiers = [
13+
"License :: OSI Approved :: MIT License",
14+
"License :: OSI Approved :: Apache Software License",
15+
"Framework :: Trio",
16+
"Framework :: AsyncIO",
17+
"Operating System :: POSIX :: Linux",
18+
"Operating System :: MacOS :: MacOS X",
19+
"Operating System :: Microsoft :: Windows",
20+
"Programming Language :: Python :: 3 :: Only",
21+
"Programming Language :: Python :: Implementation :: CPython",
22+
"Programming Language :: Python :: Implementation :: PyPy",
23+
"Intended Audience :: Developers",
24+
"Development Status :: 5 - Production/Stable",
25+
]
26+
urls = {Homepage = "https://github.com/python-trio/sniffio"}
27+
requires-python = ">=3.7"
28+
dynamic = ["version"]
29+
30+
[project.optional-dependencies]
31+
testing = ["curio"]
32+
33+
[tool.setuptools]
34+
include-package-data = false
35+
36+
[tool.setuptools.packages]
37+
find = {namespaces = false}
38+
39+
[tool.setuptools.package-data]
40+
sniffio = ["py.typed"]
41+
542
[tool.setuptools_scm]
643
write_to = "sniffio/_version.py"
744
write_to_template = "__version__ = \"{version}\"\n"

setup.cfg

-30
This file was deleted.

0 commit comments

Comments
 (0)