Repository navigation
Commit 346eefd
committed
fix: fetch git tags in cibuildwheel for setuptools_scm version detection
cibuildwheel creates isolated build environments where git tags from the
outer checkout are not available. This caused setuptools_scm to fall back
to v0.5.1 instead of detecting v0.6.0.
Solution: Add 'git fetch --force --tags' to the before-build step in
cibuildwheel configuration. This ensures setuptools_scm can properly
detect the version from git tags inside each build environment.
The '|| true' ensures builds still work from source tarballs where git
is not available.
Fixes PyPI upload failures due to incorrect version numbers in wheel filenames.1 parent b0583ad commit 346eefd
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| |||
0 commit comments