Skip to content

Commit

Permalink
Add setuptools-scm for dynamic version for scm version management
Browse files Browse the repository at this point in the history
  • Loading branch information
Mogost committed Sep 4, 2024
1 parent 70dba1c commit f11e8bf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f11e8bf

Please sign in to comment.