chore(git-action): Use uv for cross-platform reproducible requirements generation #8548
+36
−56
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.
Which issue(s) does this change fix?
This PR simplifies the reproducible requirements update workflow by using
uv pip compilewith cross-platform compilation support. Instead of requiring 3 separate CI runners (Linux, macOS, Windows) to generate platform-specific requirements files, we can now generate all 3 files from a single Linux runner.Changes
MakefileAdded new
update-reproducible-reqs-uvtarget that usesuv pip compilewith--python-platformflag to generate requirements for all 3 platforms:reproducible-linux.txt(Python 3.11, Linux)reproducible-mac.txt(Python 3.11, macOS)reproducible-win.txt(Python 3.12, Windows)Includes a check to only install
uvif it's not already available.github/workflows/update-reproducibles.ymlastral-sh/setup-uv@v5action for fast, reliableuvinstallationubuntu-latestonlyBenefits
uvresolves platform-specific dependencies without needing the actual platformTesting
make update-reproducible-reqs-uvgenerates all 3 files locallyBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.