2.29.3
v2.29.3
Added 1
- Add the `--venv` option to `pdm outdated`, like the other commands that read the installed packages.
Changed 1
- Document what to cache and which install command to use when running PDM on CI platforms other than GitHub Actions.
Fixed 19
- Fix isolated PEP 517 builds skipping packages that are only visible via the host venv's `--system-site-packages`.
- Fix `pdm import` of Poetry projects dropping optional dependencies whose extras entry is spelled differently, and importing optional dependencies with multiple constraints as required ones.
- Keep the plain requirement in `pdm export` when the same package is also locked with extras under a narrower marker, so it is no longer missing from `requirements.txt` on the other platforms.
- Fix `python_version <= "X.Y"` markers excluding the patch releases of `X.Y`, so `pdm install` skipped such dependencies.
- Fix environment variables set by one task of a composite script, via `env` or `env_file`, leaking into the tasks that run after it.
- Convert flit's comma-separated `keywords` and obsolete `dev-requires` into valid PEP 621 fields when importing a flit project.
- Import custom Pipfile package categories, such as `[docs]`, as dependency groups instead of dropping them.
- Keep editable requirements in `[tool.pdm.dev-dependencies]` on `pdm import`, so the written `[dependency-groups]` table stays valid per PEP 735.
- Keep Poetry's `develop = true` as an editable requirement when importing dependency groups.
- Fix `pdm import` of the project's own Poetry `pyproject.toml` writing each dependency group to both `[tool.pdm.dev-dependencies]` and `[dependency-groups]`.
- Import Pipfile packages declared with a `file` URL, such as `{file = "https://..."}`, as URL requirements instead of dropping the URL.
- Preserve Poetry platform restrictions as environment markers when importing dependencies.
- Read an `exclude-newer` timestamp without a UTC offset as UTC, so `pdm lock` no longer fails with a `TypeError` comparing naive and aware datetimes.
- Do not write empty dependency groups, such as `dev = []` from an empty `[dev-packages]` table, when importing from another format.
- Strip every leading and trailing `.`, `_` and `-` when `pdm init` derives the project name from the directory, so a folder like `__demo__` no longer produces the invalid name `_demo_`.
- `pdm init` now writes `project.license` as a license expression string instead of a `{text = ...}` table, and no longer rewrites an existing `{file = ...}` table or license expression into a value the build backend rejects. behavior changed · inferred, marked in the notes below
- Read the inline metadata of a script that starts with a UTF-8 BOM, which `pdm run` ignored.
- Convert a space-separated Poetry version constraint such as `>=1.0 <2.0` like the comma-separated form instead of aborting the import.
- Resolve relative `path` entries in a `Pipfile` against the directory of the `Pipfile` when importing, instead of the current working directory.
1 change to check, marked in the notes below
From PDM
Features & Improvements
- Add the
--venvoption topdm outdated, like the other commands that read the installed packages. (#3904)
Bug Fixes
- Fix isolated PEP 517 builds skipping packages that are only visible via the host venv's
--system-site-packages. (#3895) - Fix
pdm importof Poetry projects dropping optional dependencies whose extras entry is spelled differently, and importing optional dependencies with multiple constraints as required ones. (#3899) - Keep the plain requirement in
pdm exportwhen the same package is also locked with extras under a narrower marker, so it is no longer missing fromrequirements.txton the other platforms. (#3900) - Fix
python_version <= "X.Y"markers excluding the patch releases ofX.Y, sopdm installskipped such dependencies. (#3902) - Fix environment variables set by one task of a composite script, via
envorenv_file, leaking into the tasks that run after it. (#3903) - Convert flit's comma-separated
keywordsand obsoletedev-requiresinto valid PEP 621 fields when importing a flit project. (#3907) - Import custom Pipfile package categories, such as
[docs], as dependency groups instead of dropping them. (#3909) - Keep editable requirements in
[tool.pdm.dev-dependencies]onpdm import, so the written[dependency-groups]table stays valid per PEP 735. (#3910) - Keep Poetry's
develop = trueas an editable requirement when importing dependency groups. (#3913) - Fix
pdm importof the project's own Poetrypyproject.tomlwriting each dependency group to both[tool.pdm.dev-dependencies]and[dependency-groups]. (#3915) - Import Pipfile packages declared with a
fileURL, such as{file = "https://..."}, as URL requirements instead of dropping the URL. (#3918) - Preserve Poetry platform restrictions as environment markers when importing dependencies. (#3920)
- Read an
exclude-newertimestamp without a UTC offset as UTC, sopdm lockno longer fails with aTypeErrorcomparing naive and aware datetimes. (#3922) - Do not write empty dependency groups, such as
dev = []from an empty[dev-packages]table, when importing from another format. (#3925) - Strip every leading and trailing
.,_and-whenpdm initderives the project name from the directory, so a folder like__demo__no longer produces the invalid name_demo_. (#3927) pdm initnow writesproject.licenseas a license expression string instead of a{text = ...}table, and no longer rewrites an existing{file = ...}table or license expression into a value the build backend rejects. (#3929) behavior changed · inferred- Read the inline metadata of a script that starts with a UTF-8 BOM, which
pdm runignored. (#3931) - Convert a space-separated Poetry version constraint such as
>=1.0 <2.0like the comma-separated form instead of aborting the import. (#3934) - Resolve relative
pathentries in aPipfileagainst the directory of thePipfilewhen importing, instead of the current working directory. (#3935)
Documentation
- Document what to cache and which install command to use when running PDM on CI platforms other than GitHub Actions. (#2472)