Skip to content

Commit

Permalink
Fix the metadata version provider
Browse files Browse the repository at this point in the history
  • Loading branch information
FanwangM committed Oct 24, 2024
1 parent b370d10 commit ad2c8fd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ cmake.args = [
"-DLINK_TO_PYTHON=ON",
"-DDONT_COMPILE_TESTS=ON"
]
metadata.version.provider = "setuptools_scm"
# https://scikit-build-core.readthedocs.io/en/latest/configuration.html
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/package/_version.py"]

[tool.setuptools_scm]
# can be empty if no extra settings are needed, presence enables setuptools-scm
# https://scikit-build-core.readthedocs.io/en/latest/configuration.html
write_to = "src/package/_version.py"

0 comments on commit ad2c8fd

Please sign in to comment.