From a7e5c40e129cf9f6640b45a11522313caf907d80 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Sun, 16 Aug 2026 20:22:00 +0000 Subject: [PATCH] Use git tag versioning via hatch-vcs - Remove static version from [project]; add dynamic = [version] - Add [tool.hatch.version] source = vcs - Add hatch-vcs to build-system requirements --- pyproject.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 82078e9..872dfe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,9 +1,9 @@ [project] name = "pagerite" -version = "0.1.0" description = "A single-user CMS/blog: FastAPI + kanta, Vue only for editing tools" readme = "README.md" requires-python = ">=3.14" +dynamic = ["version"] dependencies = [ "blake3>=1.0.9", "fastapi-vue>=1.3.1", @@ -20,9 +20,12 @@ dependencies = [ pagerite = "pagerite.__main__:main" [build-system] -requires = ["hatchling"] +requires = ["hatchling", "hatch-vcs"] build-backend = "hatchling.build" +[tool.hatch.version] +source = "vcs" + [tool.hatch.build] packages = ["pagerite"] artifacts = ["pagerite/frontend-build"]