Skip to content

Commit 946f95d

Browse files
committed
Merge remote-tracking branch 'upstream/main' into rm-3.7
1 parent 38d2546 commit 946f95d

File tree

327 files changed

+9914
-4105
lines changed

Some content is hidden

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

327 files changed

+9914
-4105
lines changed

.git-blame-ignore-revs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
917b41d6d73535c090fc312668dff353cdaef906 # Blacken docs/html/conf.py
2+
ed383dd8afa8fe0250dcf9b8962927ada0e21c89 # Blacken docs/pip_sphinxext.py
3+
228405e62451abe8a66233573035007df4be575f # Blacken noxfile.py
4+
f477a9f490e978177b71c9dbaa5465c51ea21129 # Blacken setup.py
5+
e59ba23468390217479465019f8d78e724a23550 # Blacken src/pip/__main__.py
6+
d7013db084e9a52242354ee5754dc5d19ccf062e # Blacken src/pip/_internal/build_env.py
7+
30e9ffacae75378fc3e3df48f754dabad037edb9 # Blacken src/pip/_internal/cache.py
8+
8341d56b46776a805286218ac5fb0e7850fd9341 # Blacken src/pip/_internal/cli/autocompletion.py
9+
3d3461ed65208656358b3595e25d8c31c5c89470 # Blacken src/pip/_internal/cli/base_command.py
10+
d489b0f1b104bc936b0fb17e6c33633664ebdc0e # Blacken src/pip/_internal/cli/cmdoptions.py
11+
591fe4841aefe9befa0530f2a54f820c4ecbb392 # Blacken src/pip/_internal/cli/command_context.py
12+
9265b28ef7248ae1847a80384dbeeb8119c3e2f5 # Blacken src/pip/_internal/cli/main.py
13+
847a369364878c38d210c90beed2737bb6fb3a85 # Blacken src/pip/_internal/cli/main_parser.py
14+
ec97119067041ae58b963935ff5f0e5d9fead80c # Blacken src/pip/_internal/cli/parser.py
15+
6e3b8de22fa39fa3073599ecf9db61367f4b3b32 # Blacken src/pip/_internal/cli/progress_bars.py
16+
55405227de983c5bd5bf0858ea12dbe537d3e490 # Blacken src/pip/_internal/cli/req_command.py
17+
d5ca5c850cae9a0c64882a8f49d3a318699a7e2e # Blacken src/pip/_internal/cli/spinners.py
18+
9747cb48f8430a7a91b36fe697dd18dbddb319f0 # Blacken src/pip/_internal/commands/__init__.py
19+
1c09fd6f124df08ca36bed68085ad68e89bb1957 # Blacken src/pip/_internal/commands/cache.py
20+
315e93d7eb87cd476afcc4eaf0f01a7b56a5037f # Blacken src/pip/_internal/commands/check.py
21+
8ae3b96ed7d24fd24024ccce4840da0dcf635f26 # Blacken src/pip/_internal/commands/completion.py
22+
42ca4792202f26a293ee48380718743a80bbee37 # Blacken src/pip/_internal/commands/configuration.py
23+
790ad78fcd43d41a5bef9dca34a3c128d05eb02c # Blacken src/pip/_internal/commands/debug.py
24+
a6fcc8f045afe257ce321f4012fc8fcb4be01eb3 # Blacken src/pip/_internal/commands/download.py
25+
920e735dfc60109351fbe2f4c483c2f6ede9e52d # Blacken src/pip/_internal/commands/freeze.py
26+
053004e0fcf0851238b1064fbce13aea87b24e9c # Blacken src/pip/_internal/commands/hash.py
27+
a6b6ae487e52c2242045b64cb8962e0a992cfd76 # Blacken src/pip/_internal/commands/help.py
28+
2495cf95a6c7eb61ccf1f9f0e8b8d736af914e53 # Blacken __main__.py
29+
c7ee560e00b85f7486b452c14ff49e4737996eda # Blacken tools/
30+
8e2e1964a4f0a060f7299a96a911c9e116b2283d # Blacken src/pip/_internal/commands/
31+
1bc0eef05679e87f45540ab0a294667cb3c6a88e # Blacken src/pip/_internal/network/
32+
069b01932a7d64a81c708c6254cc93e1f89e6783 # Blacken src/pip/_internal/req
33+
1897784d59e0d5fcda2dd75fea54ddd8be3d502a # Blacken src/pip/_internal/index
34+
94999255d5ede440c37137d210666fdf64302e75 # Reformat the codebase, with black
35+
585037a80a1177f1fa92e159a7079855782e543e # Cleanup implicit string concatenation
36+
8a6f6ac19b80a6dc35900a47016c851d9fcd2ee2 # Blacken src/pip/_internal/resolution directory

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "monthly"

.github/workflows/ci.yml

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
runs-on: ubuntu-latest
2222

2323
steps:
24-
- uses: actions/checkout@v3
24+
- uses: actions/checkout@v4
2525
- uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.x"
@@ -57,7 +57,7 @@ jobs:
5757
runs-on: ubuntu-latest
5858

5959
steps:
60-
- uses: actions/checkout@v3
60+
- uses: actions/checkout@v4
6161
- uses: actions/setup-python@v4
6262
with:
6363
python-version: "3.x"
@@ -81,7 +81,7 @@ jobs:
8181
github.event_name != 'pull_request'
8282
8383
steps:
84-
- uses: actions/checkout@v3
84+
- uses: actions/checkout@v4
8585
- uses: actions/setup-python@v4
8686
with:
8787
python-version: "3.x"
@@ -91,7 +91,7 @@ jobs:
9191
- run: git diff --exit-code
9292

9393
tests-unix:
94-
name: tests / ${{ matrix.python }} / ${{ matrix.os }}
94+
name: tests / ${{ matrix.python.key || matrix.python }} / ${{ matrix.os }}
9595
runs-on: ${{ matrix.os }}-latest
9696

9797
needs: [packaging, determine-changes]
@@ -108,12 +108,14 @@ jobs:
108108
- "3.9"
109109
- "3.10"
110110
- "3.11"
111+
- "3.12"
111112

112113
steps:
113-
- uses: actions/checkout@v3
114+
- uses: actions/checkout@v4
114115
- uses: actions/setup-python@v4
115116
with:
116117
python-version: ${{ matrix.python }}
118+
allow-prereleases: true
117119

118120
- name: Install Ubuntu dependencies
119121
if: matrix.os == 'Ubuntu'
@@ -128,12 +130,12 @@ jobs:
128130
# Main check
129131
- name: Run unit tests
130132
run: >-
131-
nox -s test-${{ matrix.python }} --
133+
nox -s test-${{ matrix.python.key || matrix.python }} --
132134
-m unit
133135
--verbose --numprocesses auto --showlocals
134136
- name: Run integration tests
135137
run: >-
136-
nox -s test-${{ matrix.python }} --
138+
nox -s test-${{ matrix.python.key || matrix.python }} --
137139
-m integration
138140
--verbose --numprocesses auto --showlocals
139141
--durations=5
@@ -160,29 +162,18 @@ jobs:
160162
group: [1, 2]
161163

162164
steps:
163-
- uses: actions/checkout@v3
165+
- uses: actions/checkout@v4
164166
- uses: actions/setup-python@v4
165167
with:
166168
python-version: ${{ matrix.python }}
167169

168-
# We use a RAMDisk on Windows, since filesystem IO is a big slowdown
169-
# for our tests.
170-
- name: Create a RAMDisk
171-
run: ./tools/ci/New-RAMDisk.ps1 -Drive R -Size 1GB
172-
173-
- name: Setup RAMDisk permissions
174-
run: |
175-
mkdir R:\Temp
176-
$acl = Get-Acl "R:\Temp"
177-
$rule = New-Object System.Security.AccessControl.FileSystemAccessRule(
178-
"Everyone", "FullControl", "ContainerInherit,ObjectInherit", "None", "Allow"
179-
)
180-
$acl.AddAccessRule($rule)
181-
Set-Acl "R:\Temp" $acl
182-
170+
# We use C:\Temp (which is already available on the worker)
171+
# as a temporary directory for all of the tests because the
172+
# default value (under the user dir) is more deeply nested
173+
# and causes tests to fail with "path too long" errors.
183174
- run: pip install nox
184175
env:
185-
TEMP: "R:\\Temp"
176+
TEMP: "C:\\Temp"
186177

187178
# Main check
188179
- name: Run unit tests
@@ -192,7 +183,7 @@ jobs:
192183
-m unit
193184
--verbose --numprocesses auto --showlocals
194185
env:
195-
TEMP: "R:\\Temp"
186+
TEMP: "C:\\Temp"
196187

197188
- name: Run integration tests (group 1)
198189
if: matrix.group == 1
@@ -201,7 +192,7 @@ jobs:
201192
-m integration -k "not test_install"
202193
--verbose --numprocesses auto --showlocals
203194
env:
204-
TEMP: "R:\\Temp"
195+
TEMP: "C:\\Temp"
205196

206197
- name: Run integration tests (group 2)
207198
if: matrix.group == 2
@@ -210,7 +201,7 @@ jobs:
210201
-m integration -k "test_install"
211202
--verbose --numprocesses auto --showlocals
212203
env:
213-
TEMP: "R:\\Temp"
204+
TEMP: "C:\\Temp"
214205

215206
tests-zipapp:
216207
name: tests / zipapp
@@ -222,7 +213,7 @@ jobs:
222213
github.event_name != 'pull_request'
223214
224215
steps:
225-
- uses: actions/checkout@v3
216+
- uses: actions/checkout@v4
226217
- uses: actions/setup-python@v4
227218
with:
228219
python-version: "3.10"

.github/workflows/lock-threads.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
if: github.repository_owner == 'pypa'
1818
runs-on: ubuntu-latest
1919
steps:
20-
- uses: dessant/lock-threads@v3
20+
- uses: dessant/lock-threads@v4
2121
with:
2222
issue-inactive-days: '30'
2323
pr-inactive-days: '15'

.github/workflows/news-file.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-20.04
1111

1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414
with:
1515
# `towncrier check` runs `git diff --name-only origin/main...`, which
1616
# needs a non-shallow clone.

.github/workflows/no-response.yml

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

.github/workflows/update-rtd-redirects.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
runs-on: ubuntu-latest
1919
environment: RTD Deploys
2020
steps:
21-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
2222
- uses: actions/setup-python@v4
2323
with:
2424
python-version: "3.11"

.pre-commit-config.yaml

Lines changed: 13 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -17,42 +17,31 @@ repos:
1717
exclude: .patch
1818

1919
- repo: https://github.com/psf/black
20-
rev: 23.1.0
20+
rev: 23.7.0
2121
hooks:
2222
- id: black
2323

24-
- repo: https://github.com/PyCQA/flake8
25-
rev: 6.0.0
24+
- repo: https://github.com/astral-sh/ruff-pre-commit
25+
rev: v0.1.4
2626
hooks:
27-
- id: flake8
28-
additional_dependencies: [
29-
'flake8-bugbear',
30-
'flake8-logging-format',
31-
'flake8-implicit-str-concat',
32-
]
33-
exclude: tests/data
34-
35-
- repo: https://github.com/PyCQA/isort
36-
rev: 5.12.0
37-
hooks:
38-
- id: isort
39-
files: \.py$
27+
- id: ruff
28+
args: [--fix, --exit-non-zero-on-fix]
4029

4130
- repo: https://github.com/pre-commit/mirrors-mypy
42-
rev: v0.961
31+
rev: v1.6.1
4332
hooks:
4433
- id: mypy
4534
exclude: tests/data
4635
args: ["--pretty", "--show-error-codes"]
4736
additional_dependencies: [
48-
'keyring==23.0.1',
49-
'nox==2021.6.12',
37+
'keyring==24.2.0',
38+
'nox==2023.4.22',
5039
'pytest',
51-
'types-docutils==0.18.3',
52-
'types-setuptools==57.4.14',
53-
'types-freezegun==1.1.9',
54-
'types-six==1.16.15',
55-
'types-pyyaml==6.0.12.2',
40+
'types-docutils==0.20.0.3',
41+
'types-setuptools==68.2.0.0',
42+
'types-freezegun==1.1.10',
43+
'types-six==1.16.21.9',
44+
'types-pyyaml==6.0.12.12',
5645
]
5746

5847
- repo: https://github.com/pre-commit/pygrep-hooks

.readthedocs.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.11"
7+
38
sphinx:
4-
builder: htmldir
9+
builder: dirhtml
510
configuration: docs/html/conf.py
611

712
python:
8-
version: 3.8
913
install:
1014
- requirements: docs/requirements.txt

0 commit comments

Comments
 (0)