From a71ed6aa64eff0a9ec089c99b5277576f7b2ff55 Mon Sep 17 00:00:00 2001 From: Mathieu Dupuy Date: Fri, 6 Oct 2023 11:41:44 +0200 Subject: [PATCH] get package version from rest_framework.__version__ --- pyproject.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3621c240b..82a861055 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,6 @@ build-backend = "setuptools.build_meta" [project] name = "djangorestframework" -version = "3.14.0" authors = [{name = "Tom Christie", email = "tom@tomchristie.com"}] license = {text = "BSD"} description = "Web APIs for Django, made easy." @@ -38,6 +37,10 @@ dependencies = [ "django>=3.0", 'backports.zoneinfo;python_version<"3.9"', ] +dynamic = ["version"] + +[tool.setuptools.dynamic] +version = {attr = "rest_framework.__version__"} [project.readme] file = "README.md"