From 3bf5aba4cf6559a1b3e2015bcbd7e3944866cf2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 24 Aug 2023 05:43:54 +0200 Subject: [PATCH] Switch from versioningit to setuptools-scm 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 #25 --- pyproject.toml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1f1eb68b..24cbaa98 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [build-system] requires = [ "setuptools>=42", - "versioningit >= 1.1.1", + "setuptools_scm[toml]>=6.2", ] build-backend = "setuptools.build_meta" @@ -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"