From f1d0dfcb8d068b98101b5b5dad003aafe6599a96 Mon Sep 17 00:00:00 2001 From: Alexandr Artemyev Date: Thu, 5 Sep 2024 01:08:08 +0500 Subject: [PATCH] Add setuptools-scm for dynamic version for scm version management (#582) --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 296b0e16..bf011c47 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,10 +1,10 @@ [build-system] -requires = ["setuptools>=42", "wheel"] +requires = ["setuptools>=42", "wheel", "setuptools_scm>=8"] build-backend = "setuptools.build_meta" [project] name = "django-constance" -version = "4.1.0" +dynamic = ["version"] description = "Django live settings with pluggable backends, including Redis." readme = "README.rst" license = { text = "BSD" } @@ -52,6 +52,9 @@ changelog = "https://github.com/jazzband/django-constance/releases/" [tool.setuptools.packages.find] include = ["constance*"] +[tool.setuptools_scm] +version_file = "constance/_version.py" + [tool.ruff] line-length = 120 indent-width = 4