8000 fix: embed stamped version in py_wheel METADATA by mattoberle · Pull Request #935 · bazel-contrib/rules_python · GitHub
[go: up one dir, main page]

Skip to content

fix: embed stamped version in py_wheel METADATA #935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Dec 24, 2022

Conversation

mattoberle
Copy link
Contributor
@mattoberle mattoberle commented Dec 19, 2022

PR Checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix

What is the current behavior?

Issue Number: #845

Prior to rules_python==0.14.0 the dist-info/METADATA file built by py_wheel resolved stamped data.
This can be confirmed by doing the following:

git checkout 0.13.0
git cherry-pick 921ad79
bazel test //examples/wheel/...

Where 921ad79 is the commit from this PR that adds the test for the resolved version.

Beginning with 0.14.0, version is incorrectly set.

What is the new behavior?

This PR restores the previous behavior by writing the Version: in wheelmaker.py.
One side effect is that the order of the METADATA file is modified.
Version: was previously after Name:. Now Version: is the final key before the "description".

Note: I also had to run bazel run //:vendor_requirements from within examples/pip_parse_vendored to fix CI. Does not seem related to this PR, I can remove that change if it should not be included.

Does this PR introduce a breaking change?

  • Yes
  • No

mattoberle and others added 4 commits December 19, 2022 17:42
This seems unrelated to the bazel-contrib#845 issue fix.
CI wants `requirements.bzl` to list `@//:requirements.txt`
not `//:requirements.txt`?
Co-authored-by: Matt Oberle <matt.r.oberle@gmail.com>
@f0rmiga f0rmiga merged commit b455267 into bazel-contrib:main Dec 24, 2022
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
0