From a5518752fe9a89b06657ba0426e368a47ae5f818 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 25 Jun 2025 13:44:12 +0200 Subject: [PATCH] Use dynamic version --- pyproject.toml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 14588ec..3fcc624 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "test-woodpecker-ci" -version = "0.1.1" -description = "Add your description here" +dynamic = ["version"] +description = "Sandbox for Woodpecker CI" readme = "README.md" requires-python = ">=3.13" dependencies = [] @@ -10,11 +10,22 @@ dependencies = [] foo = "test_woodpecker_ci.main:main" [build-system] -requires = ["hatchling"] +requires = ["hatchling", "uv-dynamic-versioning"] build-backend = "hatchling.build" +[tool.hatch.version] +source = "uv-dynamic-versioning" + [tool.hatch.build.targets.wheel] packages = ["src/test_woodpecker_ci"] [dependency-groups] dev = ["httpx>=0.28.1", "pytest>=8.4.1"] + +[tool.uv-dynamic-versioning] +style = "semver" + +[tool.uv] +extra-index-url = [ + "https://code.philo.ydns.eu/api/packages/philorg/pypi/simple/", +]