Skip to content

Commit 66ce420

Browse files
committed
Use VCS for versioning and configure Hatch versioning in pyproject.toml
1 parent d45bc16 commit 66ce420

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "specify-cli"
3-
version = "0.0.22"
3+
dynamic = ["version"]
44
description = "Specify CLI, part of GitHub Spec Kit. A tool to bootstrap your projects for Spec-Driven Development (SDD)."
55
requires-python = ">=3.11"
66
dependencies = [
@@ -16,9 +16,15 @@ dependencies = [
1616
specify = "specify_cli:main"
1717

1818
[build-system]
19-
requires = ["hatchling"]
19+
requires = ["hatchling", "hatch-vcs"]
2020
build-backend = "hatchling.build"
2121

22+
[tool.hatch.version]
23+
source = "vcs"
24+
25+
[tool.hatch.build.hooks.vcs]
26+
version-file = "src/specify_cli/_version.py"
27+
2228
[tool.hatch.build.targets.wheel]
2329
packages = ["src/specify_cli"]
2430

0 commit comments

Comments
 (0)