From 4d19c8bc52b5e93a76c5d9e14b53d99689dd2cde Mon Sep 17 00:00:00 2001 From: Anthonios Partheniou Date: Mon, 8 Jul 2024 14:54:59 -0400 Subject: [PATCH] use python 3.10 in docs session --- .kokoro/docker/docs/Dockerfile | 16 ++-------------- noxfile.py | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) diff --git a/.kokoro/docker/docs/Dockerfile b/.kokoro/docker/docs/Dockerfile index 48c7234fb..2bb4b66e7 100644 --- a/.kokoro/docker/docs/Dockerfile +++ b/.kokoro/docker/docs/Dockerfile @@ -59,18 +59,6 @@ RUN apt-get update \ && rm -rf /var/lib/apt/lists/* \ && rm -f /var/cache/apt/archives/*.deb -###################### Install python 3.9.19 - -# Download python 3.9.19 -RUN wget https://www.python.org/ftp/python/3.9.19/Python-3.9.19.tgz - -# Extract files -RUN tar -xvf Python-3.9.19.tgz - -# Install python 3.9.19 -RUN ./Python-3.9.19/configure --enable-optimizations -RUN make altinstall - ###################### Install python 3.10.14 for docfx session # Download python 3.10.14 @@ -83,9 +71,9 @@ RUN tar -xvf Python-3.10.14.tgz RUN ./Python-3.10.14/configure --enable-optimizations RUN make altinstall -###################### Use python 3.9 by default +###################### Use python 3.10 by default -RUN python3.9 -m venv /venv +RUN python3.10 -m venv /venv ENV PATH /venv/bin:$PATH ###################### Install pip diff --git a/noxfile.py b/noxfile.py index 1d9b72ca7..c6d0c11a3 100644 --- a/noxfile.py +++ b/noxfile.py @@ -341,7 +341,7 @@ def cover(session): session.run("coverage", "erase") -@nox.session(python="3.9") +@nox.session(python="3.10") def docs(session): """Build the docs for this library."""