Install the prerelease version
pip: python3 -m pip install --user --upgrade pdm==1.5.0b0
pipx: pipx upgrade --pip-args="--pre" pdm
Features & Improvements
- Add hand-written zsh completion script. #188
- Add a special value
:all
given to-s/--section
to refer to all sections under the same species.
Adjustadd
,sync
,install
,remove
andupdate
to support the newdev-dependencies
groups. Old behavior will be kept the same. #351 dev-dependencies
is now a table of dependencies groups, where key is the group name and value is an array of dependencies. These dependencies won't appear in the distribution's metadata.dev-depedencies
of the old format will turn intodev
group underdev-dependencies
. #351- Move
dev-dependencies
,includes
,excludes
andpackage-dir
out from[project]
table to[tool.pdm]
table. The migration will be done automaticaly if old format is detected. #351 - Throws an error with meaningful message when no candidate is found for one requirement. #357
- Support
--dry-run
option forupdate
command to display packages that need update, install or removal. Add--top
option to limit to top level packages only. #358 - Full-featured completion scripts for Zsh and Powershell - section selection, package name autocompletion and so on. Windows is a first-class citizen! #367
- Support non-interactive
init
command via-n/--non-interactive
option. No question will be asked in this mode. #368 - Show project packages path(PEP 582) in the output of
pdm info
, also add an option--packages
to show that value only. #372
Bug Fixes
- Fix a bug that pure python libraries are not loaded to construct the WorkingSet. #346
- Don't write
<script>-X.Y
variant to the bin folder. #365 - Python is now run in isolated mode via subprocess to avoid accidentally importing user packages. #369
- Don't overwrite existing dependencies when importing from requirements.txt. #370
Improved Documentation
Removals and Deprecations
- Remove the support of project path following
-g/--global
that was deprecated in1.4.0
. One should use-g -p <project_path>
for that purpose. #361