Skip to content

Commit

Permalink
Fix dynamic version generation and ignore generated file
Browse files Browse the repository at this point in the history
  • Loading branch information
olilag committed Jul 24, 2024
1 parent 40e01f6 commit 752125e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
src/susi_lib/_version.py

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling", "hatch-vcs"]
requires = ["hatchling>=1.25.0", "hatch-vcs>=0.4.0"]
build-backend = "hatchling.build"

[project]
Expand Down Expand Up @@ -29,7 +29,7 @@ Homepage = "https://github.com/olilag/susi-lib"
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "src/hatch/_version.py"
version-file = "src/susi_lib/_version.py"

[tool.hatch.build.targets.sdist]
exclude = [
Expand Down

0 comments on commit 752125e

Please sign in to comment.