Skip to content

Reuse package-handling code from vinca and py-rattler in check tools - #211

Closed
EzraBrooks wants to merge 3 commits into
RoboStack:mainfrom
EzraBrooks:py-rattler
Closed

EzraBrooks wants to merge 3 commits into
RoboStack:mainfrom
EzraBrooks:py-rattler

Conversation

@EzraBrooks

Copy link
Copy Markdown
Contributor

Companion PR to RoboStack/vinca#196.

Based on #193 because I don't want to resolve even more merge conflicts than I have to 🙈

Along the way, fixed a bug with ~= version constraints and added a new
suite of tests for version ordering and constraints.

EzraBrooks and others added 3 commits November 8, 2026 16:57
Drop when lyrical-python-abi has merged: git rebase --onto upstream/main <this commit> py-rattler
Along the way, fixed a bug with `~=` version constraints and added a new
suite of tests for version ordering and constraints.
@Tobias-Fischer

Copy link
Copy Markdown
Collaborator

@EzraBrooks I've put the py-rattler part of this PR on top of the vinca-rs stack as #272 (your authorship kept): rattler's Version/VersionSpec with your ~= fix and tests, and rattler for repodata and package archives in abi_check, package_tests and python_abi_audit. I left out the reuse of vinca's get_channel_records (vinca#196), since the stack moves recipe generation to vinca-rs; a small rattler helper (tools/channel_repodata.py) does that job instead. This PR stays open for you and @Tobias-Fischer to decide on.

🤖 Claude (AI assistant), on behalf of @Tobias-Fischer

@Tobias-Fischer

Copy link
Copy Markdown
Collaborator

Included in the vinca-rs PR stack

Tobias-Fischer pushed a commit that referenced this pull request Dec 6, 2026
From #211, without its reuse of vinca's code: py-rattler's Version and
VersionSpec replace the hand-written version logic of check_dependency_compat
(which got `~=` constraints wrong; tests for version ordering and
constraints), the maintenance tasks and abi_check; abi_check, package_tests
and python_abi_audit fetch repodata and download and read package archives
with py-rattler, through one helper (tools/channel_repodata.py) instead of
urllib, zipfile and zstandard. check_dependency_compat keeps reading local
channels and repodata.json files itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

2 participants