libraries.io icon indicating copy to clipboard operation
libraries.io copied to clipboard

PyPi package name: redirect dash / minus ↔ underscore

Open uda opened this issue 7 years ago • 1 comments

In pypi, some package names containing a dash / minus are redirected to the same link with underscores, and some the other way around, in libraries.io this is not reflected, it would be nice to not reach a 404 over this.

Examples:

  • minus → underscore: https://pypi.org/project/semantic-version/ → https://pypi.org/project/semantic_version/
  • underscore → minus: https://pypi.org/project/universal_analytics_python/ → https://pypi.org/project/universal-analytics-python/

uda avatar Jul 24 '18 08:07 uda

Another example: https://libraries.io/api/pypi/facebook_business vs https://libraries.io/api/pypi/facebook-business

It seems like originally the package was called facebook_business but then was renamed to facebook-business. PyPI API says so: https://pypi.org/pypi/facebook_business/json

And it seems like Libraries.io just stopped updating facebook_business package without handling renaming.

AndreiPashkin avatar Dec 29 '19 17:12 AndreiPashkin