package-url / packageurl-python

Python implementation of the package url spec. This project is sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase/ , the Google Summer of Code, nexB and other generous sponsors.
68 stars 42 forks source link

url2purl: handle pypi.org urls #128

Closed schischi closed 10 months ago

schischi commented 1 year ago

pypi.org replaced pypi.python.org in 2017 and so most urls are now using this. See: https://packaging.python.org/en/latest/glossary/#term-pypi.org

Make sure we route this domain properly so that we don't generate generic purls.

Input: https://pypi.org/packages/source/z/zc.recipe.egg/zc.recipe.egg-2.0.0.tar.gz Before: pkg:generic/zc.recipe.egg-2.0.0.tar.gz?download... After: pkg:pypi/zc.recipe.egg@2.0.0