chore: change the parse_all_requirements_files default value (#2389)
With this PR we are changing the defaults in the upcoming `0.39`
version, and
if all goes well, the release after that will be `1.0`.
Work towards #1361
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f3b2465..e896c54 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -34,6 +34,11 @@
* 3.11.10
* 3.12.7
* 3.13.0
+* (pypi) The naming scheme for the `bzlmod` spoke repositories have changed as
+ all of the given `requirements.txt` files are now parsed by `default`, to
+ temporarily restore the behavior, you can use
+ {bzl:obj}`pip.parse.extra_hub_aliases`, which will be removed or made noop in
+ the future.
[20241016]: https://github.com/indygreg/python-build-standalone/releases/tag/20241016
diff --git a/examples/bzlmod/MODULE.bazel.lock b/examples/bzlmod/MODULE.bazel.lock
index 92030a0..fc90b22 100644
--- a/examples/bzlmod/MODULE.bazel.lock
+++ b/examples/bzlmod/MODULE.bazel.lock
@@ -1393,7 +1393,7 @@
},
"@@rules_python~//python/extensions:pip.bzl%pip": {
"general": {
- "bzlTransitiveDigest": "0Qn7Q9FuTxYCxMKm2DsW7mbXYcxL71sS/l1baXvY1vA=",
+ "bzlTransitiveDigest": "V0b+JF59twRuc1t2aujwxPmb29degf+X0HjTZzFI2lo=",
"usagesDigest": "GGeczTmsfE4YHAy32dV/jfOfbYmpyu/QGe35drFuZ5E=",
"recordedFileInputs": {
"@@other_module~//requirements_lock_3_11.txt": "a7d0061366569043d5efcf80e34a32c732679367cb3c831c4cdc606adc36d314",
@@ -3244,7 +3244,9 @@
"whl_map": {
"absl_py": "[{\"config_setting\":\"//_config:is_python_3.11\",\"filename\":null,\"repo\":\"other_module_pip_311_absl_py\",\"target_platforms\":null,\"version\":\"3.11\"}]"
},
- "packages": [],
+ "packages": [
+ "absl_py"
+ ],
"groups": {}
}
},
@@ -6588,7 +6590,7 @@
},
"@@rules_python~//python/private/pypi:pip.bzl%pip_internal": {
"general": {
- "bzlTransitiveDigest": "SnuwsgZv1SGZz4jVPvwaEUwPTnea18fXIueD9vSR3sQ=",
+ "bzlTransitiveDigest": "9R8+CXzaV+FOv5NSr6mNrvF+hvnyouGXJh9E0JxC/7Q=",
"usagesDigest": "O2O2oBIbKEglN2K3FECsRxUKVS/zg/6a86F3MO1ZtmY=",
"recordedFileInputs": {
"@@rules_python~//tools/publish/requirements_linux.txt": "8175b4c8df50ae2f22d1706961884beeb54e7da27bd2447018314a175981997d",
diff --git a/python/private/pypi/extension.bzl b/python/private/pypi/extension.bzl
index 7b31d0d..ea628ce 100644
--- a/python/private/pypi/extension.bzl
+++ b/python/private/pypi/extension.bzl
@@ -786,7 +786,7 @@
default = True,
),
"parse_all_requirements_files": attr.bool(
- default = False,
+ default = True,
doc = """\
A temporary flag to enable users to make `pip` extension result always
the same independent of the whether transitive dependencies use {bzl:attr}`experimental_index_url` or not.