Repository navigation
#201 Adopt the shared co-pypi wrapper; fetch wheels with their own script - #205
Merged
Merged
Conversation
install.sh --co-pypi --replace from deploying-releases at skills 8f2dbfae: scripts/co-pypi.sh and scripts/co_pypi_token.py are its marked copies, and tests/test_co_pypi.py its consumer test. The key is CO_PYPI_KEY, else /etc/replicator/co-pypi-reader.json. pyproject gains the co-pypi group the minter runs from (google-auth[requests], already locked) and excludes the minter from ruff. tests/test_co_pypi_token.py goes: the skill's structural suite covers the pair, and its wheels cases move to the fetcher's test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed wrapper scripts/co_pypi_wheels.py replaces the old wrapper's wheels verb. It runs as bash scripts/co-pypi.sh uv run --no-project python scripts/co_pypi_wheels.py --dest DIR --version V... PACKAGE..., reading the credential pair the wrapper hands uv, so it holds no key, no google-auth and no allowlist of its own. uv cannot do it alone: it has no download command and leaves no .whl behind. Packages come from arguments, the index from pyproject's co-pypi [[tool.uv.index]]; names normalize by PEP 503 and the wheel spec. Each file is sha256-checked against the index, renamed into place, and the token goes to the index host alone. Standard library only; the test loads the script by path and needs nothing from this repo, so the pair can drop into the skill's assets/co-pypi/ unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Its missing- and corrupt-wheel errors, the docstring's example and --wheels' help named co-pypi.sh's retired wheels verb; each now names scripts/co_pypi_wheels.py under the wrapper, with the directory, version and packages filled in. Nothing else in it changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The shared wrapper defaults its key to /etc/<[project].name>/co-pypi-reader.json, this host's /etc/replicator/co-pypi-reader.json, so the hooks' export of REPLICATOR_CO_PYPI_CREDENTIALS goes. The test now proves the hooks export no key variable (from an empty environment) and that the installed minter's default names the host's key. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tcher README, COMMANDS, DEPENDENCIES, ENVIRONMENT, TESTING, ARCHITECTURE and the three manifest entries: the wrapper is deploying-releases' copy, its key defaults to /etc/replicator/co-pypi-reader.json so nothing sets CO_PYPI_KEY, and a pin move fetches its wheels with scripts/co_pypi_wheels.py under it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wheels verb Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… as the service's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…_KEY row Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…wrapped Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ge into a named error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
41 of 43 tasks
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.
Refs #201: closed by hand once the deploy proves the new wrapper.
Shared wrapper.
install.sh --co-pypi --replace(skills8f2dbfae) installsscripts/co-pypi.shandscripts/co_pypi_token.pyas marked copies, plustests/test_co_pypi.py.install.sh --checkis clean.co-pypidependency group and a ruff exclude for the minter. The lock diff is that group alone.CO_PYPI_KEY, else/etc/replicator/co-pypi-reader.json, so the deploy hooks export nothing.Wheel fetcher.
scripts/co_pypi_wheels.pyreplaces the oldwheelsverb. It runs under the wrapper and reads the pair the wrapper hands uv:Closure diff. Only its fetch-naming strings change. The dry pin move reproduces #199's 0.45.0 → 0.46.1 report byte for byte.
Gates and the brief review are on the issue.
🤖 Generated with Claude Code