Skip to content

Commit 8849f7d

Browse files
committed
Update .gitignore and pyproject.toml for improved versioning and metadata handling
1 parent fe719d2 commit 8849f7d

2 files changed

Lines changed: 24 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ __pycache__/
99
outputs/
1010

1111
# Local tests and dev-only scripts
12+
new_github_release.sh
1213
tests/
1314
compare_cpp_vs_jax_bilayer.py
1415
quick_sanity_check.py

pyproject.toml

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ classifiers = [
3131
Homepage = "https://github.com/skilledwolf/cpp_hf"
3232
Issues = "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
8688
LIBRARY_PATH = "/project/.cache/fftw-3.3.10-x86_64/lib:/project/.cache/fftw-3.3.10-aarch64/lib:$LIBRARY_PATH"
8789
CPATH = "/project/.cache/fftw-3.3.10-x86_64/include:/project/.cache/fftw-3.3.10-aarch64/include:$CPATH"
8890
BOOST_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

Comments
 (0)