Skip to content

Commit fe6e29e

Browse files
authored
chore(python): use python 3.9 for docs build (#1713)
1 parent bc395ec commit fe6e29e

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

synthtool/gcp/templates/python_library/.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v4
1414
with:
15-
python-version: "{{ default_python_version }}"
15+
python-version: "3.9"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Python
2929
uses: actions/setup-python@v4
3030
with:
31-
python-version: "{{ default_python_version }}"
31+
python-version: "3.9"
3232
- name: Install nox
3333
run: |
3434
python -m pip install --upgrade setuptools pip wheel

synthtool/gcp/templates/python_library/.kokoro/docker/docs/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ RUN apt-get update \
6060
&& rm -rf /var/lib/apt/lists/* \
6161
&& rm -f /var/cache/apt/archives/*.deb
6262

63-
###################### Install python 3.8.11
63+
###################### Install python 3.9.13
6464

65-
# Download python 3.8.11
66-
RUN wget https://www.python.org/ftp/python/3.8.11/Python-3.8.11.tgz
65+
# Download python 3.9.13
66+
RUN wget https://www.python.org/ftp/python/3.9.13/Python-3.9.13.tgz
6767

6868
# Extract files
69-
RUN tar -xvf Python-3.8.11.tgz
69+
RUN tar -xvf Python-3.9.13.tgz
7070

71-
# Install python 3.8.11
72-
RUN ./Python-3.8.11/configure --enable-optimizations
71+
# Install python 3.9.11
72+
RUN ./Python-3.9.13/configure --enable-optimizations
7373
RUN make altinstall
7474

7575
###################### Install pip

synthtool/gcp/templates/python_library/noxfile.py.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def cover(session):
340340
session.run("coverage", "erase")
341341

342342

343-
@nox.session(python=DEFAULT_PYTHON_VERSION)
343+
@nox.session(python="3.9")
344344
def docs(session):
345345
"""Build the docs for this library."""
346346

0 commit comments

Comments
 (0)