Skip to content

Conversation

umeboshi2
Copy link
Contributor

Using pip 19.2.3, the package names contain dashes, rather than underscores.
To reproduce bug:

Create new virtual environment.

pip install -U pip
pip install pyramid-jwt
pip install django-rest-auth
pip freeze > reqs.txt
pip-upgrade reqs.txt | grep error

The PR fixes this problem, but also raises a runtime error which may not be desired.

@coveralls
Copy link

Coverage Status

Coverage decreased (-1.2%) to 98.529% when pulling a16e3d7 on umeboshi2:dashes-in-pkg-names into 5e2fb4c on simion:master.

all_versions = self._get_simple_html_package_info_versions(
package_name, response)
if not all_versions:
# print("{}: NO VERSIONS AVAILLABLE".format( package_name))
Copy link
Contributor

Choose a reason for hiding this comment

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

To be removed

# print("{}: NO VERSIONS AVAILLABLE".format( package_name))
fixed_name = package_name
# if we find a dash, presume earlier name used an underscore
if '-' in package_name:
Copy link
Contributor

Choose a reason for hiding this comment

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

You need to add a test to cover this part of code

@simion
Copy link
Owner

simion commented Oct 31, 2019

A test for 100% coverage would be nice :)

@umeboshi2
Copy link
Contributor Author

Tests fail when an index url is assigned in a local pip.conf file.

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