diff --git a/pyproject.toml b/pyproject.toml index cad1173..3277179 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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"