Skip to content

Commit 46f129d

Browse files
authored
chore: upgrade python runtime (#18564)
* chore: upgrade python runtime Refs: https://docs.python.org/3/whatsnew/changelog.html#python-3-13-6-final Refs: https://docs.python.org/3/whatsnew/changelog.html#python-3-13-7-final Signed-off-by: Mike Fiedler <[email protected]> * Revert "Disallow negative tar offsets (#18428)" This reverts commit 954b6b3. --------- Signed-off-by: Mike Fiedler <[email protected]>
1 parent 48f082b commit 46f129d

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.13.5
1+
3.13.7

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Set variables reused in Dockerfile
2-
ARG PYTHON_IMAGE_VERSION=3.13.5-slim-bookworm
2+
ARG PYTHON_IMAGE_VERSION=3.13.7-slim-bookworm
33

44
# First things first, we build an image which is where we're going to compile
55
# our static assets with. We use this stage in development.

warehouse/forklift/legacy.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import hmac
55
import os.path
66
import re
7-
import sys
87
import tarfile
98
import tempfile
109
import zipfile
@@ -177,19 +176,6 @@
177176
_manylinux_arches = _jointlinux_arches | {"ppc64"}
178177
_musllinux_arches = _jointlinux_arches
179178

180-
# Remove this patch once 3.13.6 is available.
181-
if sys.version_info >= (3, 13, 6): # pragma: no cover
182-
raise RuntimeError("Patched _block() not needed in Python 3.13.6+")
183-
184-
185-
def _block_patched(self, count, _orig_block=tarfile.TarInfo._block):
186-
if count < 0: # pragma: no cover
187-
raise tarfile.InvalidHeaderError("invalid offset")
188-
return _orig_block(self, count)
189-
190-
191-
tarfile.TarInfo._block = _block_patched # type: ignore[attr-defined]
192-
193179

194180
# Actual checking code;
195181
def _valid_platform_tag(platform_tag):

0 commit comments

Comments
 (0)