Skip to content

Commit 0351baa

Browse files
Danielkongerickeylevaignas
authored
fix(pypi): update pypi tooling deps to setuptools 82, packaging 26 (#3593)
This fixes the incompatibility between `packaging==24.0` and `setuptools==78.1.1` by just updating the requirements. This works as intended in my own repositories (where I had problems with requirement updates before), but I am not sure if there are still some issues like what caused the original revert of the `packaging` update. I checked and I don't see any absolute paths in the compiled lock files (as originally mentioned in #908), but I don't know if there are any other known issues. Another solution is to just pick compatible versions of `packaging` and `setuptools` some other way. This closes #3532. Note: I haven't updated the changelog, since I was not sure if this solution is even desirable? Or if you prefer to only change `packaging` and `setuptools` versions? --------- Co-authored-by: Richard Levasseur <richardlev@gmail.com> Co-authored-by: Ignas Anikevicius <240938+aignas@users.noreply.github.com>
1 parent bc64f06 commit 0351baa

File tree

4 files changed

+50
-28
lines changed

4 files changed

+50
-28
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,28 @@ BEGIN_UNRELEASED_TEMPLATE
4747
END_UNRELEASED_TEMPLATE
4848
-->
4949

50+
{#v0-0-0}
51+
## Unreleased
52+
53+
[0.0.0]: https://github.com/bazel-contrib/rules_python/releases/tag/0.0.0
54+
55+
{#v0-0-0-removed}
56+
### Removed
57+
* Nothing removed.
58+
59+
{#v0-0-0-changed}
60+
### Changed
61+
* (pypi) Update dependencies used for `compile_pip_requirements`, building
62+
sdists in the `whl_library` rule and fetching wheels using `pip`.
63+
64+
{#v0-0-0-fixed}
65+
### Fixed
66+
* Nothing fixed.
67+
68+
{#v0-0-0-added}
69+
### Added
70+
* Nothing added.
71+
5072
{#v1-9-0}
5173
## [1.9.0] - 2026-02-21
5274

examples/pip_parse/requirements_lock.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ certifi==2025.4.26 \
1616
--hash=sha256:0a816057ea3cdefcef70270d2c515e4506bbc954f417fa5ade2021213bb8f0c6 \
1717
--hash=sha256:30350364dfe371162649852c63336a15c70c6510c2ad5015b21c2345311805f3
1818
# via
19-
# -c ./constraints_certifi.txt
19+
# -c constraints_certifi.txt
2020
# requests
2121
chardet==4.0.0 \
2222
--hash=sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa \
@@ -236,7 +236,7 @@ urllib3==1.26.20 \
236236
--hash=sha256:0ed14ccfbf1c30a9072c7ca157e4319b70d65f623e91e7b32fadb2853431016e \
237237
--hash=sha256:40c2dc0c681e47eb8f90e7e27bf6ff7df2e677421fd46756da1161c39ca70d32
238238
# via
239-
# -c ./constraints_urllib3.txt
239+
# -c constraints_urllib3.txt
240240
# requests
241241
yamllint==1.28.0 \
242242
--hash=sha256:89bb5b5ac33b1ade059743cf227de73daa34d5e5a474b06a5e17fc16583b0cf2 \

examples/pip_parse/requirements_windows.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ certifi==2025.4.26 \
1616
--hash=sha256:0a816057ea3cdefcef70270d2c515e4506bbc954f417fa5ade2021213bb8f0c6 \
1717
--hash=sha256:30350364dfe371162649852c63336a15c70c6510c2ad5015b21c2345311805f3
1818
# via
19-
# -c ./constraints_certifi.txt
19+
# -c constraints_certifi.txt
2020
# requests
2121
chardet==4.0.0 \
2222
--hash=sha256:0d6f53a15db4120f2b08c94f11e7d93d2c911ee118b6b30a04ec3ee8310179fa \
@@ -240,7 +240,7 @@ urllib3==1.26.20 \
240240
--hash=sha256:0ed14ccfbf1c30a9072c7ca157e4319b70d65f623e91e7b32fadb2853431016e \
241241
--hash=sha256:40c2dc0c681e47eb8f90e7e27bf6ff7df2e677421fd46756da1161c39ca70d32
242242
# via
243-
# -c ./constraints_urllib3.txt
243+
# -c constraints_urllib3.txt
244244
# requests
245245
yamllint==1.28.0 \
246246
--hash=sha256:89bb5b5ac33b1ade059743cf227de73daa34d5e5a474b06a5e17fc16583b0cf2 \

python/private/pypi/deps.bzl

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ _RULE_DEPS = [
2121
# START: maintained by 'bazel run //tools/private/update_deps:update_pip_deps'
2222
(
2323
"pypi__build",
24-
"https://files.pythonhosted.org/packages/e2/03/f3c8ba0a6b6e30d7d18c40faab90807c9bb5e9a1e3b2fe2008af624a9c97/build-1.2.1-py3-none-any.whl",
25-
"75e10f767a433d9a86e50d83f418e83efc18ede923ee5ff7df93b6cb0306c5d4",
24+
"https://files.pythonhosted.org/packages/c5/0d/84a4380f930db0010168e0aa7b7a8fed9ba1835a8fbb1472bc6d0201d529/build-1.4.0-py3-none-any.whl",
25+
"6a07c1b8eb6f2b311b96fcbdbce5dab5fe637ffda0fd83c9cac622e927501596",
2626
),
2727
(
2828
"pypi__click",
29-
"https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl",
30-
"ae74fb96c20a0277a1d615f1e4d73c8414f5a98db8b799a7931d1582f3390c28",
29+
"https://files.pythonhosted.org/packages/98/78/01c019cdb5d6498122777c1a43056ebb3ebfeef2076d9d026bfe15583b2b/click-8.3.1-py3-none-any.whl",
30+
"981153a64e25f12d547d3426c367a4857371575ee7ad18df2a6183ab0545b2a6",
3131
),
3232
(
3333
"pypi__colorama",
@@ -36,8 +36,8 @@ _RULE_DEPS = [
3636
),
3737
(
3838
"pypi__importlib_metadata",
39-
"https://files.pythonhosted.org/packages/2d/0a/679461c511447ffaf176567d5c496d1de27cbe34a87df6677d7171b2fbd4/importlib_metadata-7.1.0-py3-none-any.whl",
40-
"30962b96c0c223483ed6cc7280e7f0199feb01a0e40cfae4d4450fc6fab1f570",
39+
"https://files.pythonhosted.org/packages/fa/5e/f8e9a1d23b9c20a551a8a02ea3637b4642e22c2626e3a13a9a29cdea99eb/importlib_metadata-8.7.1-py3-none-any.whl",
40+
"5a1f80bf1daa489495071efbb095d75a634cf28a8bc299581244063b53176151",
4141
),
4242
(
4343
"pypi__installer",
@@ -46,13 +46,13 @@ _RULE_DEPS = [
4646
),
4747
(
4848
"pypi__more_itertools",
49-
"https://files.pythonhosted.org/packages/50/e2/8e10e465ee3987bb7c9ab69efb91d867d93959095f4807db102d07995d94/more_itertools-10.2.0-py3-none-any.whl",
50-
"686b06abe565edfab151cb8fd385a05651e1fdf8f0a14191e4439283421f8684",
49+
"https://files.pythonhosted.org/packages/a4/8e/469e5a4a2f5855992e425f3cb33804cc07bf18d48f2db061aec61ce50270/more_itertools-10.8.0-py3-none-any.whl",
50+
"52d4362373dcf7c52546bc4af9a86ee7c4579df9a8dc268be0a2f949d376cc9b",
5151
),
5252
(
5353
"pypi__packaging",
54-
"https://files.pythonhosted.org/packages/49/df/1fceb2f8900f8639e278b056416d49134fb8d84c5942ffaa01ad34782422/packaging-24.0-py3-none-any.whl",
55-
"2ddfb553fdf02fb784c234c7ba6ccc288296ceabec964ad2eae3777778130bc5",
54+
"https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl",
55+
"b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529",
5656
),
5757
(
5858
"pypi__pep517",
@@ -61,38 +61,38 @@ _RULE_DEPS = [
6161
),
6262
(
6363
"pypi__pip",
64-
"https://files.pythonhosted.org/packages/8a/6a/19e9fe04fca059ccf770861c7d5721ab4c2aebc539889e97c7977528a53b/pip-24.0-py3-none-any.whl",
65-
"ba0d021a166865d2265246961bec0152ff124de910c5cc39f1156ce3fa7c69dc",
64+
"https://files.pythonhosted.org/packages/de/f0/c81e05b613866b76d2d1066490adf1a3dbc4ee9d9c839961c3fc8a6997af/pip-26.0.1-py3-none-any.whl",
65+
"bdb1b08f4274833d62c1aa29e20907365a2ceb950410df15fc9521bad440122b",
6666
),
6767
(
6868
"pypi__pip_tools",
69-
"https://files.pythonhosted.org/packages/0d/dc/38f4ce065e92c66f058ea7a368a9c5de4e702272b479c0992059f7693941/pip_tools-7.4.1-py3-none-any.whl",
70-
"4c690e5fbae2f21e87843e89c26191f0d9454f362d8acdbd695716493ec8b3a9",
69+
"https://files.pythonhosted.org/packages/6e/74/59906d876c6cb1137f42a137164f2fe683b06283cde84bfcf7f5dd43970b/pip_tools-7.5.3-py3-none-any.whl",
70+
"3aac0c473240ae90db7213c033401f345b05197293ccbdd2704e52e7a783785e",
7171
),
7272
(
7373
"pypi__pyproject_hooks",
74-
"https://files.pythonhosted.org/packages/ae/f3/431b9d5fe7d14af7a32340792ef43b8a714e7726f1d7b69cc4e8e7a3f1d7/pyproject_hooks-1.1.0-py3-none-any.whl",
75-
"7ceeefe9aec63a1064c18d939bdc3adf2d8aa1988a510afec15151578b232aa2",
74+
"https://files.pythonhosted.org/packages/bd/24/12818598c362d7f300f18e74db45963dbcb85150324092410c8b49405e42/pyproject_hooks-1.2.0-py3-none-any.whl",
75+
"9e5c6bfa8dcc30091c74b0cf803c81fdd29d94f01992a7707bc97babb1141913",
7676
),
7777
(
7878
"pypi__setuptools",
79-
"https://files.pythonhosted.org/packages/90/99/158ad0609729111163fc1f674a5a42f2605371a4cf036d0441070e2f7455/setuptools-78.1.1-py3-none-any.whl",
80-
"c3a9c4211ff4c309edb8b8c4f1cbfa7ae324c4ba9f91ff254e3d305b9fd54561",
79+
"https://files.pythonhosted.org/packages/e1/c6/76dc613121b793286a3f91621d7b75a2b493e0390ddca50f11993eadf192/setuptools-82.0.0-py3-none-any.whl",
80+
"70b18734b607bd1da571d097d236cfcfacaf01de45717d59e6e04b96877532e0",
8181
),
8282
(
8383
"pypi__tomli",
84-
"https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl",
85-
"939de3e7a6161af0c887ef91b7d41a53e7c5a1ca976325f429cb46ea9bc30ecc",
84+
"https://files.pythonhosted.org/packages/23/d1/136eb2cb77520a31e1f64cbae9d33ec6df0d78bdf4160398e86eec8a8754/tomli-2.4.0-py3-none-any.whl",
85+
"1f776e7d669ebceb01dee46484485f43a4048746235e683bcdffacdf1fb4785a",
8686
),
8787
(
8888
"pypi__wheel",
89-
"https://files.pythonhosted.org/packages/7d/cd/d7460c9a869b16c3dd4e1e403cce337df165368c71d6af229a74699622ce/wheel-0.43.0-py3-none-any.whl",
90-
"55c570405f142630c6b9f72fe09d9b67cf1477fcf543ae5b8dcb1f5b7377da81",
89+
"https://files.pythonhosted.org/packages/87/22/b76d483683216dde3d67cba61fb2444be8d5be289bf628c13fc0fd90e5f9/wheel-0.46.3-py3-none-any.whl",
90+
"4b399d56c9d9338230118d705d9737a2a468ccca63d5e813e2a4fc7815d8bc4d",
9191
),
9292
(
9393
"pypi__zipp",
94-
"https://files.pythonhosted.org/packages/da/55/a03fd7240714916507e1fcf7ae355bd9d9ed2e6db492595f1a67f61681be/zipp-3.18.2-py3-none-any.whl",
95-
"dce197b859eb796242b0622af1b8beb0a722d52aa2f57133ead08edd5bf5374e",
94+
"https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl",
95+
"071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e",
9696
),
9797
# END: maintained by 'bazel run //tools/private/update_deps:update_pip_deps'
9898
]

0 commit comments

Comments
 (0)