Skip to content

Commit 472157d

Browse files
committed
Bump setuptools and pip
Signed-off-by: Bernát Gábor <[email protected]>
1 parent f7d440d commit 472157d

File tree

6 files changed

+28
-19
lines changed

6 files changed

+28
-19
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ repos:
2424
hooks:
2525
- id: pyproject-fmt
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.11.7"
27+
rev: "v0.11.8"
2828
hooks:
2929
- id: ruff-format
3030
- id: ruff

docs/changelog/u.bugfix.rst

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Upgrade embedded wheels:
2+
3+
* pip to ``25.1.1`` from ``25.1``
4+
* setuptools to ``80.3.1`` from ``78.1.0``

src/virtualenv/seed/wheels/embed/__init__.py

+16-15
Original file line numberDiff line numberDiff line change
@@ -12,38 +12,39 @@
1212
"wheel": "wheel-0.45.1-py3-none-any.whl",
1313
},
1414
"3.9": {
15-
"pip": "pip-25.1-py3-none-any.whl",
16-
"setuptools": "setuptools-78.1.0-py3-none-any.whl",
15+
"pip": "pip-25.1.1-py3-none-any.whl",
16+
"setuptools": "setuptools-80.3.1-py3-none-any.whl",
1717
},
1818
"3.10": {
19-
"pip": "pip-25.1-py3-none-any.whl",
20-
"setuptools": "setuptools-78.1.0-py3-none-any.whl",
19+
"pip": "pip-25.1.1-py3-none-any.whl",
20+
"setuptools": "setuptools-80.3.1-py3-none-any.whl",
2121
},
2222
"3.11": {
23-
"pip": "pip-25.1-py3-none-any.whl",
24-
"setuptools": "setuptools-78.1.0-py3-none-any.whl",
23+
"pip": "pip-25.1.1-py3-none-any.whl",
24+
"setuptools": "setuptools-80.3.1-py3-none-any.whl",
2525
},
2626
"3.12": {
27-
"pip": "pip-25.1-py3-none-any.whl",
28-
"setuptools": "setuptools-78.1.0-py3-none-any.whl",
27+
"pip": "pip-25.1.1-py3-none-any.whl",
28+
"setuptools": "setuptools-80.3.1-py3-none-any.whl",
2929
},
3030
"3.13": {
31-
"pip": "pip-25.1-py3-none-any.whl",
32-
"setuptools": "setuptools-78.1.0-py3-none-any.whl",
31+
"pip": "pip-25.1.1-py3-none-any.whl",
32+
"setuptools": "setuptools-80.3.1-py3-none-any.whl",
3333
},
3434
"3.14": {
35-
"pip": "pip-25.1-py3-none-any.whl",
36-
"setuptools": "setuptools-78.1.0-py3-none-any.whl",
35+
"pip": "pip-25.1.1-py3-none-any.whl",
36+
"setuptools": "setuptools-80.3.1-py3-none-any.whl",
3737
},
3838
}
3939
MAX = "3.8"
4040

4141

4242
def get_embed_wheel(distribution, for_py_version):
43-
wheelfile = (BUNDLE_SUPPORT.get(for_py_version, {}) or BUNDLE_SUPPORT[MAX]).get(distribution)
44-
if wheelfile is None:
43+
mapping = BUNDLE_SUPPORT.get(for_py_version, {}) or BUNDLE_SUPPORT[MAX]
44+
wheel_file = mapping.get(distribution)
45+
if wheel_file is None:
4546
return None
46-
path = BUNDLE_FOLDER / wheelfile
47+
path = BUNDLE_FOLDER / wheel_file
4748
return Wheel.from_path(path)
4849

4950

tasks/upgrade_wheels.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def download(ver, dest, package):
3838
)
3939

4040

41-
def run(): # noqa: C901
41+
def run(): # noqa: C901, PLR0912
4242
old_batch = {i.name for i in DEST.iterdir() if i.suffix == ".whl"}
4343
with TemporaryDirectory() as temp:
4444
temp_path = Path(temp)
@@ -50,6 +50,8 @@ def run(): # noqa: C901
5050
into.mkdir()
5151
folders[into] = support_ver
5252
for package in BUNDLED:
53+
if package == "wheel" and support >= (3, 9):
54+
continue
5355
thread = Thread(target=download, args=(support_ver, str(into), package))
5456
targets.append(thread)
5557
thread.start()
@@ -90,8 +92,10 @@ def run(): # noqa: C901
9092
if (folder / package).exists():
9193
support_table[version].append(package)
9294
support_table = {k: OrderedDict((i.split("-")[0], i) for i in v) for k, v in support_table.items()}
93-
bundle = ",".join(
94-
f"{v!r}: {{ {','.join(f'{p!r}: {f!r}' for p, f in line.items())} }}" for v, line in support_table.items()
95+
nl = "\n"
96+
bundle = "".join(
97+
f"\n {v!r}: {{{nl}{''.join(f' {p!r}: {f!r},{nl}' for p, f in line.items())} }},"
98+
for v, line in support_table.items()
9599
)
96100
msg = dedent(
97101
f"""

0 commit comments

Comments
 (0)