← 返回首页
gh-145455: Show output of blurb & sphinx-build version commands by encukou · Pull Request #145457 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

gh-145455: Show output of blurb & sphinx-build version commands#145457

Merged
encukou merged 1 commit into
python:mainfrom
encukou:doc-make-show-stderr
Mar 3, 2026
Merged

gh-145455: Show output of blurb & sphinx-build version commands#145457
encukou merged 1 commit into
python:mainfrom
encukou:doc-make-show-stderr

Conversation

Copy link
Copy Markdown
Member

encukou commented Mar 3, 2026
edited by github-actions Bot
Loading

In gh-145455, an outdated dependency caused an import error that was not printed out (2>&1); the message instead said that the tools are missing.

Don't redirect stderr, to show warnings and failures.

Also, switch blurb to output a version on a single line (--version rather than help), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging.

📚 Documentation preview 📚: https://cpython-previews--145457.org.readthedocs.build/

In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Switch `blurb` to output a version on a single line (`--version` rather than `help`), and don't redirect stderr, to show warnings and failures. Also, don't redirect stdout. This results in two extra lines with version info, which get drowned in typical Sphinx output, and can be helpful when debugging.
Copy link
Copy Markdown
Member

hugovk left a comment

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality Hide comment

Thanks!

I think this is worth backporting to security branches as well.

This first came up in a security branch, and it's more likely for their old dependencies to break, and this fix will help debug.

encukou added 3.11 only security fixes 3.10 only security fixes 3.12 only security fixes labels Mar 3, 2026
Copy link
Copy Markdown
Member Author

encukou commented Mar 3, 2026

Yeah.
But I'd like to wait for slow CI before asking the bot to make backports there.

Hide details View details encukou merged commit f1de65b into python:main Mar 3, 2026
47 checks passed
Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

encukou deleted the doc-make-show-stderr branch March 3, 2026 10:47
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 3, 2026
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
Copy link
Copy Markdown

bedevere-app Bot commented Mar 3, 2026

GH-145461 is a backport of this pull request to the 3.14 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 3, 2026
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Mar 3, 2026
Copy link
Copy Markdown

bedevere-app Bot commented Mar 3, 2026

GH-145462 is a backport of this pull request to the 3.13 branch.

bedevere-app Bot removed the needs backport to 3.13 bugs and security fixes label Mar 3, 2026
encukou added a commit that referenced this pull request Mar 3, 2026
GH-145457) (GH-145462) In gh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
w-hsiung pushed a commit to w-hsiung/cpython that referenced this pull request Mar 3, 2026
…ommands (pythonGH-145457) (python#145461) pythongh-145455: Show output of blurb & sphinx-build version commands (pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
encukou added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes needs backport to 3.12 only security fixes labels Mar 4, 2026
Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10.
🐍🍒⛏🤖

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12.
🐍🍒⛏🤖

Copy link
Copy Markdown

Thanks @encukou for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

encukou removed 3.11 only security fixes 3.10 only security fixes 3.12 only security fixes labels Mar 4, 2026
Copy link
Copy Markdown

bedevere-app Bot commented Mar 4, 2026

GH-145489 is a backport of this pull request to the 3.10 branch.

bedevere-app Bot removed the needs backport to 3.10 only security fixes label Mar 4, 2026
Copy link
Copy Markdown

bedevere-app Bot commented Mar 4, 2026

GH-145490 is a backport of this pull request to the 3.12 branch.

bedevere-app Bot removed the needs backport to 3.12 only security fixes label Mar 4, 2026
Copy link
Copy Markdown

bedevere-app Bot commented Mar 4, 2026

GH-145491 is a backport of this pull request to the 3.11 branch.

bedevere-app Bot removed the needs backport to 3.11 only security fixes label Mar 4, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 4, 2026
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging. (cherry picked from commit f1de65b) Co-authored-by: Petr Viktorin <encukou@gmail.com>
hugovk pushed a commit that referenced this pull request Mar 5, 2026
hugovk pushed a commit that referenced this pull request Mar 5, 2026
hugovk pushed a commit that referenced this pull request Mar 5, 2026
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
…pythonGH-145457) In pythongh-145455, an outdated dependency caused an import error that was not printed out (`2>&1`); the message instead said that the tools are missing. Don't redirect stderr, to show warnings and failures. Also, switch `blurb` to output a version on a single line (`--version` rather than `help`), and, and don't redirect stdout either. This results in two version info lines being printed out. These get drowned in typical Sphinx output, and can be helpful when debugging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Footer

© 2026 GitHub, Inc.