From 6718229cc5d8675197af8cb20fc998d8d789f16b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 4 Jun 2026 00:04:14 +0200 Subject: [PATCH 1/3] Fix 2 broken links in documentation Discovered in Fedora's RPM build with linkchecker: URL `meson-python' Name `meson-python documentation' Parent URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/extending/first-extension-module.html, line 347, col 8 Real URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/extending/meson-python Check time 0.000 seconds Result Error: URLError: URL `number' Name `Number Protocol' Parent URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/c-api/complex.html, line 336, col 5 Real URL file:///builddir/build/BUILD/python3-docs-3.15.0_b2-build/Python-3.15.0b2/Doc/build/html/c-api/number Check time 0.001 seconds Result Error: URLError: --- Doc/c-api/complex.rst | 2 +- Doc/extending/first-extension-module.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/c-api/complex.rst b/Doc/c-api/complex.rst index 629312bd771beb..10f96c7cb75e88 100644 --- a/Doc/c-api/complex.rst +++ b/Doc/c-api/complex.rst @@ -130,7 +130,7 @@ rather than dereferencing them through pointers. Please note, that these functions are :term:`soft deprecated` since Python 3.15. Avoid using this API in a new code to do complex arithmetic: either use -the `Number Protocol `_ API or use native complex types, like +the :ref:`Number Protocol ` API or use native complex types, like :c:expr:`double complex`. diff --git a/Doc/extending/first-extension-module.rst b/Doc/extending/first-extension-module.rst index 894f5bdbb8f09c..d5cc08b5ce1a4a 100644 --- a/Doc/extending/first-extension-module.rst +++ b/Doc/extending/first-extension-module.rst @@ -164,7 +164,7 @@ Then, create ``meson.build`` containing the following: .. note:: - See `meson-python documentation `_ for details on + See `meson-python documentation`_ for details on configuration. Now, build install the *project in the current directory* (``.``) via ``pip``: @@ -183,6 +183,7 @@ the compiler, which is often useful during development. (Or, if you prefer another tool that can build and install ``pyproject.toml``-based projects, use that.) +.. _meson-python documentation: meson-python_ .. _meson-python: https://mesonbuild.com/meson-python/ .. _virtual environment: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments From 1d620a6a934a4baef86d27b871f7d6851078156d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 4 Jun 2026 11:14:26 +0200 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Stan Ulbrych --- Doc/extending/first-extension-module.rst | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Doc/extending/first-extension-module.rst b/Doc/extending/first-extension-module.rst index d5cc08b5ce1a4a..e030ee5f2a3886 100644 --- a/Doc/extending/first-extension-module.rst +++ b/Doc/extending/first-extension-module.rst @@ -164,7 +164,7 @@ Then, create ``meson.build`` containing the following: .. note:: - See `meson-python documentation`_ for details on + See the :ref:`meson-python documentation ` for details on configuration. Now, build install the *project in the current directory* (``.``) via ``pip``: @@ -183,7 +183,6 @@ the compiler, which is often useful during development. (Or, if you prefer another tool that can build and install ``pyproject.toml``-based projects, use that.) -.. _meson-python documentation: meson-python_ .. _meson-python: https://mesonbuild.com/meson-python/ .. _virtual environment: https://packaging.python.org/en/latest/guides/installing-using-pip-and-virtual-environments/#create-and-use-virtual-environments From eaab38ab66fb370a93c5e8f891fde190ed1608af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 4 Jun 2026 11:21:10 +0200 Subject: [PATCH 3/3] fixup! Apply suggestions from code review --- Doc/extending/first-extension-module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/extending/first-extension-module.rst b/Doc/extending/first-extension-module.rst index e030ee5f2a3886..55a772e2aca24f 100644 --- a/Doc/extending/first-extension-module.rst +++ b/Doc/extending/first-extension-module.rst @@ -164,7 +164,7 @@ Then, create ``meson.build`` containing the following: .. note:: - See the :ref:`meson-python documentation ` for details on + See the `meson-python documentation `_ for details on configuration. Now, build install the *project in the current directory* (``.``) via ``pip``: