Skip to content

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

Merged
pfmoore merged 1 commit into
pypa:mainfrom
takluyver:wheel-filename-escaping
Feb 28, 2021
Merged

pfmoore merged 1 commit into
pypa:mainfrom
takluyver:wheel-filename-escaping

Conversation

@takluyver

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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