From 01817b6f8c2ece3d85bbb054197f6834bf909514 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 15 Jul 2023 22:17:15 -0500 Subject: [PATCH 1/2] MNT: Add requires-python metadata * Add requires-python metadata through the addition of setuptools's python_requires in setup.py. - c.f. https://peps.python.org/pep-0621/#requires-python - Set minimum required python to 3.8 as Python 3.7 is EOL as of 2023-06-27. c.f. https://devguide.python.org/versions/#unsupported-versions * The addition of requires-python is to provide guards to keep older CPython versions from installing releases that could contain unrunnable code. --- setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/setup.py b/setup.py index c32c50b1..744718cf 100644 --- a/setup.py +++ b/setup.py @@ -15,6 +15,7 @@ long_description_content_type="text/markdown", url="https://data-apis.org/array-api-compat/", license="MIT", + python_requires=">=3.8", extras_require={ "numpy": "numpy", "cupy": "cupy", From bbca293dd15dd08b568b5a6030fb42af8e4e85c6 Mon Sep 17 00:00:00 2001 From: Matthew Feickert Date: Sat, 15 Jul 2023 22:25:09 -0500 Subject: [PATCH 2/2] DOC: Add Python version PyPI trove classifier metadata --- setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/setup.py b/setup.py index 744718cf..25f6e54c 100644 --- a/setup.py +++ b/setup.py @@ -22,6 +22,10 @@ }, classifiers=[ "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ],