feat: replace mirror.py with repo-release-tools rrt sync#175
Open
Anselmoo wants to merge 1 commit into
Open
Conversation
… sync Upgrades the mirror pipeline to use `rrt sync --bump --commit --tag`, which handles PyPI polling, file updates, commits, and tagging in a single call — eliminating both mirror.py and versions.py entirely. Adds [tool.rrt.upstream] config (package = "ruff", provider = "pypi") so rrt can discover newer ruff releases autonomously. Closes astral-sh#171 follow-up: the TOML rev pattern regression is also covered by the rrt pin_targets config introduced in the previous commit. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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
Replaces the bespoke
mirror.pyPEP 723 script withrepo-release-tools v1.10.1'srrt synccommand, which handles PyPI polling, config-driven file updates, commits, and tagging in a single call.mirror.py(hardcoded regexes caused mirror.py does not update prek rev in README.md #171 — TOMLrev = "v..."pattern was missed)[tool.rrt]config inpyproject.tomlwithversion_targets+pin_targets(fixes mirror.py does not update prek rev in README.md #171)[tool.rrt.upstream]sorrt synccan discover newer ruff releases from PyPI autonomouslyrrt sync --bump --commit --tagmirror.py(urllib3, PEP 723 script)rrt sync(stdlib HTTP, zero extra deps)version_targets+pin_targetsgit commitin script--commit(template:Mirror: {version})git tagin script--tag(annotated, prefixv)uv run --no-project mirror.pyrrt sync --bump --commit --tagDry-run output
All four patterns (pyproject.toml dep, YAML
rev:, TOMLrev = "v...", badge URL) are updated correctly.Closes #174
Ref: #171