Skip to content

Commit bd2a862

Browse files
committed
pyproject: define [project]
It seems this is the way now. Various tools are complaining about us not having this. We port some of the metadata over from setup.py. This should be backwards compatible.
1 parent 629d641 commit bd2a862

File tree

3 files changed

+29
-20
lines changed

3 files changed

+29
-20
lines changed

docs/news.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Changes
5353

5454
* We now use a non-rc version of cffi 1.17 on all Python versions. Python
5555
<=3.12 have cffi upgraded from cffi 1.16 -> 1.17.
56+
* The `pyproject.toml` file now defines a `[project]` section.
5657

5758
0.23.0 (released 2024-07-14)
5859
============================

pyproject.toml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
[project]
2+
name = "zstandard"
3+
dynamic = ["version"]
4+
description = "Zstandard bindings for Python"
5+
readme = { file = "README.rst", content-type = "text/x-rst" }
6+
authors = [
7+
{ name = "Gregory Szorc", email = "[email protected]" },
8+
]
9+
license = { text = "BSD" }
10+
requires-python = ">=3.8"
11+
classifiers = [
12+
"Development Status :: 5 - Production/Stable",
13+
"Intended Audience :: Developers",
14+
"License :: OSI Approved :: BSD License",
15+
"Programming Language :: C",
16+
"Programming Language :: Python :: 3.8",
17+
"Programming Language :: Python :: 3.9",
18+
"Programming Language :: Python :: 3.10",
19+
"Programming Language :: Python :: 3.11",
20+
"Programming Language :: Python :: 3.12",
21+
"Programming Language :: Python :: 3.13",
22+
]
23+
keywords = ["zstandard", "zstd", "compression"]
24+
25+
[project.urls]
26+
Homepage = "https://github.com/indygreg/python-zstandard"
27+
Documentation = "https://python-zstandard.readthedocs.io/en/latest/"
28+
129
[build-system]
230
requires = [
331
"cffi>=1.17.0",

setup.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -132,26 +132,6 @@
132132
setup(
133133
name="zstandard",
134134
version=version,
135-
description="Zstandard bindings for Python",
136-
long_description=open("README.rst", "r").read(),
137-
url="https://github.com/indygreg/python-zstandard",
138-
author="Gregory Szorc",
139-
author_email="[email protected]",
140-
license="BSD",
141-
python_requires=">=3.8",
142-
classifiers=[
143-
"Development Status :: 5 - Production/Stable",
144-
"Intended Audience :: Developers",
145-
"License :: OSI Approved :: BSD License",
146-
"Programming Language :: C",
147-
"Programming Language :: Python :: 3.8",
148-
"Programming Language :: Python :: 3.9",
149-
"Programming Language :: Python :: 3.10",
150-
"Programming Language :: Python :: 3.11",
151-
"Programming Language :: Python :: 3.12",
152-
"Programming Language :: Python :: 3.13",
153-
],
154-
keywords=["zstandard", "zstd", "compression"],
155135
packages=["zstandard"],
156136
package_data={"zstandard": ["__init__.pyi", "py.typed"]},
157137
ext_modules=extensions,

0 commit comments

Comments
 (0)