Skip to content

Commit 09d993a

Browse files
committed
Update linkcheck_ignore setting for docs
The project management pages on PyPI fail the check today Also fix two of the links that are currently broken on the packaging guide.
1 parent ab0ed19 commit 09d993a

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

docs/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
Changelog
33
=========
44

5-
This project follows the `semantic versioning <https://packaging.python.org/guides/distributing-packages-using-setuptools/#semantic-versioning-preferred>`_
6-
and `pre-release versioning <https://packaging.python.org/guides/distributing-packages-using-setuptools/#pre-release-versioning>`_
5+
This project follows the `semantic versioning <https://packaging.python.org/en/latest/discussions/versioning/#semantic-versioning-vs-calendar-versioning>`_
6+
and `pre-release versioning <https://packaging.python.org/en/latest/discussions/versioning/>`_
77
schemes recommended by the Python Packaging Authority.
88

99
.. Do *NOT* add changelog entries here!

docs/conf.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,19 @@
265265
# How to display URL addresses: 'footnote', 'no', or 'inline'.
266266
# texinfo_show_urls = 'footnote'
267267

268+
# See https://www.sphinx-doc.org/en/master/usage/configuration.html#confval-linkcheck_ignore
268269
linkcheck_ignore = [
269-
"http://127.0.0.1*",
270+
r"https?://127\.0\.0\.1.*",
270271
# Avoid errors due to GitHub rate limit
271272
# https://github.com/sphinx-doc/sphinx/issues/7388
272-
"https://github.com/pypa/twine/issues/*",
273+
r"https://github\.com/pypa/twine/issues/.*",
273274
# Avoid errors from channels interpreted as anchors
274-
"https://web.libera.chat/#",
275+
r"https://web\.libera\.chat/#",
275276
# Avoid error from InvalidPyPIUploadURL docstring
276-
"https://upload.pypi.org/legacy",
277+
r"https://upload\.pypi\.org/legacy/?",
278+
# Avoid errors from 403/Login Redirects
279+
r"https://(test\.)?pypi\.org/manage/project/twine/collaboration/?",
280+
r"https://pypi\.org/manage/project/twine/collaboration/?",
277281
]
278282

279283
intersphinx_mapping = {

0 commit comments

Comments
 (0)