Skip to content

swiglpk: commit the patch and re-tag to avoid a versioneer dev version - #1936

Merged
luhenry merged 1 commit into
mainfrom
swiglpk
Sep 15, 2026
Merged

luhenry merged 1 commit into
mainfrom
swiglpk

Conversation

@luhenry

@luhenry luhenry commented Sep 14, 2026

Copy link
Copy Markdown
Member
  • Package: swiglpk

Unlike the other version-pin fixes in this series (asv/pynng/uharfbuzz/zlib-ng/nodejs-wheel-binaries/mlx), swiglpk uses versioneer (not setuptools_scm), which has no environment-variable pretend-version override. It renders the version from git describe --tags --dirty, so the patched-but-uncommitted checkout came out as 5.0.13+0.g3b4202a.dirty instead of the clean 5.0.13.

Fix: commit the patch locally and force-move the local 5.0.13 tag onto that commit, so git describe reports 0 distance and a clean tree - i.e. exactly 5.0.13 again.

License: OK, unchanged.

versioneer (setup.py: version=versioneer.get_version()) has no env-var
pretend-version override, unlike setuptools_scm. It renders the version
from `git describe --tags --dirty`, so the patched-but-uncommitted tree
came out as 5.0.13+0.g3b4202a.dirty instead of the clean 5.0.13. Commit
the patch and force-move the local tag onto it so describe reports the
exact tagged version again (0 distance, clean tree).
@luhenry
luhenry merged commit 544d5b5 into main Sep 15, 2026
16 of 17 checks passed
@luhenry
luhenry deleted the swiglpk branch September 15, 2026 04:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant