Skip to content

Commit 4e564b4

Browse files
committed
Finish PyPI link migration and remove unused settings
Address the review comment by removing three GitHub URL variables made obsolete by sphinx-issues. Convert five remaining ordinary PyPI project links, including links added or rewrapped on main, while retaining release-specific URLs and literal examples.
1 parent 357c26b commit 4e564b4

4 files changed

Lines changed: 7 additions & 12 deletions

File tree

‎source/conf.py‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,9 +202,6 @@
202202
github_repo_org = "pypa"
203203
github_repo_name = "packaging.python.org"
204204
github_repo_slug = f"{github_repo_org}/{github_repo_name}"
205-
github_repo_url = f"{github_url}/{github_repo_slug}"
206-
github_repo_issues_url = f"{github_url}/{github_repo_slug}/issues"
207-
github_sponsors_url = f"{github_url}/sponsors"
208205

209206
extlinks = {
210207
"gh": (f"{github_url}/%s", "GitHub: %s"),

‎source/key_projects.rst‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,7 @@ trove-classifiers
279279
=================
280280

281281
`Issues <https://github.com/pypa/trove-classifiers/issues>`__ | `GitHub
282-
<https://github.com/pypa/trove-classifiers>`__ | `PyPI
283-
<https://pypi.org/project/trove-classifiers/>`__
282+
<https://github.com/pypa/trove-classifiers>`__ | :pypi:`PyPI <trove-classifiers>`
284283

285284
trove-classifiers is the canonical source for `classifiers on PyPI
286285
<https://pypi.org/classifiers/>`_, which project maintainers use to
@@ -658,8 +657,8 @@ C/C++/Fortran/Cython extensions It uses
658657
:pypi:`cmake` (available on PyPI) to provide
659658
better support for additional compilers, build systems, cross compilation, and
660659
locating dependencies and their associated build requirements. To speed up and
661-
parallelize the build of large projects, the user can install `ninja
662-
<https://pypi.org/project/ninja>`__ (also available on PyPI).
660+
parallelize the build of large projects, the user can install :pypi:`ninja`
661+
(also available on PyPI).
663662

664663
.. _scikit-build-core:
665664

@@ -671,8 +670,8 @@ scikit-build-core
671670
:pypi:`PyPI <scikit-build-core>`
672671

673672
Scikit-build-core is a build backend for CPython C/C++/Fortran/Cython
674-
extensions. It enables users to write extensions with `cmake
675-
<https://pypi.org/project/cmake>`__ (available on PyPI) to provide better
673+
extensions. It enables users to write extensions with :pypi:`cmake`
674+
(available on PyPI) to provide better
676675
support for additional compilers, build systems, cross compilation, and
677676
locating dependencies and their associated build requirements. CMake/Ninja
678677
are automatically downloaded from PyPI if not available on the system.

‎source/specifications/dependency-specifiers.rst‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,7 @@ References
718718
.. [#pip] pip, the recommended installer for Python packages
719719
(http://pip.readthedocs.org/en/stable/)
720720
721-
.. [#parsley] The parsley PEG library.
722-
(https://pypi.org/project/Parsley/)
721+
.. [#parsley] The :pypi:`parsley PEG library <Parsley>`.
723722
724723
.. [#future_versions] Future Python versions might be problematic with the
725724
definition of Environment Marker Variable ``python_version``

‎source/specifications/pyproject-toml.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ Arbitrary tool configuration: the ``[tool]`` table
685685
The ``[tool]`` table is where any tool related to your Python
686686
project, not just build tools, can have users specify configuration
687687
data as long as they use a sub-table within ``[tool]``, e.g. the
688-
`flit <https://pypi.org/project/flit/>`_ tool would store its
688+
:pypi:`flit` tool would store its
689689
configuration in ``[tool.flit]``.
690690

691691
A mechanism is needed to allocate names within the ``tool.*``

0 commit comments

Comments
 (0)