Releases: pdm-project/pdm
Releases · pdm-project/pdm
v2.15.3
Bug Fixes
- Fixed pdm venv activate, to also work for windows. And added documentation on how to authenticate to Azure Artifacts (#2851)
- Don't show unsupported formats in
pdm export
. (#2877) - Proxy (
HTTP_PROXY
env vars) settings are ignored for custom indexes. (#2880) - Fix the quoting of venv activate command for powershell. (#2881)
- Raise an error if the package given by
pdm update
does not exist in the select dependency group but in other groups. (#2885)
v2.15.2
Features & Improvements
- Use
get_runner()
method to build the task runner inrun
command.runner_cls
attribute is deprecated. (#2872)
Bug Fixes
- Expand
${PROJECT_ROOT}
in source URLs. (#2846) - Fix env and other options being inherited in nested composite scripts. (#2849)
- Keep the
${PROJECT_ROOT}
variable in dependencies after runningpdm lock --update-reuse
. (#2852) - Make
direct_minimal_versions
work on newly added dependencies. (#2853) - Fix a syntax error in the zsh completion script. (#2868)
v2.15.1
Bug Fixes
- Disable check update in
zsh
completion script. (#2838) - Fixes cached packages metadata files (
.referrers
) collisions onsync
when using avenv
withsymlink
cache method. (#2839)
Documentation
- Build docs with object inventory to support cross references from Sphinx documentation projects. (#2841)
v2.15.0
Features & Improvements
- Packages format preferences can now be defined in the project
pyproject.toml
using theno-binary
,only-binary
andprefer-binary
keys of thetool.pdm.resolution
section. (#2656)
Bug Fixes
- Don't create project and virtualenv when running
pdm python install
. (#2809) - Clean up the python installation directory if a previous download was unsuccessful. (#2810)
- Don't cache editable installations. (#2816)
- Fix a bug that installing in-project plugins with editable local paths doesn't work. (#2820)
- Don't create log directory until it's needed, to fix a PermissionError in docker environment. (#2825)
- Fix recursive script detection on multiple invocations. (#2829)
v2.14.0
Features & Improvements
- Revert the package cache introduced in 2.13. Don't cache the decompressed contents of wheels unless being told so. (#2803)
Bug Fixes
- Fix inconsistent logging when
pdm use
a different python interpreter (#2776) - Fix PDM unable to find Python interpreters when
PDM_IGNORE_ACTIVE_VENV
is set (#2779) - Check verify_ssl when trusting each source. (#2784)
- Fix name check for project itself in
pdm outdated
(#2785) - Fix a regression that proxy env vars are not respected. (#2788)
- Fix an issue that venv provider can't be found when providers are explicitly configured. (#2792)
- Fix a bug that
[tool.pdm.options]
are ignored if-c/--config CONFIG
is given. (#2793) - Make
--without
respect groups indev-dependencies
(#2799)
v2.13.3
Bug Fixes
- Per-source configuration for ca-certs and client-cert. #2754
- Remove all caches by removing individual cache types one by one. #2757
- Use the default HTTP client when downloading the pythons, to use the certificates settings. #2759
- Fix a race condition where pth files take effect when multiple packages are installed in parallel. #2762
- Refuse to run recursive composite scripts. #2766
v2.13.2
Bug Fixes
- Fix errors when parsing poetry format that contains special characters in author name.
Poetry-specificparse_name_email
andNAME_EMAIL_RE
moved frompdm.formats.base
topdm.formats.poetry
. #2665 - Fix a race condition in cached packages. When a cached package is being created it shouldn't be used for installation. #2739
- Add back
PreparedCandidate.build()
for backward-compatibility. #2747
Documentation
- Fixed a small non-code typo in docs and prodivded better wording. #2740
v2.13.1
v2.13.0
Features & Improvements
- Add option to exclude group(s) when running
pdm sync/install -G:all
by adding flag--without group1,group2,...
#2258 - Default to log to user home and make logs directory configurable. #2398
- Add an option
keep_going
to continue on errors for composite scripts and return the last failing exit code. #2582 - Add an option
working_dir
for PDM's scripts to set the current working directory. #2620 - Allow updating specific sub-dependencies (i.e., transitive dependencies) in the lock file. #2628
- Add
--config-setting
option toadd/install/sync/update/remove/export
commands, the config settings dictionary will be shared by all packages. #2636 - Cache the decompressed contents of wheels for faster access. #2660
- Add configuration for timeout for network requests. #2680
- Reuse the request sesison within the environment. #2697
- Caches can be disabled by using the
--no-cache
option or setting thePDM_NO_CACHE
environment variable. #2702 - Switch to
httpx.Client
for HTTP requests, droprequests
dependency. #2709 - We have timemachine now! You can exclude packages published newer than a certain date via
pdm lock --exclude-newer=<date>
, allowing reproduction of resolutions regardless of new package releases. #2712 - Add command
pdm outdated
to check the outdated packages and list the latest versions. #2718 - When
python.use_venv
is on, always try to create a virtualenv when usingpdm use
to switch the Python interpreter. #2720 - Support installing Pythons from python-build-standalone. Add command group
pdm python
to manage Python installations. Andpdm use
can automatically install the Python interpreter if it's not found. #2721 - Supports custom distribution files path via
-d/--dest
option forpdm publish
. #2723
Bug Fixes
- Don't modify TOML tables that are not related to PDM. #2666
- Made
--without
imply--with :all
. #2670 - Expand user path for
venv.location
and other path-like config values. #2672 - Give a default version when it's missing in
pyproject.toml
when parsing candidate's metadata. #2677 - Fix the issue that ANSI codes are shown in the output of
pdm --help
on Windows. #2678 - Don't show empty configuration sections in
pdm config
. #2683
Documentation
- Document the difference between
[tool.pdm.scripts]
and[project.scripts]
#2121
Removals and Deprecations
- Remove the support of
pth
cache method. Andsymlink
cache method now behaves the same assymlink_individual
cache method. #2660 - Remove
pdm.models.environment
module deprecated before. Also remove the renamed members frompdm.environments
. #2710
Miscellany
- Delete
setup.cfg
, move tool configurations under it topyproject.toml
#2703
v2.12.4
Features & Improvements
- Use env PDM_NO_EDITABLE as the default value for --no-editable option. #2613
Bug Fixes
- Reset project.environment when importing from setup.py, to fix resolution error. #2608
- Do not fetch package hashes when
--frozen-lockfile
is passed. #2630 - Make sure non-venv interpreters are used by venv creator. #2631
- Don't cause a hard failure if the local directory doesn't exist. #2650