-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
url2purl: handle pypi.org urls (#128)
* url2purl: handle pypi.org urls 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 * url2purl: handle pypi project urls Some tools are reporting `https://pypi.org/project/<name>/<version>` urls for pypi packages, let's make sure we can generate proper purls. Input: https://pypi.org/project/widgetsnbextension/3.0.7 Before: pkg:generic/3.0.7?download_url=... After: pkg:pypi/widgetsnbextension@3.0.7
- Loading branch information
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters