You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(pypi/parse_requirements): get dists by version when no hash provied (#2695)
This pull request modifies the SimpleAPI HTML parsing to add a new
field where we can get the `sha256` values by package version. This
allows us to very easily fallback to all packages of a particular
version when using `experimental_index_url` if the hashes are not
specified.
The code deciding which packages to query the SimpleAPI for has been
also modified to only omit queries for packages that are included via
direct URL references.
If we fail to get the data from the SimpleAPI, we will fallback to
`pip` and try to install it via the legacy behaviour.
Fixes#2023
Work towards #260
Work towards #1357
Work towards #2363
---------
Co-authored-by: Ignas Anikevicius <[email protected]>
logger.warn(lambda: "requirement file has been generated without hashes, will use all hashes for the given version {} that could find on the index:\n {}".format(version, shas_to_use))
325
+
326
+
forsha256inshas_to_use:
322
327
# For now if the artifact is marked as yanked we just ignore it.
323
328
#
324
329
# See https://packaging.python.org/en/latest/specifications/simple-repository-api/#adding-yank-support-to-the-simple-api
0 commit comments