Skip to content

Commit c48a7f7

Browse files
authored
Merge branch 'master' into remove_legacy_resolver
2 parents 42e64ae + baaf66f commit c48a7f7

File tree

177 files changed

+2045
-2640
lines changed

Some content is hidden

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

177 files changed

+2045
-2640
lines changed

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,27 +4,30 @@ about: Something is not working correctly.
44
title: ""
55
labels: "S: needs triage, type: bug"
66
issue_body: true # default: true, adds a classic WSYWIG textarea, if on
7-
inputs:
8-
- type: description
7+
body:
8+
- type: markdown
99
attributes:
1010
value: |
1111
1212
If you're reporting an issue for `--use-feature=2020-resolver`,
1313
use the "Dependency resolver failures / errors" template instead.
14-
- type: description
14+
- type: markdown
1515
attributes:
1616
value: "**Environment**"
1717
- type: input
1818
attributes:
1919
label: pip version
20+
validations:
2021
required: true
2122
- type: input
2223
attributes:
2324
label: Python version
25+
validations:
2426
required: true
2527
- type: input
2628
attributes:
2729
label: OS
30+
validations:
2831
required: true
2932
- type: textarea
3033
attributes:
@@ -72,7 +75,7 @@ inputs:
7275
Read the [PSF Code of Conduct][CoC] first.
7376
7477
[CoC]: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md
75-
choices:
78+
options:
7679
- label: I agree to follow the PSF Code of Conduct
7780
required: true
7881
...

.pre-commit-config.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,12 @@ repos:
2323
exclude: |
2424
(?x)
2525
^docs/|
26-
^src/pip/_internal/cli|
2726
^src/pip/_internal/commands|
28-
^src/pip/_internal/distributions|
2927
^src/pip/_internal/index|
3028
^src/pip/_internal/models|
3129
^src/pip/_internal/network|
3230
^src/pip/_internal/operations|
3331
^src/pip/_internal/req|
34-
^src/pip/_internal/resolution|
35-
^src/pip/_internal/utils|
3632
^src/pip/_internal/vcs|
3733
^src/pip/_internal/\w+\.py$|
3834
^src/pip/__main__.py$|
@@ -47,7 +43,6 @@ repos:
4743
^tests/functional/test_install|
4844
# Files in the root of the repository
4945
^setup.py|
50-
^noxfile.py|
5146
# A blank ignore, to avoid merge conflicts later.
5247
^$
5348
@@ -74,6 +69,7 @@ repos:
7469
- id: mypy
7570
exclude: docs|tests
7671
args: ["--pretty"]
72+
additional_dependencies: ['nox==2020.12.31']
7773

7874
- repo: https://github.com/pre-commit/pygrep-hooks
7975
rev: v1.7.0

docs/docs_feedback_sphinxext.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,9 @@
33
from __future__ import annotations
44

55
from itertools import chain
6-
from typing import TYPE_CHECKING
7-
8-
if TYPE_CHECKING:
9-
from typing import Dict, List, Union
10-
11-
from sphinx.application import Sphinx
6+
from typing import Dict, List, Union
127

8+
from sphinx.application import Sphinx
139

1410
DEFAULT_DOC_LINES_THRESHOLD = 250
1511
RST_INDENT = 4

docs/html/reference/pip_install.rst

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -808,7 +808,15 @@ You can install local projects by specifying the project path to pip:
808808
During regular installation, pip will copy the entire project directory to a
809809
temporary location and install from there. The exception is that pip will
810810
exclude .tox and .nox directories present in the top level of the project from
811-
being copied.
811+
being copied. This approach is the cause of several performance and correctness
812+
issues, so it is planned that pip 21.3 will change to install directly from the
813+
local project directory. Depending on the build backend used by the project,
814+
this may generate secondary build artifacts in the project directory, such as
815+
the ``.egg-info`` and ``build`` directories in the case of the setuptools
816+
backend.
817+
818+
To opt in to the future behavior, specify the ``--use-feature=in-tree-build``
819+
option in pip's command line.
812820

813821

814822
.. _`editable-installs`:

docs/pip_sphinxext.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ class PipOptions(rst.Directive):
5050

5151
def _format_option(self, option, cmd_name=None):
5252
bookmark_line = (
53-
".. _`{cmd_name}_{option._long_opts[0]}`:"
53+
f".. _`{cmd_name}_{option._long_opts[0]}`:"
5454
if cmd_name else
55-
".. _`{option._long_opts[0]}`:"
56-
).format(**locals())
55+
f".. _`{option._long_opts[0]}`:"
56+
)
5757
line = ".. option:: "
5858
if option._short_opts:
5959
line += option._short_opts[0]

news/0a741827-049c-4d5d-b44d-daea0c2fd01a.trivial.rst

Whitespace-only changes.

news/11e1b2eb-6433-4f15-b70d-c2c514f72ebd.trivial.rst

Whitespace-only changes.

news/151a1e46-d005-46ca-b1ae-a3811357dba3.trivial.rst

Whitespace-only changes.

news/40711960-12d9-4e58-8322-21e5975a804e.trivial.rst

Whitespace-only changes.

news/5be04056-e1d6-4f9a-bf46-8938d1936d9e.trivial.rst

Whitespace-only changes.

0 commit comments

Comments
 (0)