Skip to content

Commit 00ddca8

Browse files
committed
Merge remote-tracking branch 'upstream/main' into fix-docs-for-pip-list-outdated-with-freeze-format
2 parents fdc262f + f25f8ff commit 00ddca8

File tree

328 files changed

+7751
-4563
lines changed

Some content is hidden

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

328 files changed

+7751
-4563
lines changed

.github/chronographer.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
branch-protection-check-name: Changelog entry
2+
action-hints:
3+
check-title-prefix: "Chronographer: "
4+
external-docs-url: https://pip.pypa.io/dev/news-entry-failure
5+
inline-markdown: >
6+
See https://pip.pypa.io/dev/news-entry-failure for details.
7+
enforce-name:
8+
suffix: .rst
9+
labels:
10+
skip-changelog: skip news

.github/workflows/ci.yml

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

14-
env:
15-
# The "FORCE_COLOR" variable, when set to 1,
16-
# tells Nox to colorize itself.
17-
FORCE_COLOR: "1"
18-
1914
concurrency:
2015
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
2116
cancel-in-progress: true
@@ -26,8 +21,10 @@ jobs:
2621
runs-on: ubuntu-latest
2722

2823
steps:
29-
- uses: actions/checkout@v2
30-
- uses: actions/setup-python@v2
24+
- uses: actions/checkout@v3
25+
- uses: actions/setup-python@v4
26+
with:
27+
python-version: "3.x"
3128
- run: pip install nox
3229
- run: nox -s docs
3330

@@ -60,8 +57,10 @@ jobs:
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]"
@@ -82,8 +81,10 @@ jobs:
8281
github.event_name != 'pull_request'
8382
8483
steps:
85-
- uses: actions/checkout@v2
86-
- uses: actions/setup-python@v2
84+
- uses: actions/checkout@v3
85+
- uses: actions/setup-python@v4
86+
with:
87+
python-version: "3.x"
8788

8889
- run: pip install nox
8990
- run: nox -s vendoring
@@ -103,14 +104,15 @@ jobs:
103104
matrix:
104105
os: [Ubuntu, MacOS]
105106
python:
106-
- 3.7
107-
- 3.8
108-
- 3.9
107+
- "3.7"
108+
- "3.8"
109+
- "3.9"
109110
- "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,9 +122,9 @@ 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 nox 'virtualenv<20' 'setuptools != 60.6.0'
127+
- run: pip install nox
126128

127129
# Main check
128130
- name: Run unit tests
@@ -151,16 +153,17 @@ jobs:
151153
matrix:
152154
os: [Windows]
153155
python:
154-
- 3.7
156+
- "3.7"
155157
# Commented out, since Windows tests are expensively slow.
156-
# - 3.8
157-
# - 3.9
158-
- "3.10"
158+
# - "3.8"
159+
# - "3.9"
160+
# - "3.10"
161+
- "3.11"
159162
group: [1, 2]
160163

161164
steps:
162-
- uses: actions/checkout@v2
163-
- uses: actions/setup-python@v2
165+
- uses: actions/checkout@v3
166+
- uses: actions/setup-python@v4
164167
with:
165168
python-version: ${{ matrix.python }}
166169

@@ -179,7 +182,7 @@ jobs:
179182
$acl.AddAccessRule($rule)
180183
Set-Acl "R:\Temp" $acl
181184
182-
- run: pip install nox 'virtualenv<20'
185+
- run: pip install nox
183186
env:
184187
TEMP: "R:\\Temp"
185188

@@ -221,8 +224,8 @@ jobs:
221224
github.event_name != 'pull_request'
222225
223226
steps:
224-
- uses: actions/checkout@v2
225-
- uses: actions/setup-python@v2
227+
- uses: actions/checkout@v3
228+
- uses: actions/setup-python@v4
226229
with:
227230
python-version: "3.10"
228231

@@ -240,41 +243,6 @@ jobs:
240243
--durations=5
241244
--use-zipapp
242245
243-
# TODO: Remove this when we add Python 3.11 to CI.
244-
tests-importlib-metadata:
245-
name: tests for importlib.metadata backend
246-
runs-on: ubuntu-latest
247-
env:
248-
_PIP_USE_IMPORTLIB_METADATA: 'true'
249-
250-
needs: [packaging, determine-changes]
251-
if: >-
252-
needs.determine-changes.outputs.tests == 'true' ||
253-
github.event_name != 'pull_request'
254-
255-
steps:
256-
- uses: actions/checkout@v2
257-
- uses: actions/setup-python@v2
258-
with:
259-
python-version: '3.10'
260-
261-
- name: Install Ubuntu dependencies
262-
run: sudo apt-get install bzr
263-
264-
- run: pip install nox 'virtualenv<20'
265-
266-
- name: Run unit tests
267-
run: >-
268-
nox -s test-3.10 --
269-
-m unit
270-
--verbose --numprocesses auto --showlocals
271-
- name: Run integration tests
272-
run: >-
273-
nox -s test-3.10 --
274-
-m integration
275-
--verbose --numprocesses auto --showlocals
276-
--durations=5
277-
278246
check: # This job does nothing and is only used for the branch protection
279247
if: always()
280248

@@ -285,7 +253,6 @@ jobs:
285253
- tests-unix
286254
- tests-windows
287255
- tests-zipapp
288-
- tests-importlib-metadata
289256
- vendoring
290257

291258
runs-on: ubuntu-latest

.github/workflows/label-merge-conflicts.yml

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

.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@v2
13+
- uses: actions/checkout@v3
1414
with:
1515
# `towncrier check` runs `git diff --name-only origin/main...`, which
1616
# needs a non-shallow clone.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Update documentation redirects
2+
3+
on:
4+
push:
5+
branches: [main]
6+
schedule:
7+
- cron: 0 0 * * MON # Run every Monday at 00:00 UTC
8+
9+
env:
10+
FORCE_COLOR: "1"
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
update-rtd-redirects:
18+
runs-on: ubuntu-latest
19+
environment: RTD Deploys
20+
steps:
21+
- uses: actions/checkout@v3
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: "3.11"
25+
- run: pip install httpx pyyaml rich
26+
- run: python tools/update-rtd-redirects.py
27+
env:
28+
RTD_API_TOKEN: ${{ secrets.RTD_API_TOKEN }}

.pre-commit-config.yaml

Lines changed: 10 additions & 9 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.3.0
5+
rev: v4.4.0
66
hooks:
77
- id: check-builtin-literals
88
- id: check-added-large-files
@@ -17,23 +17,23 @@ repos:
1717
exclude: .patch
1818

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

2424
- repo: https://github.com/PyCQA/flake8
25-
rev: 4.0.1
25+
rev: 6.0.0
2626
hooks:
2727
- id: flake8
2828
additional_dependencies: [
29-
'flake8-bugbear==22.3.23',
30-
'flake8-logging-format==0.6.0',
31-
'flake8-implicit-str-concat==0.3.0',
29+
'flake8-bugbear',
30+
'flake8-logging-format',
31+
'flake8-implicit-str-concat',
3232
]
3333
exclude: tests/data
3434

3535
- repo: https://github.com/PyCQA/isort
36-
rev: 5.10.1
36+
rev: 5.12.0
3737
hooks:
3838
- id: isort
3939
files: \.py$
@@ -47,15 +47,16 @@ repos:
4747
additional_dependencies: [
4848
'keyring==23.0.1',
4949
'nox==2021.6.12',
50-
'pytest==7.1.1',
50+
'pytest',
5151
'types-docutils==0.18.3',
5252
'types-setuptools==57.4.14',
5353
'types-freezegun==1.1.9',
5454
'types-six==1.16.15',
55+
'types-pyyaml==6.0.12.2',
5556
]
5657

5758
- repo: https://github.com/pre-commit/pygrep-hooks
58-
rev: v1.9.0
59+
rev: v1.10.0
5960
hooks:
6061
- id: python-no-log-warn
6162
- id: python-no-eval

.readthedocs-custom-redirects.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is read by tools/update-rtd-redirects.py.
2+
# It is related to Read the Docs, but is not a file processed by the platform.
3+
4+
/dev/news-entry-failure: >-
5+
https://pip.pypa.io/en/latest/development/contributing/#news-entries
6+
/errors/resolution-impossible: >-
7+
https://pip.pypa.io/en/stable/topics/dependency-resolution/#dealing-with-dependency-conflicts
8+
/surveys/backtracking: >-
9+
https://forms.gle/LkZP95S4CfqBAU1N6
10+
/warnings/backtracking: >-
11+
https://pip.pypa.io/en/stable/topics/dependency-resolution/#possible-ways-to-reduce-backtracking
12+
/warnings/enable-long-paths: >-
13+
https://docs.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=cmd#enable-long-paths-in-windows-10-version-1607-and-later
14+
/warnings/venv: >-
15+
https://docs.python.org/3/tutorial/venv.html

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
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:
49
builder: htmldir
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)