Add setuptools-scm for dynamic version for scm version management (#582)

This commit is contained in:
Alexandr Artemyev 2024-09-05 01:08:08 +05:00 committed by GitHub
parent 05dfb5d3cf
commit f1d0dfcb8d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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