Note
This is the last minor release that supports installing on Python 3.7.
Please upgrade your Python to 3.8 or higher.
Features & Improvements
- Allow binding packages to specific sources with
include_packagesandexclude_packagesconfig undertool.pdm.sourcetable. #1645 - Show warnings when a package is rejected by the resolve because of uncovered
requires-pythonrange. And provide a way to ignore them per-package. #2304 - Add
-q/--quietoption to suppress some warnings printed to the console. This option is mutually exclusive with-v/--verbose. #2304 - Introduce a new
--strategy/-Soption forlockcommand, to specify one or more strategy flags for resolving dependencies.--static-urlsand--no-cross-platformare deprecated at the same time. #2310 - Add lock option to resolve direct dependencies to the minimal versions available. #2310
- Report the progress of download and unpacking when installing packages. #2328
- Refactor
find_project_root()andfind_pypackage()to look for the project root recursively, and remove theproject_max_depthconfiguration variable and the correspondingPDM_PROJECT_MAX_DEPTHenvironment variable. #2286
Bug Fixes
- Change the venv backend clean function
pdm.cli.commands.venv.backend.Backend._ensure_cleanto empty the.venvfolder instead of deleting it. #2282 - Fix a bug that dependency groups from Poetry 1.2+ do not migrate properly to PDM. #2285
- Fix a bug that build requirements are installed into wrong location when using
--venvoption. #2314 - Fix a bug that global repository setting results in TypeError . #2330
- Fix a credentials error when working with two indices on the same host #2333
Miscellany
- Officially supports python3.12 now. #2301