Skip to content

Commit

Permalink
add hatch-vcs to auto track version of git tag
Browse files Browse the repository at this point in the history
  • Loading branch information
archenu committed Aug 28, 2024
1 parent c652fa5 commit 263968c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling"]
requires = ["hatchling","hatch-vcs"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -32,7 +32,8 @@ classifiers = [
"Programming Language :: Python :: 3.8",
]
[tool.hatch.version]
path = "src/fy_polyfit/polyfit.py"
# path = "src/fy_polyfit/polyfit.py"
source = "vcs"

[project.scripts]
polyfit = "fy_polyfit.polyfit:main"
Expand Down

0 comments on commit 263968c

Please sign in to comment.