From 7600c4f05c8e9a5a0c328112992ea2033546a3af Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:11:38 +0200 Subject: [PATCH 1/2] Update links for python/packaging.python.org --- source/conf.py | 14 +++++++------- source/contribute.rst | 8 ++++---- source/index.rst | 2 +- source/key_projects.rst | 4 ++-- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/source/conf.py b/source/conf.py index 24f7a5b7b..86dc66f00 100644 --- a/source/conf.py +++ b/source/conf.py @@ -76,8 +76,8 @@ html_theme = "furo" html_theme_options = { - "source_edit_link": "https://github.com/pypa/packaging.python.org/edit/main/source/{filename}", - "source_view_link": "https://github.com/pypa/packaging.python.org/blob/main/source/{filename}?plain=true", + "source_edit_link": "https://github.com/python/packaging.python.org/edit/main/source/{filename}", + "source_view_link": "https://github.com/python/packaging.python.org/blob/main/source/{filename}?plain=true", } html_favicon = "assets/py.png" @@ -151,10 +151,10 @@ r"https://pypi\.org/manage/.*", r"https://test\.pypi\.org/manage/.*", # Temporarily ignored. Ref: - # https://github.com/pypa/packaging.python.org/pull/1308#issuecomment-1775347690 + # https://github.com/python/packaging.python.org/pull/1308#issuecomment-1775347690 r"https://www\.breezy-vcs\.org/.*", # Ignore while StackOverflow is blocking GitHub CI. Ref: - # https://github.com/pypa/packaging.python.org/pull/1474 + # https://github.com/python/packaging.python.org/pull/1474 r"https://stackoverflow\.com/.*", # Cloudflare challenge blocks automated link checking. r"https://clickpy\.clickhouse\.com/$", @@ -169,7 +169,7 @@ r"https://docutils\.sourceforge\.io/.*", r"https://hosted\.weblate\.org/.*", # Temporarily ignored due to expired TLS cert. - # Ref: https://github.com/pypa/packaging.python.org/issues/1998 + # Ref: https://github.com/python/packaging.python.org/issues/1998 r"https://blog\.ganssle\.io/.*", # Temporarily ignored due to expired TLS cert. r"https://kivy.org/.*", @@ -184,7 +184,7 @@ r"https://github\.com/", r"https://docs\.github\.com/", # While PyPI has its botscraping defenses active, Sphinx can't resolve the anchors - # https://github.com/pypa/packaging.python.org/issues/1744 + # https://github.com/python/packaging.python.org/issues/1744 r"https://pypi\.org/", ] # Authenticate requests to github.com (when a token is available) to avoid @@ -199,7 +199,7 @@ # https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html#configuration github_url = "https://github.com" -github_repo_org = "pypa" +github_repo_org = "python" github_repo_name = "packaging.python.org" github_repo_slug = f"{github_repo_org}/{github_repo_name}" diff --git a/source/contribute.rst b/source/contribute.rst index 112643d98..ffd9f0c53 100644 --- a/source/contribute.rst +++ b/source/contribute.rst @@ -18,9 +18,9 @@ Most of the work on the |PyPUG| takes place on the `open issues`__ and `pull requests`__. If you're planning to write or edit the guide, please read the :ref:`style guide `. -.. __: https://github.com/pypa/packaging.python.org/ -.. __: https://github.com/pypa/packaging.python.org/issues -.. __: https://github.com/pypa/packaging.python.org/pulls +.. __: https://github.com/python/packaging.python.org +.. __: https://github.com/python/packaging.python.org/issues +.. __: https://github.com/python/packaging.python.org/pulls By contributing to the |PyPUG|, you're expected to follow the PSF's `Code of Conduct`__. @@ -86,7 +86,7 @@ please open an issue on `GitHub`_. .. _Weblate: https://weblate.org/ .. _packaging.python.org: https://hosted.weblate.org/projects/pypa/packaging-python-org/ -.. _GitHub: https://github.com/pypa/packaging.python.org/issues +.. _GitHub: https://github.com/python/packaging.python.org/issues .. _reStructuredText syntax: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html Adding a language diff --git a/source/index.rst b/source/index.rst index 08351016b..2f3cbfc15 100644 --- a/source/index.rst +++ b/source/index.rst @@ -28,7 +28,7 @@ tools. This guide is maintained on `GitHub`_ by the :doc:`Python Packaging Authority `. We happily accept :doc:`contributions and feedback `. 😊 -.. _GitHub: https://github.com/pypa/packaging.python.org +.. _GitHub: https://github.com/python/packaging.python.org Overview and Flow diff --git a/source/key_projects.rst b/source/key_projects.rst index f6e282f77..b6e54bc85 100644 --- a/source/key_projects.rst +++ b/source/key_projects.rst @@ -238,8 +238,8 @@ Python Packaging User Guide =========================== :doc:`Docs ` | -`Issues `__ | -`GitHub `__ +`Issues `__ | +`GitHub `__ This guide! From 354e7a063a8ddda7cf9b68af8f82b7b5bba6e485 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com> Date: Mon, 30 Nov 2026 22:12:55 +0200 Subject: [PATCH 2/2] Don't hardcode org name in workflow guards --- .github/workflows/cron.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/translation.yml | 2 +- .github/workflows/update-uv-build-version.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml index 8870bb70b..3302456e4 100644 --- a/.github/workflows/cron.yml +++ b/.github/workflows/cron.yml @@ -8,7 +8,7 @@ on: jobs: test: - if: github.repository_owner == 'pypa' # suppress noise in forks + if: github.event.repository.fork == false # suppress noise in forks uses: ./.github/workflows/test.yml ... diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75da24068..34d5754ff 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,7 +22,7 @@ permissions: {} jobs: build: name: ${{ matrix.noxenv }} - if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }} + if: ${{ github.event.repository.fork == false || github.event_name != 'schedule' }} runs-on: ubuntu-latest timeout-minutes: 20 continue-on-error: >- diff --git a/.github/workflows/translation.yml b/.github/workflows/translation.yml index 7cb2c02e1..011ac0b35 100644 --- a/.github/workflows/translation.yml +++ b/.github/workflows/translation.yml @@ -15,7 +15,7 @@ env: jobs: build: runs-on: ubuntu-latest - if: github.repository_owner == 'pypa' + if: github.event.repository.fork == false permissions: contents: write # to push to I18N_BRANCH diff --git a/.github/workflows/update-uv-build-version.yml b/.github/workflows/update-uv-build-version.yml index d204bd391..654af5e95 100644 --- a/.github/workflows/update-uv-build-version.yml +++ b/.github/workflows/update-uv-build-version.yml @@ -10,7 +10,7 @@ on: jobs: update-uv-build-version: name: Update uv_build version - if: github.repository_owner == 'pypa' # suppress noise in forks + if: github.event.repository.fork == false # suppress noise in forks runs-on: ubuntu-latest permissions: contents: write