Skip to content

Commit 809479a

Browse files
authored
Merge branch 'main' into docs/614-clarify-packaging-tutorial-scope
2 parents e98e4c3 + 80c8239 commit 809479a

12 files changed

Lines changed: 33 additions & 102 deletions

‎.github/workflows/cron.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88

99
jobs:
1010
test:
11-
if: github.repository_owner == 'pypa' # suppress noise in forks
11+
if: github.event.repository.fork == false # suppress noise in forks
1212
uses: ./.github/workflows/test.yml
1313

1414
...

‎.github/workflows/test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions: {}
2222
jobs:
2323
build:
2424
name: ${{ matrix.noxenv }}
25-
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
25+
if: ${{ github.event.repository.fork == false || github.event_name != 'schedule' }}
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 20
2828
continue-on-error: >-

‎.github/workflows/translation.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18-
if: github.repository_owner == 'pypa'
18+
if: github.event.repository.fork == false
1919

2020
permissions:
2121
contents: write # to push to I18N_BRANCH

‎.github/workflows/update-uv-build-version.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
update-uv-build-version:
1212
name: Update uv_build version
13-
if: github.repository_owner == 'pypa' # suppress noise in forks
13+
if: github.event.repository.fork == false # suppress noise in forks
1414
runs-on: ubuntu-latest
1515
permissions:
1616
contents: write

‎source/conf.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@
7676
html_theme = "furo"
7777

7878
html_theme_options = {
79-
"source_edit_link": "https://github.com/pypa/packaging.python.org/edit/main/source/{filename}",
80-
"source_view_link": "https://github.com/pypa/packaging.python.org/blob/main/source/{filename}?plain=true",
79+
"source_edit_link": "https://github.com/python/packaging.python.org/edit/main/source/{filename}",
80+
"source_view_link": "https://github.com/python/packaging.python.org/blob/main/source/{filename}?plain=true",
8181
}
8282

8383
html_favicon = "assets/py.png"
@@ -151,10 +151,10 @@
151151
r"https://pypi\.org/manage/.*",
152152
r"https://test\.pypi\.org/manage/.*",
153153
# Temporarily ignored. Ref:
154-
# https://github.com/pypa/packaging.python.org/pull/1308#issuecomment-1775347690
154+
# https://github.com/python/packaging.python.org/pull/1308#issuecomment-1775347690
155155
r"https://www\.breezy-vcs\.org/.*",
156156
# Ignore while StackOverflow is blocking GitHub CI. Ref:
157-
# https://github.com/pypa/packaging.python.org/pull/1474
157+
# https://github.com/python/packaging.python.org/pull/1474
158158
r"https://stackoverflow\.com/.*",
159159
# Cloudflare challenge blocks automated link checking.
160160
r"https://clickpy\.clickhouse\.com/$",
@@ -169,7 +169,7 @@
169169
r"https://docutils\.sourceforge\.io/.*",
170170
r"https://hosted\.weblate\.org/.*",
171171
# Temporarily ignored due to expired TLS cert.
172-
# Ref: https://github.com/pypa/packaging.python.org/issues/1998
172+
# Ref: https://github.com/python/packaging.python.org/issues/1998
173173
r"https://blog\.ganssle\.io/.*",
174174
# Temporarily ignored due to expired TLS cert.
175175
r"https://kivy.org/.*",
@@ -184,7 +184,7 @@
184184
r"https://github\.com/",
185185
r"https://docs\.github\.com/",
186186
# While PyPI has its botscraping defenses active, Sphinx can't resolve the anchors
187-
# https://github.com/pypa/packaging.python.org/issues/1744
187+
# https://github.com/python/packaging.python.org/issues/1744
188188
r"https://pypi\.org/",
189189
]
190190
# Authenticate requests to github.com (when a token is available) to avoid
@@ -199,7 +199,7 @@
199199
# https://www.sphinx-doc.org/en/master/usage/extensions/extlinks.html#configuration
200200

201201
github_url = "https://github.com"
202-
github_repo_org = "pypa"
202+
github_repo_org = "python"
203203
github_repo_name = "packaging.python.org"
204204
github_repo_slug = f"{github_repo_org}/{github_repo_name}"
205205

‎source/contribute.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ Most of the work on the |PyPUG| takes place on the
1818
`open issues`__ and `pull requests`__. If you're planning to write or edit
1919
the guide, please read the :ref:`style guide <contributing_style_guide>`.
2020

21-
.. __: https://github.com/pypa/packaging.python.org/
22-
.. __: https://github.com/pypa/packaging.python.org/issues
23-
.. __: https://github.com/pypa/packaging.python.org/pulls
21+
.. __: https://github.com/python/packaging.python.org
22+
.. __: https://github.com/python/packaging.python.org/issues
23+
.. __: https://github.com/python/packaging.python.org/pulls
2424

2525
By contributing to the |PyPUG|, you're expected to follow the PSF's
2626
`Code of Conduct`__.
@@ -86,7 +86,7 @@ please open an issue on `GitHub`_.
8686

8787
.. _Weblate: https://weblate.org/
8888
.. _packaging.python.org: https://hosted.weblate.org/projects/pypa/packaging-python-org/
89-
.. _GitHub: https://github.com/pypa/packaging.python.org/issues
89+
.. _GitHub: https://github.com/python/packaging.python.org/issues
9090
.. _reStructuredText syntax: https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html
9191

9292
Adding a language

‎source/guides/installing-stand-alone-command-line-tools.rst‎

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,9 @@ that is on your ``$PATH``. This allows each package to be upgraded or
2020
uninstalled without causing conflicts with other packages, and allows you to
2121
safely run the applications from anywhere.
2222

23-
.. note:: pipx only works with Python 3.6+.
24-
25-
pipx is installed with pip:
26-
27-
.. tab:: Unix/macOS
28-
29-
.. code-block:: bash
30-
31-
python3 -m pip install --user pipx
32-
python3 -m pipx ensurepath
33-
34-
.. tab:: Windows
35-
36-
.. code-block:: bat
37-
38-
py -m pip install --user pipx
39-
py -m pipx ensurepath
40-
41-
.. note::
42-
43-
``ensurepath`` ensures that the application directory is on your ``$PATH``.
44-
You may need to restart your terminal for this update to take effect.
45-
46-
Now you can install packages with ``pipx install`` and run the package's
47-
applications(s) from anywhere.
23+
After `installing pipx <https://pipx.pypa.io/stable/how-to/install-pipx.html>`_
24+
itself, you can then install packages with ``pipx install`` and run the
25+
package's applications from anywhere:
4826

4927
.. code-block:: console
5028

‎source/index.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ tools.
2828
This guide is maintained on `GitHub`_ by the :doc:`Python Packaging Authority <pypa:index>`. We
2929
happily accept :doc:`contributions and feedback <contribute>`. 😊
3030

31-
.. _GitHub: https://github.com/pypa/packaging.python.org
31+
.. _GitHub: https://github.com/python/packaging.python.org
3232

3333

3434
Overview and Flow

‎source/key_projects.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ Python Packaging User Guide
238238
===========================
239239

240240
:doc:`Docs <index>` |
241-
`Issues <https://github.com/pypa/packaging.python.org/issues>`__ |
242-
`GitHub <https://github.com/pypa/packaging.python.org>`__
241+
`Issues <https://github.com/python/packaging.python.org/issues>`__ |
242+
`GitHub <https://github.com/python/packaging.python.org>`__
243243

244244
This guide!
245245

‎source/specifications/inline-script-metadata.rst‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ metadata:
6767
In circumstances where there is a discrepancy between the text specification
6868
and the regular expression, the text specification takes precedence.
6969

70+
The regular expression intentionally matches greedily, using the last possible
71+
ending line within an uninterrupted sequence of valid embedded content lines.
72+
This permits a standalone ``///`` within embedded content, as in the C# example
73+
above; non-greedy matching would truncate that example. Consequently, apparent
74+
blocks separated only by valid embedded content lines, including ``#``, are
75+
matched as one block, with intervening delimiters included as content. An actual
76+
blank line separates blocks.
77+
7078
Tools MUST NOT read from metadata blocks with types that have not been
7179
standardized by this specification.
7280

0 commit comments

Comments
 (0)