Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Infra: Define port for htmllive to avoid collisions #3792

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 4 commits into from
May 28, 2024

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented May 27, 2024

It's not unusual that I might run make htmllive for a pair of CPython docs, devguide and PEPs at the same time.

To avoid clashes, use a randomly-chosen "ephemeral port" between 49152–65535 for the local server for each of devguide and PEPs.

python -c "import random; print(random.randint(49152, 65535))"

Also use the more descriptive Sphinx long options (added in 7.3.0) for the Makefile.

See also python/devguide#1327.


📚 Documentation preview 📚: https://pep-previews--3792.org.readthedocs.build/

@hugovk hugovk added the infra Core infrastructure for building and rendering PEPs label May 27, 2024
@hugovk hugovk requested a review from AA-Turner as a code owner May 27, 2024 06:07
@hugovk hugovk changed the title Infra htmllive port Infra: Define port for htmllive to avoid collisions May 27, 2024
@hugovk
Copy link
Member Author

hugovk commented May 27, 2024

Updated to use an arbitrary port in the same range as the devguide, and add a comment to explain.

Re: python/devguide#1327 (comment)

@hugovk
Copy link
Member Author

hugovk commented May 27, 2024

#3796 will fix the 3.13-dev CI.

@hugovk hugovk enabled auto-merge (squash) May 28, 2024 05:59
@hugovk hugovk merged commit 50b459b into python:main May 28, 2024
5 of 6 checks passed
@hugovk hugovk deleted the infra-htmllive-port branch May 28, 2024 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra Core infrastructure for building and rendering PEPs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants