Sourced from pip's changelog.
22.2 (2022-07-21)
Deprecations and Removals
- Remove the
html5lib
deprecated feature flag. ([#10825](https://github.com/pypa/pip/issues/10825) <https://github.com/pypa/pip/issues/10825>
_)- Remove
--use-deprecated=backtrack-on-build-failures
. ([#11241](https://github.com/pypa/pip/issues/11241) <https://github.com/pypa/pip/issues/11241>
_)Features
Add support to use
truststore <https://pypi.org/project/truststore/>
_ as an alternative SSL certificate verification backend. The backend can be enabled on Python 3.10 and later by installingtruststore
into the environment, and adding the--use-feature=truststore
flag to various pip commands.
truststore
differs from the current default verification backend (provided bycertifi
) in it uses the operating system’s trust store, which can be better controlled and augmented to better support non-standard certificates. Depending on feedback, pip may switch to this as the default certificate verification backend in the future. ([#11082](https://github.com/pypa/pip/issues/11082) <https://github.com/pypa/pip/issues/11082>
_)Add
--dry-run
option topip install
, to let it print what it would install but not actually change anything in the target environment. ([#11096](https://github.com/pypa/pip/issues/11096) <https://github.com/pypa/pip/issues/11096>
_)Record in wheel cache entries the URL of the original artifact that was downloaded to build the cached wheels. The record is named
origin.json
and uses the PEP 610 Direct URL format. ([#11137](https://github.com/pypa/pip/issues/11137) <https://github.com/pypa/pip/issues/11137>
_)Support
PEP 691 <https://peps.python.org/pep-0691/>
. ([#11158](https://github.com/pypa/pip/issues/11158) <https://github.com/pypa/pip/issues/11158>
)pip's deprecation warnings now subclass the built-in
DeprecationWarning
, and can be suppressed by running the Python interpreter with-W ignore::DeprecationWarning
. ([#11225](https://github.com/pypa/pip/issues/11225) <https://github.com/pypa/pip/issues/11225>
_)Add
pip inspect
command to obtain the list of installed distributions and other information about the Python environment, in JSON format. ([#11245](https://github.com/pypa/pip/issues/11245) <https://github.com/pypa/pip/issues/11245>
_)Significantly speed up isolated environment creation, by using the same sources for pip instead of creating a standalone installation for each environment. (
[#11257](https://github.com/pypa/pip/issues/11257) <https://github.com/pypa/pip/issues/11257>
_)Add an experimental
--report
option to the install command to generate a JSON report of what was installed. In combination with--dry-run
and--ignore-installed
it can be used to resolve the requirements. ([#53](https://github.com/pypa/pip/issues/53) <https://github.com/pypa/pip/issues/53>
_)Bug Fixes
- Fix
pip install --pre
for packages with pre-release build dependencies defined both inpyproject.toml
'sbuild-system.requires
andsetup.py
'ssetup_requires
. ([#10222](https://github.com/pypa/pip/issues/10222) <https://github.com/pypa/pip/issues/10222>
_)- When pip rewrites the shebang line in a script during wheel installation, update the hash and size in the corresponding
RECORD
file entry. ([#10744](https://github.com/pypa/pip/issues/10744) <https://github.com/pypa/pip/issues/10744>
_)- Do not consider a
.dist-info
directory found inside a wheel-like zip file as metadata for an installed distribution. A package in a wheel is (by
... (truncated)
8e7e76e
Bump for releaseb6f6a94
Update AUTHORS.txt790725a
Merge pull request #11274 from sbidoul/install-report-note-sbid4b9e18
Add clarifications to the installation report documentationb1a01ef
Merge pull request #11265 from finnagin/main48bcb0a
reformat to pass pre-commit checka7c1fe3
Remove utc fixture from tests0c574f7
Remove time import246fef1
Remove utc fixturec9cb7f4
Merge pull request #11270 from uranusjr/upgrade-pre-commit-hooks