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

Only run HTML-specific tasks in builds that output HTML #207

Merged
merged 1 commit into from
Oct 1, 2024

Conversation

AA-Turner
Copy link
Member

The no-HTML build failed with an error that switchers.js doesn't exist. In general, it doesn't make sense to run these tasks on the non-HTML builds.

Traceback (most recent call last):
  File "/srv/docsbuild/scripts/build_docs.py", line 644, in run
    self.build()
  File "/srv/docsbuild/scripts/build_docs.py", line 770, in build
    setup_switchers(
  File "/srv/docsbuild/scripts/build_docs.py", line 405, in setup_switchers
    switchers_path.write_text(rendered_template, encoding="UTF-8")
  File "/usr/lib/python3.10/pathlib.py", line 1154, in write_text
    with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
  File "/usr/lib/python3.10/pathlib.py", line 1119, in open
    return self._accessor.open(self, mode, buffering, encoding, errors,
FileNotFoundError: [Errno 2] No such file or directory: '/srv/docsbuild/cpython-no-html/Doc/build/html/_static/switchers.js'

@AA-Turner AA-Turner requested a review from hugovk October 1, 2024 07:33
@AA-Turner AA-Turner merged commit caa4a29 into python:main Oct 1, 2024
5 checks passed
@AA-Turner AA-Turner deleted the no-html-on-non-html branch October 1, 2024 09:14
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.

2 participants