Skip to content

Commit

Permalink
Moved the metadata from setup.cfg into PEP 621-compliant `pyproje…
Browse files Browse the repository at this point in the history
…ct.toml`.
  • Loading branch information
KOLANICH committed Oct 19, 2022
1 parent 7817caa commit 3e8e834
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 49 deletions.
1 change: 1 addition & 0 deletions newsfragments/2449.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Moved the metadata into ``PEP 621``-compliant ``pyproject.toml``.
52 changes: 51 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,57 @@
[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 = "trio"
authors = [{name = "Nathaniel J. Smith", email = "[email protected]"}]
license = {text = "MIT OR Apache-2.0"}
description = "A friendly Python library for async concurrency and I/O"
readme = "README.rst"
keywords = ["async", "io", "networking", "trio"]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"License :: OSI Approved :: Apache Software License",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: BSD",
"Operating System :: Microsoft :: Windows",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: System :: Networking",
"Framework :: Trio",
]
urls = {Homepage = "https://github.com/python-trio/trio"}
requires-python = ">=3.7"
dependencies = [
"attrs >= 19.2.0",
"sortedcontainers",
"async_generator >= 1.9",
"idna",
"outcome",
"sniffio",
# cffi 1.12 adds from_buffer(require_writable=True) and ffi.release()
# cffi 1.14 fixes memory leak inside ffi.getwinerror()
# cffi is required on Windows, except on PyPy where it is built-in
"cffi>=1.14; os_name == 'nt' and implementation_name != 'pypy'",
"exceptiongroup >= 1.0.0rc9; python_version < '3.11'",
]
dynamic = ["version"]

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

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

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

This file was deleted.

0 comments on commit 3e8e834

Please sign in to comment.