get package version from rest_framework.__version__

This commit is contained in:
Mathieu Dupuy 2023-10-06 11:41:44 +02:00
parent c2062da244
commit a71ed6aa64
No known key found for this signature in database
GPG Key ID: 08C1D4F32506B23A

View File

@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta"
[project] [project]
name = "djangorestframework" name = "djangorestframework"
version = "3.14.0"
authors = [{name = "Tom Christie", email = "tom@tomchristie.com"}] authors = [{name = "Tom Christie", email = "tom@tomchristie.com"}]
license = {text = "BSD"} license = {text = "BSD"}
description = "Web APIs for Django, made easy." description = "Web APIs for Django, made easy."
@ -38,6 +37,10 @@ dependencies = [
"django>=3.0", "django>=3.0",
'backports.zoneinfo;python_version<"3.9"', 'backports.zoneinfo;python_version<"3.9"',
] ]
dynamic = ["version"]
[tool.setuptools.dynamic]
version = {attr = "rest_framework.__version__"}
[project.readme] [project.readme]
file = "README.md" file = "README.md"