Skip to content

Commit afa16f2

Browse files
authored
Merge branch 'main' into feature/no-download-for-dry-run
2 parents 62a5d16 + 758a172 commit afa16f2

32 files changed

+214
-163
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ repos:
1717
exclude: .patch
1818

1919
- repo: https://github.com/psf/black-pre-commit-mirror
20-
rev: 25.1.0
20+
rev: 25.9.0
2121
hooks:
2222
- id: black
2323

2424
- repo: https://github.com/astral-sh/ruff-pre-commit
25-
rev: v0.12.11
25+
rev: v0.13.3
2626
hooks:
2727
- id: ruff-check
2828
args: [--fix]
2929

3030
- repo: https://github.com/pre-commit/mirrors-mypy
31-
rev: v1.17.1
31+
rev: v1.18.2
3232
hooks:
3333
- id: mypy
3434
exclude: tests/data

docs/html/cli/pip_freeze.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,15 @@ Description
2323

2424
.. pip-command-description:: freeze
2525

26+
.. note::
27+
By default, ``pip freeze`` omits bootstrap packaging tools so the output
28+
focuses on your project’s dependencies. On Python **3.11 and earlier**
29+
this excludes ``pip``, ``setuptools``, ``wheel`` and ``distribute``; on
30+
Python **3.12 and later** only ``pip`` is excluded. Use ``--all`` to
31+
include those packages when you need a complete environment snapshot.
32+
``pip freeze`` reports what is installed; it does **not** compute a
33+
lockfile or a solver result.
34+
2635

2736
Options
2837
=======

docs/html/cli/pip_install.rst

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,12 +479,11 @@ Examples
479479

480480
.. warning::
481481

482-
Using this option to search for packages which are not in the main
483-
repository (such as private packages) is unsafe, per a security
484-
vulnerability called
485-
`dependency confusion <https://azure.microsoft.com/en-us/resources/3-ways-to-mitigate-risk-using-private-package-feeds/>`_:
486-
an attacker can claim the package on the public repository in a way that
487-
will ensure it gets chosen over the private package.
482+
Using the ``--extra-index-url`` option to search for packages which are
483+
not in the main repository (for example, private packages) is unsafe.
484+
This is a class of security issue known as `dependency confusion <https://azure.microsoft.com/en-us/resources/3-ways-to-mitigate-risk-using-private-package-feeds/>`_: an
485+
attacker can publish a package with the same name to a public index,
486+
which may then be chosen instead of your private package.
488487

489488
.. tab:: Unix/macOS
490489

docs/html/cli/pip_lock.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Options
3535
Examples
3636
========
3737

38-
#. Emit a ``pylock.toml`` for the the project in the current directory
38+
#. Emit a ``pylock.toml`` for the project in the current directory
3939

4040
.. tab:: Unix/macOS
4141

docs/html/topics/dependency-resolution.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ will avoid performing dependency resolution during deployment.
165165

166166
## Dealing with dependency conflicts
167167

168+
This section uses hypothetical packages (`package_coffee`, `package_tea`, and
169+
`package_water`) to explain how pip resolves conflicts.
170+
168171
This section provides practical suggestions to pip users who encounter
169172
a `ResolutionImpossible` error, where pip cannot install their specified
170173
packages due to conflicting dependencies.
@@ -194,6 +197,11 @@ because they each depend on different versions of the same package
194197
- ``package_tea`` version ``4.3.0`` depends on version ``2.3.1`` of
195198
``package_water``
196199

200+
Note: `package_coffee`, `package_tea`, and `package_water` are hypothetical
201+
packages used only to illustrate dependency conflicts. They are not real
202+
projects you can install.
203+
204+
197205
Sometimes these messages are straightforward to read, because they use
198206
commonly understood comparison operators to specify the required version
199207
(e.g. `<` or `>`).
@@ -252,10 +260,10 @@ the same version of `package_water`, you might consider:
252260

253261
In the second case, pip will automatically find a version of both
254262
`package_coffee` and `package_tea` that depend on the same version of
255-
`package_water`, installing:
263+
`package_water`, for example:
256264

257265
- `package_coffee 0.44.1`, which depends on `package_water 2.6.1`
258-
- `package_tea 4.4.3` which _also_ depends on `package_water 2.6.1`
266+
- `package_tea 4.4.3`, which also depends on `package_water 2.6.1`
259267

260268
If you want to prioritize one package over another, you can add version
261269
specifiers to _only_ the more important package:

news/13561.doc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clarified dependency resolution docs: added note on hypothetical packages, fixed version mismatch, and added introduction line.

news/certifi.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade certifi to 2025.10.5

news/msgpack.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade msgpack to 1.1.2

news/platformdirs.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade platformdirs to 4.5.0

news/requests.vendor.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Upgrade requests to 2.32.5

0 commit comments

Comments
 (0)