Skip to content

Commit 21537a9

Browse files
Bump wheels and setuptools (#2628)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 88f90bc commit 21537a9

File tree

11 files changed

+28
-24
lines changed

11 files changed

+28
-24
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ repos:
1919
- id: pyproject-fmt
2020
additional_dependencies: ["tox>=4.8"]
2121
- repo: https://github.com/pre-commit/mirrors-prettier
22-
rev: "v3.0.1"
22+
rev: "v3.0.2"
2323
hooks:
2424
- id: prettier
2525
args: ["--print-width=120", "--prose-wrap=always"]
2626
- repo: https://github.com/astral-sh/ruff-pre-commit
27-
rev: "v0.0.284"
27+
rev: "v0.0.285"
2828
hooks:
2929
- id: ruff
3030
args: [--fix, --exit-non-zero-on-fix]

docs/changelog/2628.bugfix.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Upgrade embedded wheels:
2+
3+
* setuptools to ``68.1.2`` from ``68.1.0`` on ``3.8+``
4+
* wheel to ``0.41.2`` from ``0.41.1`` on ``3.7+``

src/virtualenv/create/creator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def non_write_able(dest, value):
121121
if trip == char:
122122
continue
123123
raise ValueError(trip) # noqa: TRY301
124-
except ValueError: # noqa: PERF203
124+
except ValueError:
125125
refused[char] = None
126126
if refused:
127127
bad = "".join(refused.keys())

src/virtualenv/run/plugin/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ def entry_points_for(cls, key):
2525

2626
@staticmethod
2727
def entry_points():
28-
if PluginLoader._ENTRY_POINTS is None: # noqa: SLF001
29-
PluginLoader._ENTRY_POINTS = entry_points() # noqa: SLF001
30-
return PluginLoader._ENTRY_POINTS # noqa: SLF001
28+
if PluginLoader._ENTRY_POINTS is None:
29+
PluginLoader._ENTRY_POINTS = entry_points()
30+
return PluginLoader._ENTRY_POINTS
3131

3232

3333
class ComponentBuilder(PluginLoader):

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,32 +9,32 @@
99
"3.7": {
1010
"pip": "pip-23.2.1-py3-none-any.whl",
1111
"setuptools": "setuptools-68.0.0-py3-none-any.whl",
12-
"wheel": "wheel-0.41.1-py3-none-any.whl",
12+
"wheel": "wheel-0.41.2-py3-none-any.whl",
1313
},
1414
"3.8": {
1515
"pip": "pip-23.2.1-py3-none-any.whl",
16-
"setuptools": "setuptools-68.0.0-py3-none-any.whl",
17-
"wheel": "wheel-0.41.1-py3-none-any.whl",
16+
"setuptools": "setuptools-68.1.2-py3-none-any.whl",
17+
"wheel": "wheel-0.41.2-py3-none-any.whl",
1818
},
1919
"3.9": {
2020
"pip": "pip-23.2.1-py3-none-any.whl",
21-
"setuptools": "setuptools-68.0.0-py3-none-any.whl",
22-
"wheel": "wheel-0.41.1-py3-none-any.whl",
21+
"setuptools": "setuptools-68.1.2-py3-none-any.whl",
22+
"wheel": "wheel-0.41.2-py3-none-any.whl",
2323
},
2424
"3.10": {
2525
"pip": "pip-23.2.1-py3-none-any.whl",
26-
"setuptools": "setuptools-68.0.0-py3-none-any.whl",
27-
"wheel": "wheel-0.41.1-py3-none-any.whl",
26+
"setuptools": "setuptools-68.1.2-py3-none-any.whl",
27+
"wheel": "wheel-0.41.2-py3-none-any.whl",
2828
},
2929
"3.11": {
3030
"pip": "pip-23.2.1-py3-none-any.whl",
31-
"setuptools": "setuptools-68.0.0-py3-none-any.whl",
32-
"wheel": "wheel-0.41.1-py3-none-any.whl",
31+
"setuptools": "setuptools-68.1.2-py3-none-any.whl",
32+
"wheel": "wheel-0.41.2-py3-none-any.whl",
3333
},
3434
"3.12": {
3535
"pip": "pip-23.2.1-py3-none-any.whl",
36-
"setuptools": "setuptools-68.0.0-py3-none-any.whl",
37-
"wheel": "wheel-0.41.1-py3-none-any.whl",
36+
"setuptools": "setuptools-68.1.2-py3-none-any.whl",
37+
"wheel": "wheel-0.41.2-py3-none-any.whl",
3838
},
3939
}
4040
MAX = "3.7"
Binary file not shown.

src/virtualenv/seed/wheels/periodic_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _pypi_get_distribution_info(distribution):
353353
with urlopen(url, context=context) as file_handler: # noqa: S310
354354
content = json.load(file_handler)
355355
break
356-
except URLError as exception: # noqa: PERF203
356+
except URLError as exception:
357357
logging.error("failed to access %s because %r", url, exception) # noqa: TRY400
358358
except Exception as exception: # noqa: BLE001
359359
logging.error("failed to access %s because %r", url, exception) # noqa: TRY400

src/virtualenv/util/path/_permission.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def make_exe(filename):
1414
mode |= level
1515
filename.chmod(mode)
1616
break
17-
except OSError: # noqa: PERF203
17+
except OSError:
1818
continue
1919

2020

tasks/make_zipapp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ def get_dependencies(whl, version):
162162
m for m in markers if isinstance(m, tuple) and len(m) == 3 and m[0].value == "extra" # noqa: PLR2004
163163
):
164164
continue
165-
py_versions = WheelDownloader._marker_at(markers, "python_version") # noqa: SLF001
165+
py_versions = WheelDownloader._marker_at(markers, "python_version")
166166
if py_versions:
167167
marker = Marker('python_version < "1"')
168168
marker._markers = [ # noqa: SLF001
@@ -173,13 +173,13 @@ def get_dependencies(whl, version):
173173
continue
174174
deleted = 0
175175
for ver in py_versions:
176-
deleted += WheelDownloader._del_marker_at(markers, ver - deleted) # noqa: SLF001
176+
deleted += WheelDownloader._del_marker_at(markers, ver - deleted)
177177
platforms = []
178-
platform_positions = WheelDownloader._marker_at(markers, "sys_platform") # noqa: SLF001
178+
platform_positions = WheelDownloader._marker_at(markers, "sys_platform")
179179
deleted = 0
180180
for pos in platform_positions: # can only be ore meaningfully
181181
platform = f"{markers[pos][1].value}{markers[pos][2].value}"
182-
deleted += WheelDownloader._del_marker_at(markers, pos - deleted) # noqa: SLF001
182+
deleted += WheelDownloader._del_marker_at(markers, pos - deleted)
183183
platforms.append(platform)
184184
if not platforms:
185185
platforms.append(None)

0 commit comments

Comments
 (0)