Skip to content

Commit 44d5161

Browse files
authored
Merge branch 'main' into patch-1
2 parents c5efaf8 + 3b0215f commit 44d5161

File tree

198 files changed

+15215
-13643
lines changed

Some content is hidden

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

198 files changed

+15215
-13643
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.9.1
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',

AUTHORS.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ Anthony Sottile
5757
Antoine Musso
5858
Anton Ovchinnikov
5959
Anton Patrushev
60+
Anton Zelenov
6061
Antonio Alvarado Hernandez
6162
Antony Lee
6263
Antti Kaihola
@@ -225,6 +226,7 @@ Diego Ramirez
225226
DiegoCaraballo
226227
Dimitri Merejkowsky
227228
Dimitri Papadopoulos
229+
Dimitri Papadopoulos Orfanos
228230
Dirk Stolle
229231
Dmitry Gladkov
230232
Dmitry Volodin
@@ -690,6 +692,7 @@ snook92
690692
socketubs
691693
Sorin Sbarnea
692694
Srinivas Nyayapati
695+
Srishti Hegde
693696
Stavros Korokithakis
694697
Stefan Scherfke
695698
Stefano Rivera

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

NEWS.rst

Lines changed: 41 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,45 @@
99
1010
.. towncrier release notes start
1111
12+
24.3.1 (2024-10-27)
13+
===================
14+
15+
Bug Fixes
16+
---------
17+
18+
- Allow multiple nested inclusions of the same requirements file again. (`#13046 <https://github.com/pypa/pip/issues/13046>`_)
19+
20+
24.3 (2024-10-27)
21+
=================
22+
23+
Deprecations and Removals
24+
-------------------------
25+
26+
- Deprecate wheel filenames that are not compliant with :pep:`440`. (`#12918 <https://github.com/pypa/pip/issues/12918>`_)
27+
28+
Features
29+
--------
30+
31+
- Detect recursively referencing requirements files and help users identify
32+
the source. (`#12653 <https://github.com/pypa/pip/issues/12653>`_)
33+
- Support for :pep:`730` iOS wheels. (`#12961 <https://github.com/pypa/pip/issues/12961>`_)
34+
35+
Bug Fixes
36+
---------
37+
38+
- Display a better error message when an already installed package has an invalid requirement. (`#12953 <https://github.com/pypa/pip/issues/12953>`_)
39+
- Ignore ``PIP_TARGET`` and ``pip.conf`` ``global.target`` when preparing a build environment. (`#8438 <https://github.com/pypa/pip/issues/8438>`_)
40+
- Restore support for macOS 10.12 and older (via truststore). (`#12901 <https://github.com/pypa/pip/issues/12901>`_)
41+
- Allow installing pip in editable mode in a virtual environment on Windows. (`#12666 <https://github.com/pypa/pip/issues/12666>`_)
42+
43+
Vendored Libraries
44+
------------------
45+
46+
- Upgrade certifi to 2024.8.30
47+
- Upgrade distlib to 0.3.9
48+
- Upgrade truststore to 0.10.0
49+
- Upgrade urllib3 to 1.26.20
50+
1251
24.2 (2024-07-28)
1352
=================
1453

@@ -3311,7 +3350,7 @@ Improved Documentation
33113350
- Upgrade the bundled copy of requests to 2.6.0, fixing CVE-2015-2296.
33123351
- Display format of latest package when using ``pip list --outdated``. (#2475)
33133352
- Don't use pywin32 as ctypes should always be available on Windows, using
3314-
pywin32 prevented uninstallation of pywin32 on Windows. (:pull:`2467`)
3353+
pywin32 prevented uninstallation of pywin32 on Windows. (:pr:`2467`)
33153354
- Normalize the ``--wheel-dir`` option, expanding out constructs such as ``~``
33163355
when used. (#2441)
33173356
- Display a warning when an undefined extra has been requested. (#2142)
@@ -3602,7 +3641,7 @@ Improved Documentation
36023641
--no-download`` are now formally deprecated. See #906 for discussion on
36033642
possible alternatives, or lack thereof, in future releases.
36043643
- **DEPRECATION** ``pip zip`` and ``pip unzip`` are now formally deprecated.
3605-
- pip will now install Mac OSX platform wheels from PyPI. (:pull:`1278`)
3644+
- pip will now install Mac OSX platform wheels from PyPI. (:pr:`1278`)
36063645
- pip now generates the appropriate platform-specific console scripts when
36073646
installing wheels. (#1251)
36083647
- pip now confirms a wheel is supported when installing directly from a path or

0 commit comments

Comments
 (0)