Skip to content

Commit 01b1388

Browse files
authored
Merge branch 'main' into main
2 parents ae9c0fd + 4404877 commit 01b1388

File tree

735 files changed

+79363
-42624
lines changed

Some content is hidden

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

735 files changed

+79363
-42624
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,12 @@ body:
6060
label: Output
6161
description: >-
6262
Provide the output of the steps above, including the commands
63-
themselves and pip's output/traceback etc. If you're familiar with
64-
Markdown, this block will have triple backticks added automatically
65-
around it -- you don't have to add them.
63+
themselves and pip's output/traceback etc.
6664
67-
If you want to present output from multiple commands, please present
68-
that as a shell session (commands you run get prefixed with `$ `).
69-
Please also ensure that the "How to reproduce" section contains matching
70-
instructions for reproducing this.
71-
render: sh-session
65+
If you want to present output from multiple commands, please prefix
66+
the line containing the command with `$ `. Please also ensure that
67+
the "How to reproduce" section contains matching instructions for
68+
reproducing this.
7269
7370
- type: checkboxes
7471
attributes:

.github/ISSUE_TEMPLATE/~good-first-issue.yml

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

.github/chronographer.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
3+
action-hints:
4+
# check-title-prefix: chng # default: `{{ branch-protection-check-name }}: `
5+
external-docs-url: https://pip.pypa.io/how-to-changelog
6+
inline-markdown: >
7+
Check out https://pip.pypa.io/how-to-changelog
8+
9+
branch-protection-check-name: Timeline protection
10+
11+
enforce-name:
12+
# suffix: .md
13+
suffix: .rst
14+
15+
exclude:
16+
bots:
17+
- dependabot-preview
18+
- dependabot
19+
- patchback
20+
humans:
21+
- pyup-bot
22+
23+
labels:
24+
skip-changelog: skip news
25+
26+
paths: # relative modified file paths that do or don't need changelog mention
27+
exclude: []
28+
include: []
29+
30+
...

.github/no-response.yml

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

.github/workflows/ci.yml

Lines changed: 118 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ on:
1111
schedule:
1212
- cron: 0 0 * * MON # Run every Monday at 00:00 UTC
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
docs:
1620
name: docs
1721
runs-on: ubuntu-latest
1822

1923
steps:
20-
- uses: actions/checkout@v2
21-
- uses: actions/setup-python@v2
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.x"
2228
- run: pip install nox
2329
- run: nox -s docs
2430

@@ -37,31 +43,24 @@ jobs:
3743
# Anything that's touching "vendored code"
3844
- "src/pip/_vendor/**"
3945
- "pyproject.toml"
46+
- "noxfile.py"
4047
tests:
41-
# Anything that's touching testable stuff
48+
# Anything that's touching code-related stuff
4249
- ".github/workflows/ci.yml"
4350
- "src/**"
4451
- "tests/**"
52+
- "noxfile.py"
4553
if: github.event_name == 'pull_request'
4654

47-
pre-commit:
48-
name: pre-commit
49-
runs-on: ubuntu-latest
50-
51-
steps:
52-
- uses: actions/checkout@v2
53-
- uses: actions/setup-python@v2
54-
- uses: pre-commit/[email protected]
55-
with:
56-
extra_args: --all-files --hook-stage=manual
57-
5855
packaging:
5956
name: packaging
6057
runs-on: ubuntu-latest
6158

6259
steps:
63-
- uses: actions/checkout@v2
64-
- uses: actions/setup-python@v2
60+
- uses: actions/checkout@v3
61+
- uses: actions/setup-python@v4
62+
with:
63+
python-version: "3.x"
6564
- name: Set up git credentials
6665
run: |
6766
git config --global user.email "[email protected]"
@@ -70,6 +69,7 @@ jobs:
7069
- run: pip install nox
7170
- run: nox -s prepare-release -- 99.9
7271
- run: nox -s build-release -- 99.9
72+
- run: pipx run check-manifest
7373

7474
vendoring:
7575
name: vendoring
@@ -81,18 +81,20 @@ jobs:
8181
github.event_name != 'pull_request'
8282
8383
steps:
84-
- uses: actions/checkout@v2
85-
- uses: actions/setup-python@v2
84+
- uses: actions/checkout@v3
85+
- uses: actions/setup-python@v4
86+
with:
87+
python-version: "3.x"
8688

87-
- run: pip install vendoring
88-
- run: vendoring sync . --verbose
89+
- run: pip install nox
90+
- run: nox -s vendoring
8991
- run: git diff --exit-code
9092

9193
tests-unix:
9294
name: tests / ${{ matrix.python }} / ${{ matrix.os }}
9395
runs-on: ${{ matrix.os }}-latest
9496

95-
needs: [pre-commit, packaging, determine-changes]
97+
needs: [packaging, determine-changes]
9698
if: >-
9799
needs.determine-changes.outputs.tests == 'true' ||
98100
github.event_name != 'pull_request'
@@ -102,15 +104,15 @@ jobs:
102104
matrix:
103105
os: [Ubuntu, MacOS]
104106
python:
105-
- 3.6
106-
- 3.7
107-
- 3.8
108-
- 3.9
109-
- "3.10.0-alpha - 3.10"
107+
- "3.7"
108+
- "3.8"
109+
- "3.9"
110+
- "3.10"
111+
- "3.11"
110112

111113
steps:
112-
- uses: actions/checkout@v2
113-
- uses: actions/setup-python@v2
114+
- uses: actions/checkout@v3
115+
- uses: actions/setup-python@v4
114116
with:
115117
python-version: ${{ matrix.python }}
116118

@@ -120,19 +122,19 @@ jobs:
120122

121123
- name: Install MacOS dependencies
122124
if: matrix.os == 'MacOS'
123-
run: brew install bzr
125+
run: brew install breezy
124126

125-
- run: pip install tox 'virtualenv<20'
127+
- run: pip install nox
126128

127129
# Main check
128130
- name: Run unit tests
129131
run: >-
130-
tox -e py --
132+
nox -s test-${{ matrix.python }} --
131133
-m unit
132134
--verbose --numprocesses auto --showlocals
133135
- name: Run integration tests
134136
run: >-
135-
tox -e py --
137+
nox -s test-${{ matrix.python }} --
136138
-m integration
137139
--verbose --numprocesses auto --showlocals
138140
--durations=5
@@ -141,7 +143,7 @@ jobs:
141143
name: tests / ${{ matrix.python }} / ${{ matrix.os }} / ${{ matrix.group }}
142144
runs-on: ${{ matrix.os }}-latest
143145

144-
needs: [pre-commit, packaging, determine-changes]
146+
needs: [packaging, determine-changes]
145147
if: >-
146148
needs.determine-changes.outputs.tests == 'true' ||
147149
github.event_name != 'pull_request'
@@ -151,17 +153,17 @@ jobs:
151153
matrix:
152154
os: [Windows]
153155
python:
154-
- 3.6
156+
- "3.7"
155157
# Commented out, since Windows tests are expensively slow.
156-
# - 3.7
157-
# - 3.8
158-
- 3.9
159-
- "3.10.0-alpha - 3.10"
158+
# - "3.8"
159+
# - "3.9"
160+
# - "3.10"
161+
- "3.11"
160162
group: [1, 2]
161163

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

@@ -180,15 +182,15 @@ jobs:
180182
$acl.AddAccessRule($rule)
181183
Set-Acl "R:\Temp" $acl
182184
183-
- run: pip install tox 'virtualenv<20'
185+
- run: pip install nox
184186
env:
185187
TEMP: "R:\\Temp"
186188

187189
# Main check
188190
- name: Run unit tests
189191
if: matrix.group == 1
190192
run: >-
191-
tox -e py --
193+
nox -s test-${{ matrix.python }} --
192194
-m unit
193195
--verbose --numprocesses auto --showlocals
194196
env:
@@ -197,7 +199,7 @@ jobs:
197199
- name: Run integration tests (group 1)
198200
if: matrix.group == 1
199201
run: >-
200-
tox -e py --
202+
nox -s test-${{ matrix.python }} --
201203
-m integration -k "not test_install"
202204
--verbose --numprocesses auto --showlocals
203205
env:
@@ -206,8 +208,80 @@ jobs:
206208
- name: Run integration tests (group 2)
207209
if: matrix.group == 2
208210
run: >-
209-
tox -e py --
211+
nox -s test-${{ matrix.python }} --
210212
-m integration -k "test_install"
211213
--verbose --numprocesses auto --showlocals
212214
env:
213215
TEMP: "R:\\Temp"
216+
217+
tests-zipapp:
218+
name: tests / zipapp
219+
runs-on: ubuntu-latest
220+
221+
needs: [packaging, determine-changes]
222+
if: >-
223+
needs.determine-changes.outputs.tests == 'true' ||
224+
github.event_name != 'pull_request'
225+
226+
steps:
227+
- uses: actions/checkout@v3
228+
- uses: actions/setup-python@v4
229+
with:
230+
python-version: "3.10"
231+
232+
- name: Install Ubuntu dependencies
233+
run: sudo apt-get install bzr
234+
235+
- run: pip install nox 'virtualenv<20' 'setuptools != 60.6.0'
236+
237+
# Main check
238+
- name: Run integration tests
239+
run: >-
240+
nox -s test-3.10 --
241+
-m integration
242+
--verbose --numprocesses auto --showlocals
243+
--durations=5
244+
--use-zipapp
245+
246+
check: # This job does nothing and is only used for the branch protection
247+
if: always()
248+
249+
needs:
250+
- determine-changes
251+
- docs
252+
- packaging
253+
- tests-unix
254+
- tests-windows
255+
- tests-zipapp
256+
- vendoring
257+
258+
runs-on: ubuntu-latest
259+
260+
steps:
261+
- name: Decide whether the needed jobs succeeded or failed
262+
uses: re-actors/alls-green@release/v1
263+
with:
264+
allowed-skips: >-
265+
${{
266+
(
267+
needs.determine-changes.outputs.vendoring != 'true'
268+
&& github.event_name == 'pull_request'
269+
)
270+
&& 'vendoring'
271+
|| ''
272+
}}
273+
,
274+
${{
275+
(
276+
needs.determine-changes.outputs.tests != 'true'
277+
&& github.event_name == 'pull_request'
278+
)
279+
&& '
280+
tests-unix,
281+
tests-windows,
282+
tests-zipapp,
283+
tests-importlib-metadata,
284+
'
285+
|| ''
286+
}}
287+
jobs: ${{ toJSON(needs) }}

.github/workflows/lock-threads.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ concurrency:
1414

1515
jobs:
1616
action:
17+
if: github.repository_owner == 'pypa'
1718
runs-on: ubuntu-latest
1819
steps:
1920
- uses: dessant/lock-threads@v3

0 commit comments

Comments
 (0)