Skip to content

Commit

Permalink
build: change build to autogen version info (#1062)
Browse files Browse the repository at this point in the history
* change build to autogen version info

* remove static version.py

* style: pre-commit fixes

* missing plugin

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jim Pivarski <[email protected]>
  • Loading branch information
3 people authored Jan 3, 2024
1 parent 5d558d2 commit 63bb43f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
[build-system]
build-backend = "hatchling.build"
requires = [
"hatchling"
"hatchling",
"hatch-vcs"
]

[project]
Expand Down Expand Up @@ -79,8 +80,12 @@ test = [
Download = "https://github.com/scikit-hep/uproot5/releases"
Homepage = "https://github.com/scikit-hep/uproot5"

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

[tool.hatch.version]
path = "src/uproot/version.py"
path = "src/uproot/__init__.py"
source = "vcs"

[tool.isort]
profile = "black"
Expand Down Expand Up @@ -151,3 +156,6 @@ max-complexity = 100
[tool.ruff.per-file-ignores]
"dev/*" = ["T20"]
"src/uproot/*/file.py" = ["SIM115"]

[tool.setuptools_scm]
write_to = "src/uproot/_version.py"

0 comments on commit 63bb43f

Please sign in to comment.