PDM v2.2.1 Release Notes
Release Date: 2022-11-03 // over 2 years agoPrevious changes from v2.2.0
-
๐ Features & Improvements
- โ Add
venv.prompt
configuration to allow customizing prompt when a virtualenv is activated #1332 - ๐ Allow the use of custom CA certificates per publish repository using
ca_certs
or from the command line viapdm publish --ca-certs <path> ...
. #1392 - โก๏ธ Rename the
plugin
command toself
, and it can not only manage plugins but also all dependencies. Add a subcommandself update
to update PDM itself. #1406 - ๐ Allow
pdm init
to receive a Python path or version via--python
option. #1412 - โ Add a default value for
requires-python
when importing from other formats. #1426 - ๐ Use
pdm
instead ofpip
to resolve and install build requirements. So that PDM configurations can control the process. #1429 - Customizable color theme via
pdm config
command. #1450 - ๐ A new
pdm lock --check
flag to validate whether the lock is up to date. #1459 - โ Add both option and config item to ship
pip
when creating a new venv. #1463 - โ Issue warning and skip the requirement if it has the same name as the current project. #1466
- โจ Enhance the
pdm list
command with new formats:--csv,--markdown
and add options--fields,--sort
to control the output contents. Users can also includelicenses
in the--fields
option to display the package licenses. #1469 - ๐ A new pre-commit hook to run
pdm lock --check
in pre-commit. #1471
๐ Bug Fixes
- ๐ Fix the issue that relative paths don't work well with
--project
argument. #1220 - ๐ฆ It is now possible to refer to a package from outside the project with relative paths in dependencies. #1381
- ๐ Ensure
pypi.[ca,client]_cert[s]
config items are passed to distribution builder install steps to allow for custom PyPI index sources with self signed certificates. #1396 - ๐ Fix a crash issue when depending on editable packages with extras. #1401
- Do not save the python path when using non-interactive mode in
pdm init
. #1410 - ๐ Fix the matching of
python*
command inpdm run
. #1414 - ๐ Show the Python path, instead of the real executable, in the Python selection menu. #1418
- ๐ Fix the HTTP client of package publishment to prompt for password and read PDM configurations correctly. #1430
- Ignore the unknown fields when constructing a requirement object. #1445
- ๐ Fix a bug of unrelated candidates being fetched if the requirement is matching wildcard versions(e.g.
==1.*
). #1465 - ๐ Use
importlib-metadata
from PyPI for Python < 3.10. #1467
๐ Documentation
- โก๏ธ Clarify the difference between a library and an application. Update the guide of multi-stage docker build. #1371
๐ Removals and Deprecations
- โ Remove all top-level imports, users should import from the submodules instead. #1404
- โ Remove the usages of old config names deprecated since 2.0. #1422
- โ Remove the deprecated color functions, use rich's console markup instead. #1452
- โ Add