Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated the metadata from setup.cfg into PEP 621-compliant `pypr…
Browse files Browse the repository at this point in the history
…oject.toml`.
KOLANICH committed Oct 19, 2022
1 parent de29d97 commit 422c298
Showing 3 changed files with 39 additions and 31 deletions.
1 change: 1 addition & 0 deletions newsfragments/33.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Moved the metadata into ``PEP 621``-compliant ``pyproject.toml``.
39 changes: 38 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,44 @@
[build-system]
requires = ["setuptools>=42.2", "setuptools_scm[toml]>=3.4.3"]
requires = ["setuptools>=61.2", "setuptools_scm[toml]>=3.4.3"]
build-backend = "setuptools.build_meta"

[project]
name = "sniffio"
authors = [{name = "Nathaniel J. Smith", email = "[email protected]"}]
license = {text = "MIT OR Apache-2.0"}
description = "Sniff out which async library your code is running under"
readme = "README.rst"
keywords = ["async", "trio", "asyncio"]
classifiers = [
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Framework :: Trio",
"Framework :: AsyncIO",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Intended Audience :: Developers",
"Development Status :: 5 - Production/Stable",
]
urls = {Homepage = "https://github.com/python-trio/sniffio"}
requires-python = ">=3.7"
dynamic = ["version"]

[project.optional-dependencies]
testing = ["curio"]

[tool.setuptools]
include-package-data = false

[tool.setuptools.packages]
find = {namespaces = false}

[tool.setuptools.package-data]
sniffio = ["py.typed"]

[tool.setuptools_scm]
write_to = "sniffio/_version.py"
write_to_template = "__version__ = \"{version}\"\n"
30 changes: 0 additions & 30 deletions setup.cfg

This file was deleted.

0 comments on commit 422c298

Please sign in to comment.