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.
This commit is contained in:
bronsen 2025-12-03 14:23:06 +01:00
parent 9f4da60bb2
commit 28cde5f516

View file

@ -1,7 +1,7 @@
[project] [project]
license = "GPL-3.0-or-later" license = "GPL-3.0-or-later"
name = "teilchensammler-cli" name = "teilchensammler-cli"
version = "0.1.0" dynamic = ["version"]
description = "Build up and maintain an inventory of electronics parts and tools." description = "Build up and maintain an inventory of electronics parts and tools."
readme = "README.md" readme = "README.md"
authors = [{ name = "bronsen", email = "kontakt+teilchensammler@nrrd.de" }] 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" teilchensammler-cli = "teilchensammler_cli:main"
[build-system] [build-system]
requires = ["uv_build>=0.9.14,<0.10.0"] requires = ["hatchling", "hatch-vcs"]
build-backend = "uv_build" build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "_version.py"
[dependency-groups] [dependency-groups]
dev = [ dev = [