Skip to content

Commit ddef30e

Browse files
authored
Consolidate dynamic attributes for setuptools v69.0.0 and move some metadata definitions into pyproject.toml (#574)
* Consolidate dynamic attributes for setuptools v69.0.0 * commit functioning build * forgot to lint setup.py lol * Update authors and maintainers metadata * remove redundant name metadata definition * Revert "remove redundant name metadata definition" This reverts commit 0263fa6. * bring back long_description in setup.py
1 parent 58b18a1 commit ddef30e

File tree

2 files changed

+55
-44
lines changed

2 files changed

+55
-44
lines changed

pyproject.toml

Lines changed: 55 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,67 @@
11
[project]
22
name = "faust-streaming"
33
requires-python = ">=3.8"
4-
dynamic = ["version"]
4+
dynamic = [
5+
"version",
6+
"optional-dependencies",
7+
"dependencies",
8+
9+
]
10+
readme = "README.md"
11+
license = { file = "LICENSE" }
12+
keywords = [
13+
"stream",
14+
"processing",
15+
"asyncio",
16+
"distributed",
17+
"queue",
18+
"kafka",
19+
]
20+
classifiers = [
21+
"Framework :: AsyncIO",
22+
"Development Status :: 5 - Production/Stable",
23+
"Intended Audience :: Developers",
24+
"Natural Language :: English",
25+
"License :: OSI Approved :: BSD License",
26+
"Programming Language :: Python",
27+
"Programming Language :: Python :: 3 :: Only",
28+
"Programming Language :: Python :: 3.8",
29+
"Programming Language :: Python :: 3.9",
30+
"Programming Language :: Python :: 3.10",
31+
"Programming Language :: Python :: 3.11",
32+
"Programming Language :: Python :: Implementation :: CPython",
33+
"Operating System :: POSIX",
34+
"Operating System :: POSIX :: Linux",
35+
"Operating System :: MacOS :: MacOS X",
36+
"Operating System :: POSIX :: BSD",
37+
"Operating System :: Microsoft :: Windows",
38+
"Topic :: System :: Networking",
39+
"Topic :: System :: Distributed Computing",
40+
]
41+
42+
authors = [
43+
{ name = "Ask Solem Hoel", email= "ask@robinhood.com" },
44+
{ name = "Vineet Goel", email= "vineet@robinhood.com" },
45+
]
46+
47+
maintainers = [
48+
{ name = "Vikram Patki", email = "vpatki@wayfair.com" },
49+
{ name = "William Barnhart", email = "williambbarnhart@gmail.com" },
50+
]
51+
52+
53+
[project.urls]
54+
Documentation = "https://faust-streaming.github.io/faust/"
55+
Source = "https://github.com/faust-streaming/faust"
56+
Changes = "https://github.com/faust-streaming/faust/releases"
557

658
[build-system]
759
requires = [
8-
"setuptools>=30.3.0,<69.0.0",
60+
"setuptools>=30.3.0",
961
"setuptools_scm[toml]",
1062
"wheel",
1163
"cython>=0.29; implementation_name == 'cpython'",
12-
"cython>=3.0.0b3; implementation_name == 'cpython' and python_version >= '3.12'",
64+
"cython>=3.0.0; implementation_name == 'cpython' and python_version >= '3.12'",
1365
]
1466
build-backend = "setuptools.build_meta"
1567

setup.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -188,16 +188,9 @@ def extras_require():
188188
def do_setup(**kwargs):
189189
setup(
190190
name="faust-streaming",
191-
use_scm_version=True,
192-
setup_requires=["setuptools_scm"],
193191
description=meta["doc"],
194192
long_description=long_description,
195193
long_description_content_type="text/markdown",
196-
author=meta["author"],
197-
author_email=meta["contact"],
198-
url=meta["homepage"],
199-
platforms=["any"],
200-
license="BSD 3-Clause",
201194
packages=find_packages(exclude=["examples", "ez_setup", "tests", "tests.*"]),
202195
# PEP-561: https://www.python.org/dev/peps/pep-0561/
203196
package_data={"faust": ["py.typed"]},
@@ -212,40 +205,6 @@ def do_setup(**kwargs):
212205
"faust = faust.cli.faust:cli",
213206
],
214207
},
215-
project_urls={
216-
"Bug Reports": "https://github.com/faust-streaming/faust/issues",
217-
"Source": "https://github.com/faust-streaming/faust",
218-
"Documentation": "https://faust-streaming.github.io/faust",
219-
},
220-
keywords=[
221-
"stream",
222-
"processing",
223-
"asyncio",
224-
"distributed",
225-
"queue",
226-
"kafka",
227-
],
228-
classifiers=[
229-
"Framework :: AsyncIO",
230-
"Development Status :: 5 - Production/Stable",
231-
"Intended Audience :: Developers",
232-
"Natural Language :: English",
233-
"License :: OSI Approved :: BSD License",
234-
"Programming Language :: Python",
235-
"Programming Language :: Python :: 3 :: Only",
236-
"Programming Language :: Python :: 3.8",
237-
"Programming Language :: Python :: 3.9",
238-
"Programming Language :: Python :: 3.10",
239-
"Programming Language :: Python :: 3.11",
240-
"Programming Language :: Python :: Implementation :: CPython",
241-
"Operating System :: POSIX",
242-
"Operating System :: POSIX :: Linux",
243-
"Operating System :: MacOS :: MacOS X",
244-
"Operating System :: POSIX :: BSD",
245-
"Operating System :: Microsoft :: Windows",
246-
"Topic :: System :: Networking",
247-
"Topic :: System :: Distributed Computing",
248-
],
249208
**kwargs,
250209
)
251210

0 commit comments

Comments
 (0)