Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

should ignore case in package name #1

Closed
srid opened this issue Apr 14, 2011 · 3 comments
Closed

should ignore case in package name #1

srid opened this issue Apr 14, 2011 · 3 comments

Comments

@srid
Copy link

srid commented Apr 14, 2011

best way to do this is using setuptools/Distribute: pkg_resources.safe_name(name.lower())

$ vanity django
No downloads. Are you sure `django` exists?

$ vanity Django
Package `Django` has been downloaded 217995 times!
@aclark4life
Copy link
Owner

I agree, but I'm not sure I understand how that code helps. I looked into it and there is a to_filename too, but neither of them fixes the "Django" vs. "django" problem AFAICT.

E.g. safe_name ('django') returns "django", which doesn't help…

@srid
Copy link
Author

srid commented Apr 20, 2011

Perhaps you could do just what easy_install does, i.e. request http://pypi.python.org/simple/django/ which automatically redirects to /Django/

JNRowe added a commit to JNRowe-retired-forks/vanity that referenced this issue Oct 24, 2011
@aclark4life
Copy link
Owner

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants