Skip to content

Commit

Permalink
Switch from versioningit to setuptools-scm
Browse files Browse the repository at this point in the history
Switch from the versioningit package to more commonly used
setuptools-scm.  It serves the same purpose but it is more mature
and it supports building from GitHub archives.

Fixes PennyDreadfulMTG#25
  • Loading branch information
mgorny committed Aug 24, 2023
1 parent b3c3583 commit 3bf5aba
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[build-system]
requires = [
"setuptools>=42",
"versioningit >= 1.1.1",
"setuptools_scm[toml]>=6.2",
]

build-backend = "setuptools.build_meta"
Expand Down Expand Up @@ -65,13 +65,5 @@ force_grid_wrap = 0
use_parentheses = true
ensure_newline_before_comments = true

[tool.versioningit.next-version]
method = "smallest"

[tool.versioningit.format]
distance = "{next_version}.dev{distance}"
dirty = "{version}+d{build_date:%Y%m%d}"
distance-dirty = "{next_version}.dev{distance}"

[tool.versioningit.write]
file = "pystache/_version.py"
[tool.setuptools_scm]
write_to = "pystache/_version.py"

0 comments on commit 3bf5aba

Please sign in to comment.