pypi: use the urls key to find download URLs
PyPI has removed the "releases" dict from the versioned JSON endpoint, migrating to the "urls" key, which is always available; It contains the files for the version currently being fetched, or for the default version of the module when using the versioned JSON endpoint.
-- tested with and without specifying a version when running py2dsp
Merge request reports
Activity
thanks! i noticed that even with this patch
py2dsp -v tusclient
still returns:Exception: source package not available on PyPI
, while it's clearly there https://pypi.org/project/tusclient/wanna have a look at what's going on? thanks!
- Resolved by Nicolas Dandrimont
tusclient only has binary wheels on PyPI, no source distribution. I think erroring out is the right thing to do.
I'll make the error message more verbose.
added 6 commits
-
4b021f08...dceb150b - 3 commits from branch
python-team/tools:master
- 8dfbeeb9 - pypi: use the urls key to find download URLs
- 120a19d9 - Remove confusion between the version requested in CLI and the version actually being downloaded
- 04e64009 - Make the "no source available" error message more verbose
Toggle commit list-
4b021f08...dceb150b - 3 commits from branch
added 23 commits
-
04e64009...066ac0c1 - 20 commits from branch
python-team/tools:master
- ca49004e - pypi: use the urls key to find download URLs
- 5dcb47c5 - Remove confusion between the version requested in CLI and the version actually being downloaded
- 8e25695a - Make the "no source available" error message more verbose
Toggle commit list-
04e64009...066ac0c1 - 20 commits from branch
added 5 commits
-
8e25695a...e62aa15a - 4 commits from branch
python-team/tools:master
- 5ab3b961 - Merge branch 'master' into 'bugfix/pypi-json-releases-key'
-
8e25695a...e62aa15a - 4 commits from branch
mentioned in commit 756b4e4a
sorry i dropped the ball on this @olasd , merged now -- thanks for your contribution!