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:
+5
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user