Description
Describe the bug
https://pypi.org/project/importlib-resources/ shows importlib-resources-5.9.0
as latest.
However, curl --silent --location --header 'Accept: application/json' https://pypi.org/pypi/importlib-resources/json | jq '.releases' | grep '5\.9\.0'
does not find it.
This discrepancy is causing errors with package dependency upgrades when there is attempt to associate importlib-resources-5.9.0
with a particular file to download.
$ curl --silent --location --header 'Accept: application/json' https://pypi.org/pypi/importlib-resources/json | jq '.releases' | grep '5\.8\.1' || echo $?
"5.8.1": [
"filename": "importlib_resources-5.8.1-py3-none-any.whl",
"url": "https://files.pythonhosted.org/packages/be/1f/f5a73ba2612c0b9efb4babd07163feed72390c42655e2eb2399b3eb9ab89/importlib_resources-5.8.1-py3-none-any.whl",
$ curl --silent --location --header 'Accept: application/json' https://pypi.org/pypi/importlib-resources/json | jq '.releases' | grep '5\.9\.0' || echo $?
1
Expected behavior
releases
list from JSON API should reflect what is considered the latest release in the Warehouse UI as long as releases
is still being used at all.
To Reproduce
See description.
My Platform
Not particularly relevant, but I can see same problem with both curl
and Python's urllib
.
Additional context
I understand that the releases
portion of the response has been marked as deprecated in the JSON API, but my understanding is that it has not yet been obsoleted. Unsure if this is related to recent changes in the Warehouse code base or not - cursory inspection show there is some schema change related to releases but I have not dove deep enough to understand its relevance and possible effects.