WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9a577ea

Browse files
authored
Merge branch 'main' into vendor-resolvelib-1.1.0
2 parents e8a2303 + 1452429 commit 9a577ea

File tree

148 files changed

+14481
-12989
lines changed

Some content is hidden

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

148 files changed

+14481
-12989
lines changed

.github/triage-new-issues.yml

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

.github/workflows/ci.yml

Lines changed: 34 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ concurrency:
2525
jobs:
2626
docs:
2727
name: docs
28-
runs-on: ubuntu-latest
28+
runs-on: ubuntu-22.04
2929

3030
steps:
3131
- uses: actions/checkout@v4
@@ -36,7 +36,7 @@ jobs:
3636
- run: nox -s docs
3737

3838
determine-changes:
39-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-22.04
4040
outputs:
4141
tests: ${{ steps.filter.outputs.tests }}
4242
vendoring: ${{ steps.filter.outputs.vendoring }}
@@ -64,7 +64,7 @@ jobs:
6464

6565
packaging:
6666
name: packaging
67-
runs-on: ubuntu-latest
67+
runs-on: ubuntu-22.04
6868

6969
steps:
7070
- uses: actions/checkout@v4
@@ -83,7 +83,7 @@ jobs:
8383

8484
vendoring:
8585
name: vendoring
86-
runs-on: ubuntu-latest
86+
runs-on: ubuntu-22.04
8787

8888
needs: [determine-changes]
8989
if: >-
@@ -112,7 +112,7 @@ jobs:
112112
strategy:
113113
fail-fast: true
114114
matrix:
115-
os: [ubuntu-latest, macos-13, macos-latest]
115+
os: [ubuntu-22.04, macos-13, macos-latest]
116116
python:
117117
- "3.8"
118118
- "3.9"
@@ -129,7 +129,7 @@ jobs:
129129
allow-prereleases: true
130130

131131
- name: Install Ubuntu dependencies
132-
if: matrix.os == 'ubuntu-latest'
132+
if: matrix.os == 'ubuntu-22.04'
133133
run: |
134134
sudo apt-get update
135135
sudo apt-get install bzr
@@ -149,17 +149,17 @@ jobs:
149149
- name: Run unit tests
150150
run: >-
151151
nox -s test-${{ matrix.python.key || matrix.python }} --
152-
-m unit
152+
tests/unit
153153
--verbose --numprocesses auto --showlocals
154154
- name: Run integration tests
155155
run: >-
156-
nox -s test-${{ matrix.python.key || matrix.python }} --
157-
-m integration
156+
nox -s test-${{ matrix.python.key || matrix.python }} --no-install --
157+
tests/functional
158158
--verbose --numprocesses auto --showlocals
159159
--durations=5
160160
161161
tests-windows:
162-
name: tests / ${{ matrix.python }} / ${{ matrix.os }} / ${{ matrix.group }}
162+
name: tests / ${{ matrix.python }} / ${{ matrix.os }} / ${{ matrix.group.number }}
163163
runs-on: ${{ matrix.os }}-latest
164164

165165
needs: [packaging, determine-changes]
@@ -180,54 +180,46 @@ jobs:
180180
# - "3.11"
181181
# - "3.12"
182182
- "3.13"
183-
group: [1, 2]
183+
group:
184+
- { number: 1, pytest-filter: "not test_install" }
185+
- { number: 2, pytest-filter: "test_install" }
184186

185187
steps:
188+
# The D: drive is significantly faster than the system C: drive.
189+
# https://github.com/actions/runner-images/issues/8755
190+
- name: Set TEMP to D:/Temp
191+
run: |
192+
mkdir "D:\\Temp"
193+
echo "TEMP=D:\\Temp" >> $env:GITHUB_ENV
194+
186195
- uses: actions/checkout@v4
187196
- uses: actions/setup-python@v5
188197
with:
189198
python-version: ${{ matrix.python }}
190199
allow-prereleases: true
191200

192-
# We use C:\Temp (which is already available on the worker)
193-
# as a temporary directory for all of the tests because the
194-
# default value (under the user dir) is more deeply nested
195-
# and causes tests to fail with "path too long" errors.
196201
- run: pip install nox
197-
env:
198-
TEMP: "C:\\Temp"
199202

200203
# Main check
201-
- name: Run unit tests
202-
if: matrix.group == 1
203-
run: >-
204-
nox -s test-${{ matrix.python }} --
205-
-m unit
206-
--verbose --numprocesses auto --showlocals
207-
env:
208-
TEMP: "C:\\Temp"
209-
210-
- name: Run integration tests (group 1)
211-
if: matrix.group == 1
204+
- name: Run unit tests (group 1)
205+
if: matrix.group.number == 1
212206
run: >-
213207
nox -s test-${{ matrix.python }} --
214-
-m integration -k "not test_install"
208+
tests/unit
215209
--verbose --numprocesses auto --showlocals
216-
env:
217-
TEMP: "C:\\Temp"
218210
219-
- name: Run integration tests (group 2)
220-
if: matrix.group == 2
211+
- name: Run integration tests (group ${{ matrix.group.number }})
221212
run: >-
222-
nox -s test-${{ matrix.python }} --
223-
-m integration -k "test_install"
213+
nox -s test-${{ matrix.python }} --no-install --
214+
tests/functional -k "${{ matrix.group.pytest-filter }}"
224215
--verbose --numprocesses auto --showlocals
225-
env:
226-
TEMP: "C:\\Temp"
227216
228217
tests-zipapp:
229218
name: tests / zipapp
230-
runs-on: ubuntu-latest
219+
# The macos-latest (M1) runners are the fastest available on GHA, even
220+
# beating out the ubuntu-latest runners. The zipapp tests are slow by
221+
# nature, and we don't care where they run, so we pick the fastest one.
222+
runs-on: macos-latest
231223

232224
needs: [packaging, determine-changes]
233225
if: >-
@@ -240,18 +232,16 @@ jobs:
240232
with:
241233
python-version: "3.10"
242234

243-
- name: Install Ubuntu dependencies
244-
run: |
245-
sudo apt-get update
246-
sudo apt-get install bzr
235+
- name: Install MacOS dependencies
236+
run: brew install breezy subversion
247237

248238
- run: pip install nox
249239

250240
# Main check
251241
- name: Run integration tests
252242
run: >-
253243
nox -s test-3.10 --
254-
-m integration
244+
tests/functional
255245
--verbose --numprocesses auto --showlocals
256246
--durations=5
257247
--use-zipapp
@@ -268,7 +258,7 @@ jobs:
268258
- tests-zipapp
269259
- vendoring
270260

271-
runs-on: ubuntu-latest
261+
runs-on: ubuntu-22.04
272262

273263
steps:
274264
- name: Decide whether the needed jobs succeeded or failed

.github/workflows/news-file.yml

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

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: 'src/pip/_vendor/'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.6.0
5+
rev: v5.0.0
66
hooks:
77
- id: check-builtin-literals
88
- id: check-added-large-files
@@ -17,25 +17,25 @@ repos:
1717
exclude: .patch
1818

1919
- repo: https://github.com/psf/black-pre-commit-mirror
20-
rev: 24.4.2
20+
rev: 24.10.0
2121
hooks:
2222
- id: black
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.5.6
25+
rev: v0.8.6
2626
hooks:
2727
- id: ruff
2828
args: [--fix, --exit-non-zero-on-fix]
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.12.1
31+
rev: v1.14.1
3232
hooks:
3333
- id: mypy
3434
exclude: tests/data
3535
args: ["--pretty", "--show-error-codes"]
3636
additional_dependencies: [
3737
'keyring==24.2.0',
38-
'nox==2023.4.22',
38+
'nox==2024.03.02',
3939
'pytest',
4040
'types-docutils==0.20.0.3',
4141
'types-setuptools==68.2.0.0',

MANIFEST.in

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,16 @@ include pyproject.toml
77

88
include src/pip/_vendor/README.rst
99
include src/pip/_vendor/vendor.txt
10-
include src/pip/_vendor/pyparsing/diagram/template.jinja2
1110
recursive-include src/pip/_vendor *LICENSE*
1211
recursive-include src/pip/_vendor *COPYING*
1312

14-
include docs/docutils.conf
1513
include docs/requirements.txt
1614

1715
exclude .git-blame-ignore-revs
18-
exclude .coveragerc
1916
exclude .mailmap
20-
exclude .appveyor.yml
2117
exclude .readthedocs.yml
2218
exclude .pre-commit-config.yaml
2319
exclude .readthedocs-custom-redirects.yml
24-
exclude tox.ini
2520
exclude noxfile.py
2621

2722
recursive-include src/pip/_vendor *.pem
@@ -34,6 +29,5 @@ recursive-exclude src/pip/_vendor *.pyi
3429
prune .github
3530
prune docs/build
3631
prune news
37-
prune tasks
3832
prune tests
3933
prune tools

docs/html/development/architecture/command-line-interface.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Its main addition consists of the following function:
154154
155155
.. py:method:: get_default_values()
156156
157-
Overrides the original method to allow updating the defaults ater the instantiation of the
157+
Overrides the original method to allow updating the defaults after the instantiation of the
158158
option parser.
159159

160160
It allows overriding the default options and arguments using the ``Configuration`` class

docs/html/development/architecture/overview.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Once it has those, it selects one file and downloads it.
134134
cannot….should not be …. ? I want only the Flask …. Why am I getting the
135135
whole list?
136136

137-
Answer: It's not every file, just files of Flask. No API for getting alllllll
137+
Answer: It's not every file, just files of Flask. No API for getting all
138138
files on PyPI. It’s for getting all files of Flask.)
139139

140140
.. _`tracking issue`: https://github.com/pypa/pip/issues/6831

docs/html/topics/authentication.md

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -163,25 +163,6 @@ from the subprocess in which they run Pip. You won't know whether the keyring
163163
backend is waiting the user input or not in such situations.
164164
```
165165

166-
pip is conservative and does not query keyring at all when `--no-input` is used
167-
because the keyring might require user interaction such as prompting the user
168-
on the console. You can force keyring usage by passing `--force-keyring` or one
169-
of the following:
170-
171-
```bash
172-
# possibly with --user, --global or --site
173-
$ pip config set global.force-keyring true
174-
# or
175-
$ export PIP_FORCE_KEYRING=1
176-
```
177-
178-
```{warning}
179-
Be careful when doing this since it could cause tools such as pipx and Pipenv
180-
to appear to hang. They show their own progress indicator while hiding output
181-
from the subprocess in which they run Pip. You won't know whether the keyring
182-
backend is waiting the user input or not in such situations.
183-
```
184-
185166
Note that `keyring` (the Python package) needs to be installed separately from
186167
pip. This can create a bootstrapping issue if you need the credentials stored in
187168
the keyring to download and install keyring.

docs/html/ux-research-design/research-results/improving-pips-documentation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ _Suggested content:_
512512
_Page purpose:_
513513

514514
- To onboard people who want to contribute to pip's docs
515-
- To share previous research and recommendataions related to pip's docs
515+
- To share previous research and recommendations related to pip's docs
516516

517517
_Suggested content:_
518518

docs/html/ux-research-design/research-results/personas.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Problem
44

5-
We want to develop personas for pip's user to facilate faster user-centered decision making for the pip development team.
5+
We want to develop personas for pip's user to facilitate faster user-centered decision making for the pip development team.
66

77
[Skip to recommendations](#recommendations)
88

0 commit comments

Comments
 (0)