From 5f9fb1936151069c89cc926ebcd29427013adada Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Fri, 11 Oct 2024 18:35:52 -0400 Subject: [PATCH] add python 3.13 and remove python 3.8 --- Dockerfile | 5 ++--- bin/_info | 4 ++-- build/seed-virtualenv-cache | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 572bca1..7bf3b62 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,13 +47,12 @@ RUN : \ && apt-get update \ && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ pypy3-dev \ - python3.8-dev \ - python3.8-distutils \ python3.9-dev \ python3.9-distutils \ python3.11-dev \ python3.11-distutils \ python3.12-dev \ + python3.13-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* \ && : @@ -74,7 +73,7 @@ ENV \ XDG_DATA_HOME=/tmp/data COPY requirements.txt /tmp/requirements.txt RUN : \ - && curl --silent --location --output /tmp/virtualenv.pyz https://bootstrap.pypa.io/virtualenv/3.8/virtualenv.pyz \ + && curl --silent --location --output /tmp/virtualenv.pyz https://bootstrap.pypa.io/virtualenv/3.9/virtualenv.pyz \ && python3.12 /tmp/virtualenv.pyz /venv \ && pip install --requirement /tmp/requirements.txt \ && rm -rf "$XDG_DATA_HOME" /tmp/virtualenv.pyz \ diff --git a/bin/_info b/bin/_info index c4c2e00..055ad47 100755 --- a/bin/_info +++ b/bin/_info @@ -47,14 +47,14 @@ def main() -> int: print('others') print() with _console(): - _call('python3.8', '--version', '--version') - print() _call('python3.9', '--version', '--version') print() _call('python3.10', '--version', '--version') print() _call('python3.11', '--version', '--version') print() + _call('python3.13', '--version', '--version') + print() _call('pypy3', '--version', '--version') print() diff --git a/build/seed-virtualenv-cache b/build/seed-virtualenv-cache index 5060947..adf7858 100755 --- a/build/seed-virtualenv-cache +++ b/build/seed-virtualenv-cache @@ -27,7 +27,7 @@ def main() -> int: subprocess.check_call(('virtualenv', '/tmp/v', '-p', python)) shutil.rmtree('/tmp/v') # additionally seed the `python3 -m` executable - subprocess.check_call(('python3', '-mvirtualenv', '/tmp/v', '-ppython3.8')) + subprocess.check_call(('python3', '-mvirtualenv', '/tmp/v', '-ppython3.9')) shutil.rmtree('/tmp/v') return 0