chore: update docfx minimum Python version#1891
Conversation
|
@dandhlee I tried creating a similar PR in google-cloud-python but ran into errors. Please could you check the changes made in PR googleapis/google-cloud-python#11978? |
|
Updating sphinx to 4.5.0 fixes the error |
|
|
parthea
left a comment
There was a problem hiding this comment.
LGTM. Only one observation that the minimum version of sphinx should be updated in the docs build from 4.0.1 to 4.5.0
…synthtool into update_docfx_minimum_version
|
Done! Bumped monorepo to 4.5 - I suppose this is because the default is now Python3.10 for both |
This PR updates the post processor image to the latest one which is `gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo@sha256:2425930c45520a5acb255bd2876c078681f90e6e259dee2739e86d60a94a2a10`. The latest image includes the following fix to update the default python version to 3.10 in `noxfile.py`: googleapis/synthtool#1891 Run the following commands to obtain the latest sha256 ``` docker pull gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo:latest ``` ``` partheniou@partheniou-vm-3:~/git/google-cloud-python$ docker inspect --format='{{.RepoDigests}}' gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo:latest [gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo@sha256:2425930c45520a5acb255bd2876c078681f90e6e259dee2739e86d60a94a2a10] ```
This PR applies the changes from googleapis/synthtool#1891 to all packages in the monorepo.
Sphinx plugin now requires Python3.10 as the minimum version, which is run in
docfxsessions. This change is required to accommodate for the breaking change for upgrade in the version. See googleapis/sphinx-docfx-yaml#335.For split repos, only the
docfxsession is updated to run in 3.10, and will respect what the split repo maintainer chooses to use as the default version.For the monorepo, 3.10 will be used as the default version in general. Both split and monorepo uses Ubuntu22.04, which has Python3.10 as the built in Python version.
Unblocks major release for googleapis/sphinx-docfx-yaml#335.