fix(ci): stopgap the JupyterLite piplite index wheel-overwrite bug#559
Open
petercorke wants to merge 1 commit into
Open
fix(ci): stopgap the JupyterLite piplite index wheel-overwrite bug#559petercorke wants to merge 1 commit into
petercorke wants to merge 1 commit into
Conversation
The live "Try it Now" notebook's first cell was failing with ValueError: Can't find a pure Python 3 wheel for 'roboticstoolbox-python'. Root cause is upstream in jupyterlite-pyodide-kernel (confirmed present in both the pinned 0.6.1 and latest 0.7.1): its all.json index generator keys entries by (name, version) and overwrites rather than accumulates, so when a release carries wasm wheels for more than one CPython version (this repo's do -- cp312 and cp313, both tagged 1.3.1), only the alphabetically-last survives in the generated index. The deployment's pinned kernel needs cp312; the index only had cp313 after the ci.yml fetch step (--pattern '*pyodide*') grabbed both. Narrows the fetch pattern to '*cp312*pyodide*' so only the wheel this deployment actually needs reaches docs/lite/pypi/, sidestepping the upstream bug rather than depending on it getting fixed. Deliberately a stopgap, not the real fix -- see tech-debt.md. The real fix is a genuine py3-none-any pure-Python wheel on PyPI, which Pyodide's micropip would resolve automatically with none of this custom GitHub-release-asset/piplite-index machinery at all. That's queued behind the RNE correctness work (rne.md). Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #559 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 142 142
Lines 13694 13694
=====================================
Misses 13694 13694 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ValueError: Can't find a pure Python 3 wheel for 'roboticstoolbox-python'.jupyterlite-pyodide-kernel(confirmed present in both the pinned0.6.1and latest0.7.1): itsall.jsonindex generator keys entries by(name, version)and overwrites rather than accumulates. Since this repo's releases carry wasm wheels for more than one CPython version (cp312andcp313, both tagged the same release version), only the alphabetically-last (cp313) survived in the generated index — but the pinned kernel needscp312.ci.yml'sgh release download --patternfrom*pyodide*to*cp312*pyodide*, so only the wheel this deployment actually needs reachesdocs/lite/pypi/, sidestepping the upstream bug entirely.tech-debt.md) — the real fix is a genuinepy3-none-anypure-Python wheel on PyPI, queued behind the RNE correctness work (rne.md).Test plan
cp312asset against the realv1.3.1release assetsdocs-buildCI job on this PR exercises the real fetch step end-to-end — will confirmall.jsonnow contains thecp312wheel🤖 Generated with Claude Code