Content-Length: 279913 | pFad | http://github.com/python/docsbuild-scripts/pull/307

69 Add options to only show certain build times by hugovk · Pull Request #307 · python/docsbuild-scripts · GitHub
Skip to content

Add options to only show certain build times #307

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

Merged
merged 2 commits into from
Aug 15, 2025

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Aug 15, 2025

By default, this scripts outputs the build times for all three types of builds. This can be long, for example 1,582 lines.

Sometimes I only want to check one block, for example, non-HTML builds in #306.

This PR allows you to select which type of build. By default, it shows all three.

Comment on lines +82 to +84
parser = argparse.ArgumentParser(
description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could mirror the build_docs.py args here?

    parser.add_argument(
        "--select-output",
        choices=("no-html", "only-html", "only-html-en"),
        help="Choose what outputs to build.",
    )

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like this? 45f56e5

@hugovk hugovk merged commit 5453926 into python:main Aug 15, 2025
10 checks passed
@hugovk hugovk deleted the check_times-argparse branch August 15, 2025 16:51
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








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/docsbuild-scripts/pull/307

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy