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
This commit is contained in:
2026-08-16 20:22:00 +00:00
parent 658dea77b9
commit a7e5c40e12
+5 -2
View File
@@ -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"]