Skip to content

Commit

Permalink
use python 3.10 in docs session
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea authored Jul 8, 2024
1 parent 3bec6ad commit 4d19c8b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
16 changes: 2 additions & 14 deletions .kokoro/docker/docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""

Expand Down

0 comments on commit 4d19c8b

Please sign in to comment.