Skip to content

Commit 2c68bb1

Browse files
committed
Merge branch 'main' into release/23.0.1
2 parents 110cd77 + 852dedd commit 2c68bb1

30 files changed

+217
-56
lines changed

NEWS.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Features
4141
modify the externally managed environment. (`#11381 <https://github.com/pypa/pip/issues/11381>`_)
4242
- Enable the use of ``keyring`` found on ``PATH``. This allows ``keyring``
4343
installed using ``pipx`` to be used by ``pip``. (`#11589 <https://github.com/pypa/pip/issues/11589>`_)
44-
- The inspect and installation report formats are now declared stabled, and their version
44+
- The inspect and installation report formats are now declared stable, and their version
4545
has been bumped from ``0`` to ``1``. (`#11757 <https://github.com/pypa/pip/issues/11757>`_)
4646

4747
Bug Fixes

docs/html/topics/configuration.md

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,14 @@ and how they are related to pip's various command line options.
1919

2020
## Configuration Files
2121

22-
Configuration files can change the default values for command line option.
23-
They are written using a standard INI style configuration files.
22+
Configuration files can change the default values for command line options.
23+
They are written using standard INI style configuration files.
2424

25-
pip has 3 "levels" of configuration files:
25+
pip has 4 "levels" of configuration files:
2626

27-
- `global`: system-wide configuration file, shared across users.
28-
- `user`: per-user configuration file.
27+
- `global`: system-wide configuration file, shared across all users.
28+
- `user`: per-user configuration file, shared across all environments.
29+
- `base` : per-base environment configuration file, shared across all virtualenvs with the same base. (available since pip 23.0)
2930
- `site`: per-environment configuration file; i.e. per-virtualenv.
3031

3132
### Location
@@ -47,6 +48,9 @@ User
4748
4849
The legacy "per-user" configuration file is also loaded, if it exists: {file}`$HOME/.pip/pip.conf`.
4950
51+
Base
52+
: {file}`\{sys.base_prefix\}/pip.conf`
53+
5054
Site
5155
: {file}`$VIRTUAL_ENV/pip.conf`
5256
```
@@ -63,6 +67,9 @@ User
6367
6468
The legacy "per-user" configuration file is also loaded, if it exists: {file}`$HOME/.pip/pip.conf`.
6569
70+
Base
71+
: {file}`\{sys.base_prefix\}/pip.conf`
72+
6673
Site
6774
: {file}`$VIRTUAL_ENV/pip.conf`
6875
```
@@ -81,6 +88,9 @@ User
8188
8289
The legacy "per-user" configuration file is also loaded, if it exists: {file}`%HOME%\\pip\\pip.ini`
8390
91+
Base
92+
: {file}`\{sys.base_prefix\}\\pip.ini`
93+
8494
Site
8595
: {file}`%VIRTUAL_ENV%\\pip.ini`
8696
```
@@ -102,6 +112,7 @@ order:
102112
- `PIP_CONFIG_FILE`, if given.
103113
- Global
104114
- User
115+
- Base
105116
- Site
106117

107118
Each file read overrides any values read from previous files, so if the

news/11529.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix grammar by changing "A new release of pip available:" to "A new release of pip is available:" in the notice used for indicating that.

news/11671.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Ignore PIP_REQUIRE_VIRTUALENV for ``pip index``

news/11740.bugfix.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Improve handling of isolated build environments on platforms that
2+
customize the Python's installation schemes, such as Debian and
3+
Homebrew.

news/11773.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not crash in presence of misformatted hash field in ``direct_url.json``.

news/11774.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Correct the way to decide if keyring is available.

news/11775.doc.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Cross-reference the ``--python`` flag from the ``--prefix`` flag,
2+
and mention limitations of ``--prefix`` regarding script installation.

news/11780.feature.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Implement ``--break-system-packages`` to permit installing packages into
2+
``EXTERNALLY-MANAGED`` Python installations.

news/9752.feature.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
In the case of virtual environments, configuration files are now also included from the base installation.

0 commit comments

Comments
 (0)