From 28cde5f51616e826baa6bd8878789e8a38954587 Mon Sep 17 00:00:00 2001 From: bronsen Date: Wed, 3 Dec 2025 14:23:06 +0100 Subject: [PATCH] chore(build): Retrieve version information from git tags But I still have to figure out, how to remove the git hashes and such from the generated version. --- pyproject.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 94f77cc..ad078cf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] license = "GPL-3.0-or-later" name = "teilchensammler-cli" -version = "0.1.0" +dynamic = ["version"] description = "Build up and maintain an inventory of electronics parts and tools." readme = "README.md" authors = [{ name = "bronsen", email = "kontakt+teilchensammler@nrrd.de" }] @@ -37,8 +37,14 @@ Releasenotes = "https://code.c-base.org/infuanfu/teilchensammler-cli/src/branch/ teilchensammler-cli = "teilchensammler_cli:main" [build-system] -requires = ["uv_build>=0.9.14,<0.10.0"] -build-backend = "uv_build" +requires = ["hatchling", "hatch-vcs"] +build-backend = "hatchling.build" + +[tool.hatch.version] +source = "vcs" + +[tool.hatch.build.hooks.vcs] +version-file = "_version.py" [dependency-groups] dev = [