blob: f96f803988e50ce2a2cadbe691b69c6d5432fd9b [file] [view]
(pypi) Requirement `--hash=<algo>:<digest>` pins and Simple API
`#<algo>=<digest>` URL fragments are now parsed for all hash algorithms
instead of silently dropping everything except `sha256`. Non-sha256 pins are
matched against the digests advertised by the index and downloads are verified
using the corresponding Subresource Integrity value, and the pins are kept in
the requirement line when falling back to `pip`
([#3972](https://github.com/bazel-contrib/rules_python/issues/3972)).
As part of this, `whl_library` repos created by `pip.parse` now always pass
the digest via the `integrity` attribute (SRI format) instead of `sha256`,
and the lock file facts store digests as `<algo>:<digest>` values (the facts
version was bumped, so cached index information is refreshed once).