elegion / djangodash2013

Django Dash 2013 entry for team e-Legion
MIT License
1 stars 2 forks source link

Normalize case for package names #1

Open saulshanabrook opened 10 years ago

saulshanabrook commented 10 years ago

For instance saulshanabrook/django-canadanewyork lists Django and is reccommended django. Maybe store all packages as lower case?

glyuck commented 10 years ago

Good catch! Looks like pkgtools.pypi can handle it, and I broke it in one of commits trying to speed up repos analyzing. Will review this commit and maybe revert it. https://github.com/elegion/djangodash2013/blob/master/wtl/wtparser/parsers/requirements_txt.py#L61

# TODO: get rid of fast=true (need to normalize package name)
json = PyPIJson(package_name, fast=True).retrieve(_request)