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

Wheel spec: Update rules on escaping components of wheel filename #844

Merged
merged 1 commit into from
Feb 28, 2021

Conversation

takluyver
Copy link
Member

From the discussion at https://discuss.python.org/t/escaping-versions-for-wheel-sdist-and-dist-info-names/5605

These are the same rules as for .dist-info directories, specified in recording installed packages, but with a bit more description for names.

characters should be replaced with ``_`` (LOW LINE). Normalised version
numbers cannot contain ``_``, so the replacement does not lose information.
- The remaining components may not contain ``-`` characters, so no escaping
is necessary.
Copy link
Member

Choose a reason for hiding this comment

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

I personally feel that we should require tools generating wheels to fail with an error if the above rules result in any component still containing a dash, just as a last-ditch safety measure to protect against future standards changes failing to take the wheel naming requirements into account, but no-one else seemed too interested in that, so I'll let it drop at this point.

@pfmoore pfmoore merged commit 0c32efa into pypa:main Feb 28, 2021
@takluyver takluyver deleted the wheel-filename-escaping branch February 28, 2021 21:50
@takluyver
Copy link
Member Author

I addressed @pfmoore's suggestions in #845

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.

4 participants