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

upper case url reqs not aliased with name.lower() like other forms #724

merged 2 commits into from Nov 15, 2012


None yet
2 participants

qwcode commented Nov 14, 2012

consider this requirements file

and know that:

  1. "Pygments" is the upper case project name in
  2. pygments-style-solarized depends on "pygments" lower case.

what you end up with in site-packages is metadata for both being installed:

Pygments-1.4-py2.6.egg-info (whats in the req file)
Pygments-1.5-py2.6.egg-info (the latest)

Pygments is not considered the same as "pygments".

this does not happen, when the requirements file is this:


I've also seen cases like this with "Django", where Django is installed with a url link, and some other requirement depends on "django"

the diff here is very small, and I added a test, which required some new packages. the fix amounts to closing a loophole in the way 'unnamed' requirements were being added to the requirement set. they were bypassing the method that adds the lower case alias.

pnasrat added a commit that referenced this pull request Nov 15, 2012

Merge pull request #724 from qwcode/unnamed
upper case url reqs not aliased with name.lower() like other forms

@pnasrat pnasrat merged commit 854574f into pypa:develop Nov 15, 2012

1 check passed

default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment