Skip to content

packaging/piptool: sort wheels and extras for deterministic output - #279

Merged
brandjon merged 2 commits into
bazel-contrib:masterfrom
andrew-d:andrew/piptool-sorted
Mar 4, 2020
Merged

packaging/piptool: sort wheels and extras for deterministic output#279
brandjon merged 2 commits into
bazel-contrib:masterfrom
andrew-d:andrew/piptool-sorted

Conversation

@andrew-d

Copy link
Copy Markdown
Contributor

I ran into this while updating gvisor in NixOS (NixOS/nixpkgs#80875); the requirements.bzl file generated by rules_python isn't reproducible, differing based on the filesystem-order-dependent return from os.walk.

This PR is a minimal fix that sorts the repositories in requirements.bzl and the return value from Wheel.extras().

@andrew-d

Copy link
Copy Markdown
Contributor Author

@brandjon @lberki - Anything I can do to help get this merged?

@brandjon

brandjon commented Mar 4, 2020

Copy link
Copy Markdown
Contributor

Hi Andrew, thanks for the PR. This seems straightforward enough. (Perhaps the sorts should be factored into the Wheel class at some point.)

Rebasing, regenerating the par files, and merging...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants