Skip to content

Commit c406f51

Browse files
committed
Merge remote-tracking branch 'upstream/main' into trusted-publishing-guide
2 parents 73725c7 + 68115b5 commit c406f51

8 files changed

+48
-22
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Test
22

33
on:
4+
merge_group:
45
push:
56
pull_request:
67
schedule:
@@ -27,7 +28,7 @@ jobs:
2728
- name: Set up Python
2829
uses: actions/setup-python@v4
2930
with:
30-
python-version: 3.9
31+
python-version: "3.11"
3132
cache: 'pip'
3233
cache-dependency-path: 'requirements.txt'
3334

@@ -38,3 +39,21 @@ jobs:
3839
- name: Nox ${{ matrix.noxenv }}
3940
run: |
4041
python -m nox -s ${{ matrix.noxenv }}
42+
43+
44+
check:
45+
# This job does nothing and is only used for the branch protection
46+
# or multi-stage CI jobs, like making sure that all tests pass before
47+
# a publishing job is started.
48+
if: always()
49+
50+
needs:
51+
- build
52+
53+
runs-on: ubuntu-latest
54+
55+
steps:
56+
- name: Decide whether the needed jobs succeeded or failed
57+
uses: re-actors/alls-green@release/v1
58+
with:
59+
jobs: ${{ toJSON(needs) }}

source/contribute.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ document <discussions/install-requires-vs-requirements>`.
6363
Specifications
6464
--------------
6565

66-
Specifications are reference documention focused on comprehensively documenting
66+
Specifications are reference documentation focused on comprehensively documenting
6767
an agreed-upon interface for interoperability between packaging tools.
6868
:doc:`example specification-style document <specifications/core-metadata>`.
6969

@@ -131,9 +131,9 @@ need:
131131
132132
python -m pip install --user nox
133133
134-
2. Python 3.8. Our build scripts are usually tested with Python 3.8 only.
134+
2. Python 3.11. Our build scripts are usually tested with Python 3.11 only.
135135
See the :doc:`Hitchhiker's Guide to Python installation instructions <python-guide:starting/installation>`
136-
to install Python 3.8 on your operating system.
136+
to install Python 3.11 on your operating system.
137137

138138
To build the guide, run the following shell command in the project's root folder:
139139

source/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,9 @@ the contents of the ``dist/`` folder into PyPI unconditionally.
161161
Signing the distribution packages
162162
=================================
163163

164-
This additional job signs the distribution packages with the
165-
`sigstore/gh-action-sigstore-python GitHub Action`_ and then uploads
166-
them to GitHub Release.
164+
This additional job signs the distribution packages with `Sigstore`_,
165+
using the `sigstore/gh-action-sigstore-python GitHub Action`_,
166+
and then uploads them to GitHub Release.
167167

168168
.. literalinclude:: github-actions-ci-cd-sample/publish-to-test-pypi.yml
169169
:language: yaml
@@ -220,6 +220,7 @@ sure that your release pipeline remains healthy!
220220
https://github.com/actions/download-artifact
221221
.. _`upload-artifact`:
222222
https://github.com/actions/upload-artifact
223+
.. _Sigstore: https://www.sigstore.dev/
223224
.. _`sigstore/gh-action-sigstore-python GitHub Action`:
224225
https://github.com/marketplace/actions/gh-action-sigstore-python
225226
.. _Secrets:

source/key_projects.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ check for CVEs in `Pipfile` using `safety <https://pyup.io/safety>`_.
184184

185185
Pipenv aims to help users manage environments, dependencies, and
186186
imported packages on the command line. It also works well on Windows
187-
(which other tools often underserve), makes and checkes file hashes,
187+
(which other tools often underserve), makes and checks file hashes,
188188
to ensure compliance with hash-locked dependency specifiers, and eases
189189
uninstallation of packages and dependencies.
190190

@@ -558,7 +558,6 @@ resolution by locally caching metadata about dependencies.
558558
pypiserver
559559
==========
560560

561-
`Docs <https://github.com/pypiserver/pypiserver/blob/master/README.rst>`__ |
562561
`GitHub <https://github.com/pypiserver/pypiserver>`__ |
563562
`PyPI <https://pypi.org/project/pypiserver/>`__
564563

source/news.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ March 2018
118118
- Updated "installing scientific packages". (:pr:`455`)
119119
- Added :file:`long_description_content_type` to follow PEP 556. (:pr:`457`)
120120
- Clarified a long description classifier on pypi.org. (:pr:`456`)
121-
- Updated Core Metadata spec to follw PEP 556. (:pr:`412`)
121+
- Updated Core Metadata spec to follow PEP 556. (:pr:`412`)
122122

123123
February 2018
124124
-------------
@@ -214,7 +214,7 @@ April 2017
214214
- Added documentation explaining prominently how to install ``pip`` in ``/usr/local``. (:pr:`230`)
215215
- Updated development mode documentation to mention that order of local packages matters. (:pr:`208`)
216216
- Convert readthedocs link for their ``.org`` -> ``.io`` migration for hosted projects (:pr:`239`)
217-
- Swaped order of :file:`setup.py` arguments for the upload command, as order
217+
- Swapped order of :file:`setup.py` arguments for the upload command, as order
218218
is significant. (:pr:`260`)
219219
- Explained how to install from unsupported sources using a helper application. (:pr:`289`)
220220

source/specifications/recording-installed-packages.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ encouraged to start normalizing those fields.
5959

6060
.. note::
6161

62-
The ``.dist-info`` directory's name is formatted to unambigiously represent
62+
The ``.dist-info`` directory's name is formatted to unambiguously represent
6363
a distribution as a filesystem path. Tools presenting a distribution name
6464
to a user should avoid using the normalized name, and instead present the
6565
specified name (when needed prior to resolution to an installed package),
6666
or read the respective fields in Core Metadata, since values listed there
6767
are unescaped and accurately reflect the distribution. Libraries should
6868
provide API for such tools to consume, so tools can have access to the
69-
unnormalized name when displaying distrubution information.
69+
unnormalized name when displaying distribution information.
7070

7171
This ``.dist-info`` directory may contain the following files, described in
7272
detail below:
@@ -234,7 +234,7 @@ packages into a Python environment to ensure that other tools are not used to
234234
uninstall or otherwise modify that installed package, as doing so may cause
235235
compatibility problems with the wider environment.
236236

237-
To achieve this, affected tools should take the folllowing steps:
237+
To achieve this, affected tools should take the following steps:
238238

239239
* Rename or remove the ``RECORD`` file to prevent changes via other tools (e.g.
240240
appending a suffix to create a non-standard ``RECORD.tool`` file if the tool
@@ -251,4 +251,4 @@ ensuring both locations appear on the default Python import path).
251251

252252
In some circumstances, it may be desirable to block even installation of
253253
additional packages via Python-specific tools. For these cases refer to
254-
:ref:`externally-managed-environments`
254+
:ref:`externally-managed-environments`

source/specifications/simple-repository-api.rst

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,16 @@
55
Simple repository API
66
=====================
77

8-
The current interface for querying available package versions and
9-
retrieving packages from an index server is defined in :pep:`503`,
10-
with the addition of "yank" support (allowing a kind of file deletion)
11-
in :pep:`592`, specifying the interface version provided
12-
by an index server in :pep:`629`, and providing package metadata
13-
independently from a package in :pep:`658`.
8+
The interface for querying available package versions and
9+
retrieving packages from an index server comes in two forms:
10+
HTML and JSON.
11+
12+
The HTML format is defined in :pep:`503`, with the addition of "yank"
13+
support (allowing a kind of file deletion) in :pep:`592`, specifying
14+
the interface version provided by an index server in :pep:`629`, and
15+
providing package metadata independently from a package in
16+
:pep:`658` and revised in :pep:`714`.
17+
18+
The JSON format is defined in :pep:`691`, with additional fields
19+
added in :pep:`700`, and revisions around providing package metadata
20+
independently from a package in :pep:`714`.

source/specifications/virtual-environments.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Runtime detection of virtual environments
1919

2020
At runtime, virtual environments can be identified by virtue of ``sys.prefix``
2121
(the filesystem location of the running interpreter) having a different value
22-
from ``sys.base_prefix`` (the default filesytem location of the standard library
22+
from ``sys.base_prefix`` (the default filesystem location of the standard library
2323
directories).
2424

2525
:ref:`venv-explanation` in the Python standard library documentation for the

0 commit comments

Comments
 (0)