Skip to content

Commit 97146c7

Browse files
committed
Bump for release
1 parent ef81b2e commit 97146c7

40 files changed

+74
-57
lines changed

NEWS.rst

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,79 @@
99
1010
.. towncrier release notes start
1111
12+
24.2 (2024-07-28)
13+
=================
14+
15+
Deprecations and Removals
16+
-------------------------
17+
18+
- Deprecate ``pip install --editable`` falling back to ``setup.py develop``
19+
when using a setuptools version that does not support :pep:`660`
20+
(setuptools v63 and older). (`#11457 <https://github.com/pypa/pip/issues/11457>`_)
21+
22+
Features
23+
--------
24+
25+
- Check unsupported packages for the current platform. (`#11054 <https://github.com/pypa/pip/issues/11054>`_)
26+
- Use system certificates *and* certifi certificates to verify HTTPS connections on Python 3.10+.
27+
Python 3.9 and earlier only use certifi.
28+
29+
To revert to previous behaviour, pass the flag ``--use-deprecated=legacy-certs``. (`#11647 <https://github.com/pypa/pip/issues/11647>`_)
30+
- Improve discovery performance of installed packages when the ``importlib.metadata``
31+
backend is used to load distribution metadata (used by default under Python 3.11+). (`#12656 <https://github.com/pypa/pip/issues/12656>`_)
32+
- Improve performance when the same requirement string appears many times during
33+
resolution, by consistently caching the parsed requirement string. (`#12663 <https://github.com/pypa/pip/issues/12663>`_)
34+
- Minor performance improvement of finding applicable package candidates by not
35+
repeatedly calculating their versions (`#12664 <https://github.com/pypa/pip/issues/12664>`_)
36+
- Disable pip's self version check when invoking a pip subprocess to install
37+
PEP 517 build requirements. (`#12683 <https://github.com/pypa/pip/issues/12683>`_)
38+
- Improve dependency resolution performance by caching platform compatibility
39+
tags during wheel cache lookup. (`#12712 <https://github.com/pypa/pip/issues/12712>`_)
40+
- ``wheel`` is no longer explicitly listed as a build dependency of ``pip``.
41+
``setuptools`` injects this dependency in the ``get_requires_for_build_wheel()``
42+
hook and no longer needs it on newer versions. (`#12728 <https://github.com/pypa/pip/issues/12728>`_)
43+
- Ignore ``--require-virtualenv`` for ``pip check`` and ``pip freeze`` (`#12842 <https://github.com/pypa/pip/issues/12842>`_)
44+
- Improve package download and install performance.
45+
46+
Increase chunk sizes when downloading (256 kB, up from 10 kB) and reading files (1 MB, up from 8 kB).
47+
This reduces the frequency of updates to pip's progress bar. (`#12810 <https://github.com/pypa/pip/issues/12810>`_)
48+
- Improve pip install performance.
49+
50+
Files are now extracted in 1MB blocks, or in one block matching the file size for
51+
smaller files. A decompressor is no longer instantiated when extracting 0 bytes files,
52+
it is not necessary because there is no data to decompress. (`#12803 <https://github.com/pypa/pip/issues/12803>`_)
53+
54+
Bug Fixes
55+
---------
56+
57+
- Set ``no_color`` to global ``rich.Console`` instance. (`#11045 <https://github.com/pypa/pip/issues/11045>`_)
58+
- Fix resolution to respect ``--python-version`` when checking ``Requires-Python``. (`#12216 <https://github.com/pypa/pip/issues/12216>`_)
59+
- Perform hash comparisons in a case-insensitive manner. (`#12680 <https://github.com/pypa/pip/issues/12680>`_)
60+
- Avoid ``dlopen`` failure for glibc detection in musl builds (`#12716 <https://github.com/pypa/pip/issues/12716>`_)
61+
- Avoid keyring logging crashes when pip is run in verbose mode. (`#12751 <https://github.com/pypa/pip/issues/12751>`_)
62+
- Fix finding hardlink targets in tar files with an ignored top-level directory. (`#12781 <https://github.com/pypa/pip/issues/12781>`_)
63+
- Improve pip install performance by only creating required parent
64+
directories once, instead of before extracting every file in the wheel. (`#12782 <https://github.com/pypa/pip/issues/12782>`_)
65+
- Improve pip install performance by calculating installed packages printout
66+
in linear time instead of quadratic time. (`#12791 <https://github.com/pypa/pip/issues/12791>`_)
67+
68+
Vendored Libraries
69+
------------------
70+
71+
- Remove vendored tenacity.
72+
- Update the preload list for the ``DEBUNDLED`` case, to replace ``pep517`` that has been renamed to ``pyproject_hooks``.
73+
- Use tomllib from the stdlib if available, rather than tomli
74+
- Upgrade certifi to 2024.7.4
75+
- Upgrade platformdirs to 4.2.2
76+
- Upgrade pygments to 2.18.0
77+
- Upgrade setuptools to 70.3.0
78+
- Upgrade typing_extensions to 4.12.2
79+
80+
Improved Documentation
81+
----------------------
82+
83+
- Correct ``—-ignore-conflicts`` (including an em dash) to ``--ignore-conflicts``. (`#12851 <https://github.com/pypa/pip/issues/12851>`_)
84+
1285
24.1.2 (2024-07-07)
1386
===================
1487

news/10822.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/11045.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/11054.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/11457.removal.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

news/11647.feature.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

news/12216.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12572.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12656.feature.rst

Lines changed: 0 additions & 3 deletions
This file was deleted.

news/12660.trivial.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

news/12663.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12664.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12680.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12683.feature.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

news/12712.feature.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

news/12716.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12728.feature.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

news/12751.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12776.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12781.bugfix.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12782.bugfix.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

news/12791.bugfix.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.

news/12796.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12797.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12803.bugfix.rst

Lines changed: 0 additions & 4 deletions
This file was deleted.

news/12805.trivial.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12810.feature.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

news/12842.feature.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/12851.doc.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/5dac0fc9-10c7-4d77-b8dc-8ff111c9557d.trivial.rst

Whitespace-only changes.

news/72167f18-bd68-41e1-8404-4d23e6b2652f.trivial.rst

Whitespace-only changes.

news/aa82171b-1578-4128-8db3-9aa72b3a6a84.trivial.rst

Whitespace-only changes.

news/bcfde343-3f44-464e-9229-7af962defac6.trivial.rst

Whitespace-only changes.

news/certifi.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/d0281e66-f6f9-4fb6-ac44-b5a9d468d42b.trivial.rst

Whitespace-only changes.

news/platformdirs.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/pygments.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/setuptools.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

news/typing_extensions.vendor.rst

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/pip/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from typing import List, Optional
22

3-
__version__ = "24.2.dev0"
3+
__version__ = "24.2"
44

55

66
def main(args: Optional[List[str]] = None) -> int:

0 commit comments

Comments
 (0)