Releases: pdm-project/pdm
Releases · pdm-project/pdm
v2.6.0
Features & Improvements
- Install project-level plugins from project config, with
tool.pdm.plugins
setting. #1461 - Added a
--json
flag to bothrun
andinfo
command allowing to dump scripts and infos as JSON. #1854 - Consider tasks with a name starting by an underscore (
_
) as internal tasks and hide them from the listing. #1855 - When running
pdm init -n
(non-interactive mode), a venv will be created by default. Previously, the selected Python will be used under PEP 582 mode. #1862 - Support Trusted Publisher. #1868
- Add an ephemeral wheel cache in process for wheels built from non-static revision sources. #1885
- Allow self-referencing groups in dev-dependencies. #1890
- Add an option
--no-cross-platform
topdm lock
to create a non-cross-platform lockfile. #1898
Bug Fixes
- Fix brackets in
--venv
option descriptions in zsh completion script. #1847 - The resolver doesn't take into account of the requirements for both bare
package
andpackage[extra]
. #1851 - Default pypi source does not use configured pypi.password, but "" instead. #1856
- Detect Python interpreters under the root of virtual environments. #1866
- Fix a race condition when the builder is creating a new build directory. #1869
- Raise
FileNotFoundError
if the requirement path is not found. #1875 - Fix a bug that the self package isn't uninstallable. #1901
v2.5.6
v2.5.5
No significant changes.
v2.5.4
v2.5.3
Bug Fixes
- Fix the wrong argument validation for update command, where packages given with group option should be allowed. #1836
Documentation
v2.5.2
v2.5.1
v2.5.0
Features & Improvements
- When
resolution.respect-source-order
is enabled, sources are lazily evaluated. This means that if a match is found on the first source, the remaining sources will not be requested. #1509 - New option
--venv <venv>
to run a command in the virtual environment with the given name. #1705 - Allow to prefer binary distributions when locking and installing packages, via
PDM_PREFER_BINARY
environment variable. #1817
Bug Fixes
- Do not validate selected groups against the locked grouped when running
pdm lock
. #1796 - Avoid duplicate .pdm-python in .gitignore. #1800
- Fix a backwards compatibility issue by adding back the
environment.is_global
property. #1814 - Fix a resolution conflict when a relative path requirement resolves to the same path as another file requirement with absolute path. #1822
- Fix an error when running
pdm init -p <dir>
if the target directory is not created yet. #1822
v2.5.0b0
Install the prerelease
pdm self update --pre
Or if you use pipx
:
pipx upgrade --pip-args "--pre" pdm
Breaking Changes
- Switch the default build backend to
pdm-backend
. #1684 - Only lock selected groups into the lockfile. Modify other commands to honor the groups included in the lockfile. #1704
- Move the project python path to its own file, and rename the project config file as
pdm.toml
which can be committed to the VCS. #1742 - Refactor the environment package.
Environment
is renamed toPythonLocalEnvironment
andGlobalEnvironment
is renamed toPythonEnvironment
. Movepdm.models.environment
module topdm.environments
package. #1791
Features & Improvements
- Add option to fail on the first install error. #1614
- Upgrade
unearth
to 0.8 to allow calling keyring from CLI. #1653 - Merge the index parameters from different configuration files. #1667
- Add new options to
venv
command to show the path or the python interpreter for a managed venv. #1680 - Write the groups of resolved dependencies to the metadata table in lockfile. #1692
- Introduce
--lib
option toinit
command to create a library project without prompting. #1708 - New command:
pdm fix
to migrate to the new PDM features. Add a hint when invoking PDM commands. #1743 - Include
.pdm-python
in project root.gitignore
when runningpdm init
. #1749 - Allow to ignore the activated venv with
PDM_IGNORE_ACTIVE_VENV
env var. #1782 - Add a signal
pre_invoke
to emit before any command is invoked. #1792
Bug Fixes
- Fix a bug that install warning prints to terminal under non-verbose mode. #1635
- Fix the random failure of
pdm export
due to non-deterministic order of group iteration. #1786 - Show the actual version when running
pdm show --version
#1788
Documentation
- Restructure the documentation. #1687
Dependencies
- Update
installer
to0.7.0
and emit a warning if the RECORD validation fails. #1784