Closed wolever closed 7 years ago
And pip2pi 0.6.5 has been pushed to PyPI. Comments would be great!
Works pretty well, but I still receive deprecation warnings on packages with underscores. Those underscores are checked as hyphens when the dependency is being grabbed.
pkg_resources.safe_name(x).lower()
is what's being used in bandersnatch. Isn't that what we should be doing too?
Installing httpretty with pip2pi --normalise-package-names errors with file not found readme.rst (file is README.rst). Installing without --normalise-package-names gives: WARNING: Non-normalized packages encountered.
The most recent version, 0.7.0rc1, should correctly normalize package names.
Would you be able to install it:
pip install pip2pi==0.7.0rc1
And, if it isn't fixed, can you comment on #55?
It seems like pip[0] and bandersnatch[1] are now normalizing package names in the simple index, so for example
simple/Django/Django-1.7.tar.gz
becomessimple/dango/Django-1.7.tar.gz
.As of 0.6.5 pip2pi will include a
--normalize-package-names
option (default: disabled) and will issue a deprecation warning when it encounters a non-normalized package name. If no issues are found by about June 2015--normalize-package-names
will become the default.Thanks to @orodbhen for initially reporting this: https://github.com/wolever/pip2pi/pull/35. See also: https://github.com/pypa/pip/issues/2136
0: https://github.com/pypa/pip/pull/2001 1: https://bitbucket.org/pypa/bandersnatch/pull-request/7/prefer-normalized-directory-names-but-keep/diff