Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(python): fix docs and docfx builds #1916

Merged
merged 1 commit into from
Jan 15, 2024
Merged

build(python): fix docs and docfx builds #1916

merged 1 commit into from
Jan 15, 2024

Conversation

parthea
Copy link
Contributor

@parthea parthea commented Jan 13, 2024

This PR fixes the docs and docfx builds which recently started failing as described in googleapis/sphinx-docfx-yaml#344

As an example, see the failure in PR googleapis/google-cloud-python#12198 here.

This PR fixes the issue below

Running Sphinx v4.5.0

Traceback (most recent call last):
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinx/registry.py", line 438, in load_extension
    metadata = setup(app)
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinxcontrib/applehelp/__init__.py", line 230, in setup
    app.require_sphinx('5.0')
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinx/application.py", line 393, in require_sphinx
    raise VersionRequirementError(version)
sphinx.errors.VersionRequirementError: 5.0

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinx/cmd/build.py", line 272, in build_main
    app = Sphinx(args.sourcedir, args.confdir, args.outputdir,
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinx/application.py", line 219, in __init__
    self.setup_extension(extension)
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinx/application.py", line 380, in setup_extension
    self.registry.load_extension(self, extname)
  File "/home/runner/work/google-cloud-python/google-cloud-python/packages/google-cloud-config/.nox/docs/lib/python3.10/site-packages/sphinx/registry.py", line 441, in load_extension
    raise VersionRequirementError(
sphinx.errors.VersionRequirementError: The sphinxcontrib.applehelp extension used by this project needs at least Sphinx v5.0; it therefore cannot be built with this version.

@ohmayr ohmayr merged commit fac8444 into master Jan 15, 2024
12 checks passed
@ohmayr ohmayr deleted the fix-docs-build branch January 15, 2024 15:49
tswast added a commit to googleapis/python-bigquery-pandas that referenced this pull request Jan 16, 2024
cojenco added a commit to cojenco/python-storage that referenced this pull request Jan 16, 2024
cojenco added a commit to googleapis/python-storage that referenced this pull request Jan 16, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* apply googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Cathy Ouyang <cathyo@google.com>
tswast added a commit to googleapis/python-bigquery that referenced this pull request Jan 16, 2024
parthea added a commit to googleapis/google-cloud-python that referenced this pull request Jan 17, 2024
This PR updates the post processor image to the latest one which is
`gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo@sha256:1f42c1d6b70210540f55110662ae80e22b03dfb897782b09e546148599d3336c`.

The latest image fixes an issue with the docs and docfx builds. See
googleapis/synthtool#1916

Run the following commands to obtain the latest sha256
```
docker pull gcr.io/cloud-devrel-public-resources/owlbot-python-mono-repo:latest
```

```
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:1f42c1d6b70210540f55110662ae80e22b03dfb897782b09e546148599d3336c]
```
cojenco added a commit to googleapis/google-resumable-media-python that referenced this pull request Jan 17, 2024
cojenco added a commit to googleapis/google-resumable-media-python that referenced this pull request Jan 19, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* apply googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Cathy Ouyang <cathyo@google.com>
parthea added a commit to googleapis/python-org-policy that referenced this pull request Jan 22, 2024
parthea added a commit to googleapis/python-org-policy that referenced this pull request Jan 22, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/python-grpc-google-iam-v1 that referenced this pull request Jan 22, 2024
parthea added a commit to googleapis/python-grpc-google-iam-v1 that referenced this pull request Jan 22, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/python-spanner-django that referenced this pull request Jan 22, 2024
parthea added a commit to googleapis/python-access-context-manager that referenced this pull request Jan 22, 2024
parthea added a commit to googleapis/python-access-context-manager that referenced this pull request Jan 22, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/python-spanner-django that referenced this pull request Jan 22, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See googleapis/synthtool#1916

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/python-cloud-core that referenced this pull request Jan 22, 2024
parthea added a commit to googleapis/python-cloud-core that referenced this pull request Jan 24, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See googleapis/synthtool#1916

* See python/typeshed#11254

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/python-api-core that referenced this pull request Jan 25, 2024
parthea added a commit to googleapis/python-api-core that referenced this pull request Jan 25, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See python/typeshed#11254

* See googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/proto-plus-python that referenced this pull request Jan 25, 2024
parthea added a commit to googleapis/proto-plus-python that referenced this pull request Jan 25, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* See googleapis/synthtool#1916

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
parthea added a commit to googleapis/python-ndb that referenced this pull request Jan 25, 2024
parthea added a commit to googleapis/python-ndb that referenced this pull request Jan 25, 2024
rwhogg pushed a commit to googleapis/python-ndb that referenced this pull request Jan 26, 2024
* build(python): fix `docs` and `docfx` builds

Source-Link: googleapis/synthtool@fac8444
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:5ea6d0ab82c956b50962f91d94e206d3921537ae5fe1549ec5326381d8905cfa

* remove editable install to fix tests

* See googleapis/synthtool#1916

* See googleapis/synthtool#1916

* exclude .nox from coverage

* feat: Introduce compatibility with native namespace packages

* refactor unit test and coverage tests

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
@parthea parthea restored the fix-docs-build branch July 8, 2024 17:47
@parthea parthea deleted the fix-docs-build branch July 8, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants