-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PyPI datasource fall back to simple API if JSON API fails #26483
Comments
It would seem like we could do an "isSimpleIndex()" type check, e.g. if you look at https://download.pytorch.org/whl/cpu/ and https://pypi.org/simple/, however the latter is 28MB in size. We could potentially just HEAD to see if it's html and/or take the first X kilobytes and do a simple regex text. Unfortunately we maybe can't be sure that all pypi registries support HEAD either. Here's PyPI's simple index HEAD'd:
Here's pytorch's:
|
Update: change of approach in #32024 |
Describe the proposed change(s).
Similar to how we query rubygems.org, we should use the simple API to get the list / check for changes and then secondarily see if the rich API exists for querying metadata.
Ie instead of falling back to simple as we do today, we should fall back to API instead, or enrich using it
Algorithm:
The text was updated successfully, but these errors were encountered: