Skip to content

Canonicalise package name in tests.lib.create_basic_wheel_for_package #8067

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 2 commits into from
May 21, 2020

Conversation

deveshks
Copy link
Contributor

Fixes and closes #8064

Use a canonical package name while creating the wheel file name in tests.lib.create_basic_wheel_for_package using PEP 491 Escaping and Unicode.

Since it's a bug fix in the unit tests and won't affect the end-user, marking it as trivial.

@deveshks deveshks force-pushed the fix-create-basic-wheel-bug branch from a9b1dae to 7bcccbd Compare April 16, 2020 19:51
@deveshks
Copy link
Contributor Author

I ended up creating a test in test_install_wheel.py and only using the package names with a dot and dash.

I didn't use a package name with dot since I was a little confused. On one hand, the regex present at PEP-491 Escaping and Unicode tells me that having a dot in a wheel file is valid since we don't strip it out from a package name, and on the other hand, as per #8054 (comment) , having a dot in a wheel file name is invalid.

@deveshks deveshks force-pushed the fix-create-basic-wheel-bug branch from 87cb86e to b60b0f3 Compare April 18, 2020 04:02
@deveshks deveshks requested a review from xavfernandez April 18, 2020 04:02
@deveshks deveshks force-pushed the fix-create-basic-wheel-bug branch from b60b0f3 to 22878a8 Compare April 18, 2020 05:33
@deveshks
Copy link
Contributor Author

Thanks @xavfernandez for the approval. Will this be merged post the new pip release?

@pfmoore pfmoore merged commit 80c640b into pypa:master May 21, 2020
@pfmoore
Copy link
Member

pfmoore commented May 21, 2020

Thanks for the fix!

@deveshks deveshks deleted the fix-create-basic-wheel-bug branch May 21, 2020 12:55
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Potential bug in "tests.lib.create_basic_wheel_for_package"
4 participants