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

gh-130160: use .. program:: directive for documenting http.server CLI #131010

Merged
merged 5 commits into from
Mar 15, 2025

Conversation

donBarbos
Copy link
Contributor

@donBarbos donBarbos commented Mar 9, 2025

I wasn't sure if I should move the --cgi flag to this section as it is already deprecated and will be removed in 3.15
It is currently located below CGIHTTPRequestHandler class description

main branch PR branch
Screenshot from 2025-03-09 18-41-16 Screenshot from 2025-03-09 18-55-30

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

@picnixz
Copy link
Member

picnixz commented Mar 9, 2025

Even if the flag is deprecated and planned for removal it's better to document as such. For the CLI rendering we can also just have python -m http.server [OPTIONS] and list the options afterwards with some "The allowed options are listed below." introductory sentence.

@picnixz picnixz added needs backport to 3.12 bug and security fixes needs backport to 3.13 bugs and security fixes labels Mar 9, 2025
@picnixz
Copy link
Member

picnixz commented Mar 9, 2025

Note that 3.13 is still a stable release and deprecated features are still legitimate to use

@donBarbos
Copy link
Contributor Author

Section was updated:

Screenshot from 2025-03-10 07-17-44

@picnixz
Copy link
Member

picnixz commented Mar 10, 2025

I'll review it at home

@picnixz picnixz self-requested a review March 13, 2025 17:08
Copy link
Member

@picnixz picnixz left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

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

Thanks!

@donBarbos
Copy link
Contributor Author

Thank you for review

@hugovk hugovk merged commit 7ae9c5d into python:main Mar 15, 2025
24 checks passed
@miss-islington-app
Copy link

Thanks @donBarbos for the PR, and @hugovk for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 15, 2025
…erver` CLI (pythonGH-131010)

(cherry picked from commit 7ae9c5d)

Co-authored-by: donBarbos <[email protected]>
@miss-islington-app
Copy link

Sorry, @donBarbos and @hugovk, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 7ae9c5dd25cccfc4e44fae6c6974ab9f32c5e985 3.12

@bedevere-app
Copy link

bedevere-app bot commented Mar 15, 2025

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

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 15, 2025
donBarbos added a commit to donBarbos/cpython that referenced this pull request Mar 15, 2025
@bedevere-app
Copy link

bedevere-app bot commented Mar 15, 2025

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

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Mar 15, 2025
hugovk pushed a commit that referenced this pull request Mar 15, 2025
…server` CLI (GH-131010) (#131293)

gh-130160: use `.. program::` directive for documenting `http.server` CLI (GH-131010)
(cherry picked from commit 7ae9c5d)

Co-authored-by: donBarbos <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants