@@ -31,13 +31,15 @@ classifiers = [
3131Homepage = " https://github.com/skilledwolf/cpp_hf"
3232Issues = " https://github.com/skilledwolf/cpp_hf/issues"
3333
34- # Provide version dynamically from git tags via setuptools_scm
35- [tool .setuptools_scm ]
36- fallback_version = " 0.0.0"
37- tag_regex = " ^(?:v)?(?P<version>\d +\.\d +\.\d +)$"
3834
39- [tool .scikit-build .metadata ]
40- version = { provider = " scikit_build_core.metadata.setuptools_scm" }
35+ [tool .scikit-build .metadata .version ]
36+ provider = " scikit_build_core.metadata.setuptools_scm"
37+
38+ [tool .setuptools_scm ]
39+ # Strip leading 'v' from tags like v1.2.3 automatically
40+ version_scheme = " guess-next-dev"
41+ local_scheme = " node-and-date"
42+ fallback_version = " 0.0"
4143
4244# [tool.scikit-build]
4345# No pure-Python packages shipped; wheel only contains the extension module
@@ -86,3 +88,18 @@ CMAKE_PREFIX_PATH = "/project/.cache/fftw-3.3.10-x86_64:/project/.cache/fftw-3.3
8688LIBRARY_PATH = " /project/.cache/fftw-3.3.10-x86_64/lib:/project/.cache/fftw-3.3.10-aarch64/lib:$LIBRARY_PATH"
8789CPATH = " /project/.cache/fftw-3.3.10-x86_64/include:/project/.cache/fftw-3.3.10-aarch64/include:$CPATH"
8890BOOST_INCLUDEDIR = " /project/.cache/boost-1.89.0/include"
91+
92+
93+ [tool .scikit-build .wheel ]
94+ # Ensure license and notices are embedded in the wheel metadata
95+ license-files = [
96+ " LICENSE" ,
97+ " THIRD_PARTY_NOTICES.md" ,
98+ ]
99+
100+ [tool .scikit-build .sdist ]
101+ # Ensure third-party notices are included in the source distribution
102+ include = [
103+ " LICENSE" ,
104+ " THIRD_PARTY_NOTICES.md" ,
105+ ]
0 commit comments