From f51d09993096fb5585a15fa66adf97b2d7f8fba4 Mon Sep 17 00:00:00 2001 From: anthony sottile Date: Thu, 9 Oct 2025 15:52:27 -0400 Subject: [PATCH] add python 3.14, remove python 3.9 --- Dockerfile | 5 ++--- bin/_info | 4 ++-- build/seed-virtualenv-cache | 3 ++- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8b76c7c..f0fc59c 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.9-dev \ - python3.9-distutils \ python3.10-dev \ python3.10-distutils \ python3.11-dev \ python3.11-distutils \ python3.13-dev \ + python3.14-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.9/virtualenv.pyz \ + && curl --silent --location --output /tmp/virtualenv.pyz https://bootstrap.pypa.io/virtualenv/3.10/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 055ad47..34d8e93 100755 --- a/bin/_info +++ b/bin/_info @@ -47,14 +47,14 @@ def main() -> int: print('others') print() with _console(): - _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('python3.14', '--version', '--version') + print() _call('pypy3', '--version', '--version') print() diff --git a/build/seed-virtualenv-cache b/build/seed-virtualenv-cache index adf7858..6ef426d 100755 --- a/build/seed-virtualenv-cache +++ b/build/seed-virtualenv-cache @@ -27,7 +27,8 @@ 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.9')) + cmd = ('python3', '-mvirtualenv', '/tmp/v', '-ppython3.10') + subprocess.check_call(cmd) shutil.rmtree('/tmp/v') return 0