Skip to content

Commit bc07fd4

Browse files
dandhleeparthea
andauthored
chore: update docfx minimum Python version (#1891)
* chore: update split repo files * chore: update monorepo script default version * Revert dropping 3.7 for unit tests as it's still supported * chore: update sphinx version to 4.5 for monorepo docs build --------- Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 1547f9a commit bc07fd4

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
- name: Setup Python
2929
uses: actions/setup-python@v4
3030
with:
31-
python-version: "3.9"
31+
python-version: "3.10"
3232
- name: Install nox
3333
run: |
3434
python -m pip install --upgrade setuptools pip wheel

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def docs(session):
370370
)
371371

372372

373-
@nox.session(python="3.9")
373+
@nox.session(python="3.10")
374374
def docfx(session):
375375
"""Build the docfx yaml files for this library."""
376376

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def docs(session):
359359

360360
session.install("-e", ".")
361361
session.install(
362-
"sphinx==4.0.1",
362+
"sphinx==4.5.0",
363363
"alabaster",
364364
"recommonmark",
365365
)

synthtool/languages/python_mono_repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def owlbot_main(package_dir: str) -> None:
225225
templated_files = gcp.CommonTemplates().py_mono_repo_library(
226226
relative_dir=f"packages/{package_name}",
227227
microgenerator=True,
228-
default_python_version="3.9",
228+
default_python_version="3.10",
229229
unit_test_python_versions=["3.7", "3.8", "3.9", "3.10", "3.11"],
230230
system_test_python_versions=["3.8", "3.9", "3.10", "3.11"],
231231
cov_level=100,

0 commit comments

Comments
 (0)