-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Fix dot handling in dist-info directory name #253
Conversation
bb271cb
to
49cc36f
Compare
When searching for a matching dist-info directory, try to escape dots in the name segment. This makes functions like distribution() able to accept PEP 503 normalized names to locate a distribution's dist-info directory if the distribution's name contains dots.
49cc36f
to
8fb96b0
Compare
0d263db
to
d027af6
Compare
In the subsequent commits, I've added tests to capture both the desired normalization behavior, but also capture support for the dot-based metadata as "legacy". |
I've targeted this PR at the maint/2.x branch so it can be rolled out for users on Python 3.5 and 2.7. |
Please let me know what you think of this implementation. If you're happy enough with it, I'll merge and push it out as 2.1 and 3.1. |
Everything looks to me now 👍 |
FYI, this change has caused a regression in discovery of versionless distributions still using the dot (#261). |
When searching for a matching dist-info directory, try to escape dots in the name segment. This makes functions like
distribution()
able to accept PEP 503 normalized names to locate a distribution’s dist-info directoryif the distribution’s name contains dots.
Related discussions: