Repository navigation
Conversation
Add uv.lock with a 5-day cooldown. Torch, torch-scatter and pyg-lib move to a ci dependency group, and hatchling and twine to a build group, so that test, build and release jobs install only locked versions with hashes. Remove the setup action that installed them with pip. Co-Authored-By: Claude Opus 5.5 <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.
What
uv.lockandexclude-newer = "5 days", the same cooldown as Renovate.cidependency group with torch 2.0.0 (CPU index), torch-scatter 2.1.2 and pyg-lib 0.4.0, for linux x86_64 and Python 3.10 only. These are not package dependencies, so users still install the build for their CUDA version.numpy<2in thecigroup, because torch 2.0.0 cannot convert arrays with NumPy 2 ("Failed to initialize NumPy"). The current pip setup installs NumPy 2.buildgroup with hatchling and twine. Build and release runuv build --no-build-isolationwith the locked backend.uv sync --locked. setup-uv is pinned by SHA, and uv to 0.13.7 with a Renovate annotation..github/actions/setup, which installed torch and the PyG packages with pip.Why
Supply chain rules CI installs from the lock file and Pin every dependency.
pyproject.tomlkeeps version ranges, as the rule for libraries asks.Testing
In a
python:3.10-slimlinux/amd64 container with uv 0.13.7, I ran the same commands as the workflows:uv sync --locked --extra dev --extra tests --group ci, then pytest: 9 passed, 1 skipped.uv build --no-build-isolationandtwine check --strict: passed.uv lock --checkpasses. No locked release is younger than 5 days.Note: the Test workflow is disabled on this fork (
disabled_fork), so CI does not run these tests until it is enabled.🤖 Generated with Claude Code