Skip to content

Commit 04bf322

Browse files
committed
Merge branch 'main' into release/21.2.4
2 parents d63e188 + 346bba7 commit 04bf322

File tree

117 files changed

+2034
-2034
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

117 files changed

+2034
-2034
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
tests:
3131
# Anything that's touching testable stuff
3232
- ".github/workflows/ci.yml"
33-
- "tools/requirements/tests.txt"
3433
- "src/**"
3534
- "tests/**"
3635
if: github.event_name == 'pull_request'
@@ -97,6 +96,7 @@ jobs:
9796
- 3.7
9897
- 3.8
9998
- 3.9
99+
- "3.10.0-alpha - 3.10"
100100

101101
steps:
102102
- uses: actions/checkout@v2
@@ -138,6 +138,7 @@ jobs:
138138
# - 3.7
139139
# - 3.8
140140
- 3.9
141+
- "3.10.0-alpha - 3.10"
141142
group: [1, 2]
142143

143144
steps:

.pre-commit-config.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ repos:
1717
exclude: .patch
1818

1919
- repo: https://github.com/psf/black
20-
rev: 20.8b1
20+
rev: 21.7b0
2121
hooks:
2222
- id: black
2323
exclude: |
2424
(?x)
25-
^src/pip/_internal/commands|
26-
^src/pip/_internal/index|
2725
^src/pip/_internal/models|
2826
^src/pip/_internal/operations|
29-
^src/pip/_internal/req|
3027
^src/pip/_internal/vcs|
3128
^src/pip/_internal/\w+\.py$|
3229
# Tests
@@ -54,12 +51,17 @@ repos:
5451
files: \.py$
5552

5653
- repo: https://github.com/pre-commit/mirrors-mypy
57-
rev: v0.800
54+
rev: v0.910
5855
hooks:
5956
- id: mypy
6057
exclude: tests
61-
args: ["--pretty"]
62-
additional_dependencies: ['nox==2020.12.31']
58+
args: ["--pretty", "--show-error-codes"]
59+
additional_dependencies: [
60+
'keyring==23.0.1',
61+
'nox==2020.12.31',
62+
'types-docutils==0.1.8',
63+
'types-six==0.1.9',
64+
]
6365

6466
- repo: https://github.com/pre-commit/pygrep-hooks
6567
rev: v1.7.0

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ sphinx:
77
python:
88
version: 3.8
99
install:
10-
- requirements: tools/requirements/docs.txt
10+
- requirements: docs/requirements.txt

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ recursive-include src/pip/_vendor *LICENSE*
1010
recursive-include src/pip/_vendor *COPYING*
1111

1212
include docs/docutils.conf
13+
include docs/requirements.txt
1314

1415
exclude .coveragerc
1516
exclude .mailmap

docs/html/cli/pip.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ verbosity log will be kept. This option is empty by default. This log appends
4747
to previous logging.
4848

4949
Like all pip options, ``--log`` can also be set as an environment variable, or
50-
placed into the pip config file. See the :ref:`Configuration` section.
50+
placed into the pip config file. See the :doc:`../topics/configuration` section.
5151

5252
.. _`exists-action`:
5353

docs/html/cli/pip_install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,14 +413,14 @@ overridden by using ``--cert`` option or by using ``PIP_CERT``,
413413
Caching
414414
-------
415415

416-
This is now covered in :doc:`../topics/caching`
416+
This is now covered in :doc:`../topics/caching`.
417417

418418
.. _`Wheel cache`:
419419

420420
Wheel Cache
421421
^^^^^^^^^^^
422422

423-
This is now covered in :doc:`../topics/caching`
423+
This is now covered in :doc:`../topics/caching`.
424424

425425
.. _`hash-checking mode`:
426426

docs/html/development/configuration.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/html/development/release-process.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,15 +116,17 @@ Release Process
116116
Creating a new release
117117
----------------------
118118

119-
#. Checkout the current pip ``main`` branch.
120119
#. Ensure you have the latest ``nox`` installed.
120+
#. Create a new ``release/YY.N`` branch off ``main`` and switch to it.
121121
#. Prepare for release using ``nox -s prepare-release -- YY.N``.
122122
This will update the relevant files and tag the correct commit.
123+
#. Submit the ``release/YY.N`` branch as a pull request and ensure CI passes.
124+
Merge the changes back into ``main`` and pull them back locally.
123125
#. Build the release artifacts using ``nox -s build-release -- YY.N``.
124126
This will checkout the tag, generate the distribution files to be
125127
uploaded and checkout the main branch again.
126128
#. Upload the release to PyPI using ``nox -s upload-release -- YY.N``.
127-
#. Push all of the changes including the tag.
129+
#. Push the tag created by ``prepare-release``.
128130
#. Regenerate the ``get-pip.py`` script in the `get-pip repository`_ (as
129131
documented there) and commit the results.
130132
#. Submit a Pull Request to `CPython`_ adding the new version of pip (and upgrading
@@ -168,7 +170,7 @@ order to create one of these the changes should already be merged into the
168170
#. Push the ``release/YY.N.Z+1`` branch to github and submit a PR for it against
169171
the ``main`` branch and wait for the tests to run.
170172
#. Once tests run, merge the ``release/YY.N.Z+1`` branch into ``main``, and
171-
follow the above release process starting with step 4.
173+
follow the above release process starting with step 5.
172174

173175
.. _`get-pip repository`: https://github.com/pypa/get-pip
174176
.. _`psf-salt repository`: https://github.com/python/psf-salt

docs/html/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ distro community, cloud provider support channels, etc).
6767
The current version of pip works on:
6868

6969
- Windows, Linux and MacOS.
70-
- CPython 3.6, 3.7, 3.8, 3.9 and latest PyPy3.
70+
- CPython 3.6, 3.7, 3.8, 3.9, 3.10 and latest PyPy3.
7171

7272
pip is tested to work on the latest patch version of the Python interpreter,
7373
for each of the minor versions listed above. Previous patch versions are

docs/pip_sphinxext.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,7 @@ def _format_option(
127127
line += f" <{metavar.lower()}>"
128128
# fix defaults
129129
assert option.help is not None
130-
# https://github.com/python/typeshed/pull/5080
131-
opt_help = option.help.replace("%default", str(option.default)) # type: ignore
130+
opt_help = option.help.replace("%default", str(option.default))
132131
# fix paths with sys.prefix
133132
opt_help = opt_help.replace(sys.prefix, "<sys.prefix>")
134133
return [bookmark_line, "", line, "", " " + opt_help, ""]

0 commit comments

Comments
 (0)