Skip to content

Commit a555913

Browse files
pdbethkeclaude
andcommitted
fix(release): resolve the wheel path before installing with cwd=tmp
The install-clean guard ran pip with cwd=tmp against the relative dist/ path CI passes, so the wheel was never found and every tagged release failed its own guard. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PrVDXgpDfQpzEGErZTLjEs
1 parent 6730a78 commit a555913

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/check_release.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,10 @@ def check_install_and_version(wheel: Path) -> bool:
100100
--no-cache-dir, so a dependency that only resolves because it happens to
101101
be on this machine cannot mask a floor that is too low.
102102
"""
103+
# The install below runs with cwd=tmp, so a relative `dist/...` argument
104+
# (exactly how CI invokes this script) stops resolving the moment pip
105+
# changes directory -- the 0.5.0 release failed its own guard this way.
106+
wheel = wheel.resolve()
103107
meta = wheel_metadata(wheel)
104108
dist_name = meta["Name"][0]
105109
version = meta["Version"][0]

0 commit comments

Comments
 (0)