This repository has been archived by the owner on Feb 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
pkg_resources.safe_name() is not PEP 503 complient #13
Comments
Until pkg_resources if effectively split from setuptools, the right place to fill a bug about it is still there. |
Ah, this explains why it is so quiet over here. Thanks :) |
Before anybody wonders: I just decided not to file the issue over at setuptools. PEP 503 is aimed for PyPI and friends. Changing the behaviour in setuptools would break too many things. |
@StephanErb pypa/warehouse then? |
Nvm me. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
PEP 503 states that:
This is implemented differently in
pkg_resources.safe_name()
. The.
(dot) should be replaced by-
(hyphen) but isn't. This is causing unexpected behaviour in projects such as pip (e.g. pypa/pip#5021)There is a little room for interpretation here, as PEP 426 does not require
.
to be replaced by-
. Howeverpackaging.utils.canonicalize_name
implements this by replacing.
with-
as well.I therefore believe pkg_resources should to do the same.
The text was updated successfully, but these errors were encountered: