1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
From: Alexander Sulfrian <asulfrian@zedat.fu-berlin.de>
Date: Wed, 8 Nov 2023 23:20:17 +0100
Subject: Replace versioningit with gernerated file
During the build process, we do not have the version information from the git
repository avialable. So we generate a static file with the correct version
number and use this as source for version metadata
---
pyproject.toml | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,5 +1,5 @@
[build-system]
-requires = ["hatchling", "versioningit"]
+requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
@@ -36,11 +36,8 @@
[tool.hatch.version]
source = "versioningit"
-[tool.versioningit]
-
-[tool.versioningit.vcs]
-method = "git"
-default-tag = "0.0.0"
+[tool.setuptools.dynamic]
+version = {file = "VERSION"}
[tool.flake8]
application-names = ["scramp"]
|