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

bpo-47126: Update to canonical PEP URLs #32124

Merged
merged 4 commits into from Mar 30, 2022
Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Mar 26, 2022

With the recent implementation of PEP 676 the canonical URL for PEPs has changed from, for example:

https://www.python.org/dev/peps/pep-0008/

to:

https://peps.python.org/pep-0008/

Redirects are in place so the old links still work, but let's update the docs and docstrings to use the new canonical form. There's also a couple of places in code.

Also removed r'http://www.python.org/dev/peps/pep-\d+' from the docs linkcheck. There are no URLs of that form in main, they're all https, so this isn't needed.

Also updated RFC link generator to use https instead of http, because it was right next to the PEP link generator being changed. I can drop this change if necessary.

https://bugs.python.org/issue47126

@hugovk
Copy link
Member Author

@hugovk hugovk commented Mar 28, 2022

Updated to bump Sphinx to 4.5.0 which updates the :pep: role to use the new canonical URL form.

Copy link
Member

@pablogsal pablogsal left a comment

LGTM

@pablogsal pablogsal merged commit 6881ea9 into python:main Mar 30, 2022
12 checks passed
@pablogsal
Copy link
Member

@pablogsal pablogsal commented Mar 30, 2022

Great work @hugovk 🎉

@hugovk hugovk deleted the bpo-47126-pep-urls branch Mar 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants