Backport changes from setup.py in upstream

This commit is contained in:
Bruno Alla 2025-04-16 17:59:20 +01:00
parent 63d340b187
commit 3542e40746

View File

@ -15,12 +15,12 @@ classifiers = [
"Framework :: Django :: 4.2", "Framework :: Django :: 4.2",
"Framework :: Django :: 5.0", "Framework :: Django :: 5.0",
"Framework :: Django :: 5.1", "Framework :: Django :: 5.1",
"Framework :: Django :: 5.2",
"Intended Audience :: Developers", "Intended Audience :: Developers",
"License :: OSI Approved :: BSD License", "License :: OSI Approved :: BSD License",
"Operating System :: OS Independent", "Operating System :: OS Independent",
"Programming Language :: Python", "Programming Language :: Python",
"Programming Language :: Python :: 3", "Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.11",
@ -29,18 +29,15 @@ classifiers = [
"Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3 :: Only",
"Topic :: Internet :: WWW/HTTP", "Topic :: Internet :: WWW/HTTP",
] ]
requires-python = ">=3.8" requires-python = ">=3.9"
dependencies = [ dependencies = ["django>=4.2"]
"django>=4.2",
'backports.zoneinfo;python_version<"3.9"',
]
dynamic = ["version"] dynamic = ["version"]
[tool.setuptools.dynamic] [tool.setuptools.dynamic]
version = {attr = "rest_framework.__version__"} version = {attr = "rest_framework.__version__"}
[project.urls] [project.urls]
Homepage = "https://www.django-rest-framework.org/" Homepage = "https://www.django-rest-framework.org"
Funding = "https://fund.django-rest-framework.org/topics/funding/" Funding = "https://fund.django-rest-framework.org/topics/funding/"
Source = "https://github.com/encode/django-rest-framework" Source = "https://github.com/encode/django-rest-framework"
Changelog = "https://www.django-rest-framework.org/community/release-notes/" Changelog = "https://www.django-rest-framework.org/community/release-notes/"