diff --git a/CHANGELOG.md b/CHANGELOG.md index eb4bcfa8da..fd5d455147 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,8 @@ Unreleased changes template. * Bazel 6 support is dropped and Bazel 7.4.1 is the minimum supported version, per our Bazel support matrix. Earlier versions are not tested by CI, so functionality cannot be guaranteed. +* ({bzl:obj}`pip.parse`) Only query SimpleAPI for packages that have + sha values in the `requirements.txt` file. {#v0-0-0-fixed} ### Fixed diff --git a/python/private/pypi/parse_requirements.bzl b/python/private/pypi/parse_requirements.bzl index d7ee285c0e..2bca8d8621 100644 --- a/python/private/pypi/parse_requirements.bzl +++ b/python/private/pypi/parse_requirements.bzl @@ -184,6 +184,7 @@ def parse_requirements( req.distribution: None for reqs in requirements_by_platform.values() for req in reqs.values() + if req.srcs.shas }), ) diff --git a/tests/pypi/extension/extension_tests.bzl b/tests/pypi/extension/extension_tests.bzl index 1caab23cea..5916a27e98 100644 --- a/tests/pypi/extension/extension_tests.bzl +++ b/tests/pypi/extension/extension_tests.bzl @@ -575,7 +575,7 @@ some_pkg==0.0.1 index_url = "pypi.org", index_url_overrides = {}, netrc = None, - sources = ["simple", "some_pkg"], + sources = ["simple"], ), "cache": {}, "parallel_download": False,