Skip to content
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

Verify built wheel contains valid metadata #9320

Merged
merged 1 commit into from
Jan 5, 2021

Conversation

uranusjr
Copy link
Member

@uranusjr uranusjr commented Dec 19, 2020

Fix #9206 and unblock #9199.

@pradyunsg pradyunsg closed this Dec 27, 2020
@pradyunsg pradyunsg reopened this Dec 27, 2020
@pradyunsg pradyunsg added C: build logic Stuff related to metadata generation / wheel generation C: wheel The wheel format and 'pip wheel' command type: enhancement Improvements to functionality labels Dec 27, 2020
)
if canonicalize_version(dist.version) != canonicalize_version(w.version):
raise InvalidWheelFilename(
"Wheel has unexpected file name: expected {!r}, "
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unexpected file version no ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The technically correct expression is “the version field in the file name” but that’s probably too long and not comprehensible to typical users.

@stefansjs
Copy link

I'm glad this got fixed so quickly! Thanks @uranusjr! Any idea if this PR will make it into the next release?

@uranusjr
Copy link
Member Author

uranusjr commented Jan 5, 2021

My hope is to include this in 20.3.4, but can't provide a promise or timeline. The release manager is in charge of those.

@pradyunsg pradyunsg merged commit c7419b2 into pypa:master Jan 5, 2021
@uranusjr uranusjr deleted the wheel-check-valid branch January 5, 2021 21:49
pradyunsg added a commit to pradyunsg/pip that referenced this pull request Jan 23, 2021
Verify built wheel contains valid metadata
jsirois added a commit to pex-tool/pip that referenced this pull request Feb 1, 2021
* Merge pull request pypa#9289 from uranusjr/new-resolver-lazy-insert

* Merge pull request pypa#9315 from pradyunsg/better-search-errors

* Merge pull request pypa#9369 from uranusjr/resolvelib-054

* Merge pull request pypa#9320 from uranusjr/wheel-check-valid

Verify built wheel contains valid metadata

* Merge pull request pypa#9432 from uranusjr/new-resolver-dedup-on-backtracking

Avoid downloading multiple candidates of a same version

* Revert "Remove on_returncode parameter from call_subprocess"

This reverts commit ab3ee71.

* Revert "Remove show_stdout from run_command args"

This reverts commit 94882fd.

* Revert "Create call_subprocess just for vcs commands"

This reverts commit 8adbc21.

* Revert "Improve check for svn version string"

This reverts commit 1471897.

* Revert "Bubble up SubProcessError to basecommand._main"

This reverts commit e9f738a.

* Additional revert of 7969

Revert additional changes that were made
after 7969 and depended on it.

* add stdout_only to call_subprocess

* vcs: capture subprocess stdout only

* Add test for call_subprocess stdout_only

* Bump for release

* Fix test bitrot.

Setuptools released 52.0.0 which killed easy_install support and thus
caused tests exercising easy_install to fail.

Co-authored-by: Pradyun Gedam <[email protected]>
Co-authored-by: Stéphane Bidoul <[email protected]>
Co-authored-by: Pradyun Gedam <[email protected]>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
C: build logic Stuff related to metadata generation / wheel generation C: wheel The wheel format and 'pip wheel' command type: enhancement Improvements to functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pip wheel should ensure the produced wheels are valid
4 participants