Skip to content

Commit

Permalink
Try to detect python package version dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
scottwittenburg committed Dec 5, 2023
1 parent 9ffd7e4 commit 982b555
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[build-system]
requires = ["scikit-build-core", "numpy"]
requires = ["scikit-build-core", "numpy", "setuptools_scm>=8"]
build-backend = "scikit_build_core.build"

[project]
name = "adios2_scottwittenburg"
version = "2.9.2"
dynamic = ["version"]
authors = [
{ name="Chuck Atkins", email="chuck.atkins@kitware.com" },
{ name="Greg S. Eisenhauer", email="eisen@cc.gatech.edu" },
Expand All @@ -31,6 +31,11 @@ Issues = "https://github.com/ornladios/adios2/issues"

[tool.scikit-build]
wheel.packages = ["adios2"]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
sdist.include = ["src/package/_version.py"]

[tool.setuptools_scm] # Section required
write_to = "src/package/_version.py"

[tool.scikit-build.cmake.define]
ADIOS2_USE_Python = "ON"
Expand Down

0 comments on commit 982b555

Please sign in to comment.