Skip to content

Commit

Permalink
Consolidate dynamic attributes for setuptools v69.0.0 and move some m…
Browse files Browse the repository at this point in the history
…etadata 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
  • Loading branch information
wbarnha authored Nov 27, 2023
1 parent 58b18a1 commit ddef30e
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 44 deletions.
58 changes: 55 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,67 @@
[project]
name = "faust-streaming"
requires-python = ">=3.8"
dynamic = ["version"]
dynamic = [
"version",
"optional-dependencies",
"dependencies",

]
readme = "README.md"
license = { file = "LICENSE" }
keywords = [
"stream",
"processing",
"asyncio",
"distributed",
"queue",
"kafka",
]
classifiers = [
"Framework :: AsyncIO",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: BSD",
"Operating System :: Microsoft :: Windows",
"Topic :: System :: Networking",
"Topic :: System :: Distributed Computing",
]

authors = [
{ name = "Ask Solem Hoel", email= "ask@robinhood.com" },
{ name = "Vineet Goel", email= "vineet@robinhood.com" },
]

maintainers = [
{ name = "Vikram Patki", email = "vpatki@wayfair.com" },
{ name = "William Barnhart", email = "williambbarnhart@gmail.com" },
]


[project.urls]
Documentation = "https://faust-streaming.github.io/faust/"
Source = "https://github.com/faust-streaming/faust"
Changes = "https://github.com/faust-streaming/faust/releases"

[build-system]
requires = [
"setuptools>=30.3.0,<69.0.0",
"setuptools>=30.3.0",
"setuptools_scm[toml]",
"wheel",
"cython>=0.29; implementation_name == 'cpython'",
"cython>=3.0.0b3; implementation_name == 'cpython' and python_version >= '3.12'",
"cython>=3.0.0; implementation_name == 'cpython' and python_version >= '3.12'",
]
build-backend = "setuptools.build_meta"

Expand Down
41 changes: 0 additions & 41 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,16 +188,9 @@ def extras_require():
def do_setup(**kwargs):
setup(
name="faust-streaming",
use_scm_version=True,
setup_requires=["setuptools_scm"],
description=meta["doc"],
long_description=long_description,
long_description_content_type="text/markdown",
author=meta["author"],
author_email=meta["contact"],
url=meta["homepage"],
platforms=["any"],
license="BSD 3-Clause",
packages=find_packages(exclude=["examples", "ez_setup", "tests", "tests.*"]),
# PEP-561: https://www.python.org/dev/peps/pep-0561/
package_data={"faust": ["py.typed"]},
Expand All @@ -212,40 +205,6 @@ def do_setup(**kwargs):
"faust = faust.cli.faust:cli",
],
},
project_urls={
"Bug Reports": "https://github.com/faust-streaming/faust/issues",
"Source": "https://github.com/faust-streaming/faust",
"Documentation": "https://faust-streaming.github.io/faust",
},
keywords=[
"stream",
"processing",
"asyncio",
"distributed",
"queue",
"kafka",
],
classifiers=[
"Framework :: AsyncIO",
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Natural Language :: English",
"License :: OSI Approved :: BSD License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Operating System :: POSIX",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Operating System :: POSIX :: BSD",
"Operating System :: Microsoft :: Windows",
"Topic :: System :: Networking",
"Topic :: System :: Distributed Computing",
],
**kwargs,
)

Expand Down

0 comments on commit ddef30e

Please sign in to comment.