Skip to content

Commit 45e49eb

Browse files
committed
Merge branch 'main' into release/21.2.2
2 parents c4af3fd + 6a22806 commit 45e49eb

22 files changed

+398
-371
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
tests:
3131
# Anything that's touching testable stuff
3232
- ".github/workflows/ci.yml"
33-
- "tools/requirements/tests.txt"
3433
- "src/**"
3534
- "tests/**"
3635
if: github.event_name == 'pull_request'

.pre-commit-config.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ repos:
2626
^src/pip/_internal/index|
2727
^src/pip/_internal/models|
2828
^src/pip/_internal/operations|
29-
^src/pip/_internal/req|
3029
^src/pip/_internal/vcs|
3130
^src/pip/_internal/\w+\.py$|
3231
# Tests

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ sphinx:
77
python:
88
version: 3.8
99
install:
10-
- requirements: tools/requirements/docs.txt
10+
- requirements: docs/requirements.txt

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ recursive-include src/pip/_vendor *LICENSE*
1010
recursive-include src/pip/_vendor *COPYING*
1111

1212
include docs/docutils.conf
13+
include docs/requirements.txt
1314

1415
exclude .coveragerc
1516
exclude .mailmap

tools/requirements/docs.txt renamed to docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
sphinx == 3.2.1
1+
sphinx ~= 4.1.0
22
towncrier
33
furo
44
myst_parser

news/10128.removal.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve deprecation warning regarding the copying of source trees when installing from a local directory.

news/10165.trivial.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Add a ``feature_flag`` optional kwarg to the ``deprecated()`` function
2+
``pip._internal.utils.deprecation:deprecated``. Also formulate a corresponding canned
3+
message which suggests using the ``--use-feature={feature_flag}`` to test upcoming
4+
behavior.

news/10233.bugfix.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
New resolver: When a package is specified with extras in constraints, and with
2+
extras in non-constraint requirements, the resolver now correctly identifies the
3+
constraint's existence and avoids backtracking.

noxfile.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
"protected-pip": "tools/tox_pip.py",
2525
}
2626
REQUIREMENTS = {
27-
"docs": "tools/requirements/docs.txt",
28-
"tests": "tools/requirements/tests.txt",
29-
"common-wheels": "tools/requirements/tests-common_wheels.txt",
27+
"docs": "docs/requirements.txt",
28+
"tests": "tests/requirements.txt",
29+
"common-wheels": "tests/requirements-common_wheels.txt",
3030
}
3131

3232
AUTHORS_FILE = "AUTHORS.txt"

src/pip/_internal/operations/prepare.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -216,14 +216,16 @@ def unpack_url(
216216
# be removed.
217217
if link.is_existing_dir():
218218
deprecated(
219-
"A future pip version will change local packages to be built "
220-
"in-place without first copying to a temporary directory. "
221-
"We recommend you use --use-feature=in-tree-build to test "
222-
"your packages with this new behavior before it becomes the "
223-
"default.\n",
219+
reason=(
220+
"pip copied the source tree into a temporary directory "
221+
"before building it. This is changing so that packages "
222+
"are built in-place "
223+
'within the original source tree ("in-tree build").'
224+
),
224225
replacement=None,
225226
gone_in="21.3",
226-
issue=7555
227+
feature_flag="in-tree-build",
228+
issue=7555,
227229
)
228230
if os.path.isdir(location):
229231
rmtree(location)

0 commit comments

Comments
 (0)