Skip to content

Commit

Permalink
Update dependency pdm to v2.17.1 (#87)
Browse files Browse the repository at this point in the history
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [pdm](https://togithub.com/pdm-project/pdm)
([changelog](https://pdm-project.org/latest/dev/changelog/)) | minor |
`==2.16.1` -> `==2.17.1` |

---

### Release Notes

<details>
<summary>pdm-project/pdm (pdm)</summary>

###
[`v2.17.1`](https://togithub.com/pdm-project/pdm/blob/HEAD/CHANGELOG.md#Release-v2171-2024-07-19)

[Compare
Source](https://togithub.com/pdm-project/pdm/compare/2.17.0...2.17.1)

##### Bug Fixes

- Raise dep-logic lower bound to 0.4.2 to fix issues with pdm lock after
upgrading from older pdm versions
([#&#8203;3033](https://togithub.com/pdm-project/pdm/issues/3033))
- Correct the current platform and architecture for win32 and macos
systems.
([#&#8203;3035](https://togithub.com/pdm-project/pdm/issues/3035))

##### Miscellany

- Fix zsh completions
([#&#8203;3031](https://togithub.com/pdm-project/pdm/issues/3031))

###
[`v2.17.0`](https://togithub.com/pdm-project/pdm/blob/HEAD/CHANGELOG.md#Release-v2170-2024-07-18)

[Compare
Source](https://togithub.com/pdm-project/pdm/compare/2.16.1...2.17.0)

##### Breaking Changes

- `LockedRepository.all_candidates` now returns a `dict[str,
list[Candidate]]` instead of `dict[str, Candidate]`.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))
- `post_lock` hook now receives a resolution result of type `dict[str,
list[Candidate]]`, instead of `dict[str, Candidate]`.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))

##### Features & Improvements

- Support reading requirement constraints from pip-style requirement
files for "overriding" via `--override` option.
([#&#8203;2896](https://togithub.com/pdm-project/pdm/issues/2896))
- Add a `--non-interactive` option for automation scenarios, also
interactive prompts will not show up when not running in an interactive
terminal.
([#&#8203;2934](https://togithub.com/pdm-project/pdm/issues/2934))
- Refactored `pdm python install --list` to reuse the same
implementation as other cli commands that work with Python interpreters
from pbs_installer.
([#&#8203;2977](https://togithub.com/pdm-project/pdm/issues/2977))
- Add `--license` and `--project-version` as CLI options to control and
streamline them during `pdm init` - especially in automated scenarios
with `--non-interactive`
([#&#8203;2978](https://togithub.com/pdm-project/pdm/issues/2978))
- Run pdm sync in "post-rewrite" stage of pre-commit
([#&#8203;2994](https://togithub.com/pdm-project/pdm/issues/2994))
- `Project.get_dependencies()` now returns a list of `Requirement`
instead of a mapping.
The first argument of `Project.add_dependencies()` now accepts a list of
`Requirement` instead of a mapping.
The old usage will be kept working for a short period of time and will
be removed in the future.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))
- Support locking for specific target, which is a combination of
(python, platform, implementation) triple. Bump lock file version to
`4.5.0`.

Example usage: `pdm lock --platform=linux --python="==3.8.*"
--implementation=cpython`. See the
[docs](https://pdm-project.org/en/latest/usage/lock-targets) for more
details.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))
- Rename `--reuse-env` to `--recreate` for `run` command, and reverse
the behavior.
([#&#8203;2999](https://togithub.com/pdm-project/pdm/issues/2999))
- PDM is now published with optional pinned dependencies using the pdm
plugin [pdm-build-locked](https://pdm-build-locked.readthedocs.io/).

To install pdm with its dependencies pinned to the versions it was
tested with, run:

    ```bash

        pipx install pdm[locked]
    ```

    To install optional dependency group copier:

    ```bash

        pipx install pdm[locked,copier-locked]
    ```

This feature is entirely optional. Installing pdm without the extra will
work the same way as before this change.
([#&#8203;3001](https://togithub.com/pdm-project/pdm/issues/3001))
- Added `--clean-unselected` alias for `--only-keep`
([#&#8203;3007](https://togithub.com/pdm-project/pdm/issues/3007))
- Group options for update strategy and save strategy.
([#&#8203;3016](https://togithub.com/pdm-project/pdm/issues/3016))

##### Bug Fixes

- When locking dependencies that references the self project, the
referenced groups should also be recorded in the lockfile.
([#&#8203;2976](https://togithub.com/pdm-project/pdm/issues/2976))
- Retry failed installation jobs if they are run sequentially, such as
for editable dependencies.
([#&#8203;3005](https://togithub.com/pdm-project/pdm/issues/3005))
- Fix the local path issue when `-p` is passed to change the project
root. ([#&#8203;3009](https://togithub.com/pdm-project/pdm/issues/3009))
- Fix a bug that PDM can't install editable self package with
non-isolated build in one go.
([#&#8203;3018](https://togithub.com/pdm-project/pdm/issues/3018))
- Add context when parsing version failed.
([#&#8203;3020](https://togithub.com/pdm-project/pdm/issues/3020))
- Fix a mistake in build env setup that will cause the `PATH` env var
length to grow.
([#&#8203;3022](https://togithub.com/pdm-project/pdm/issues/3022))

##### Removals and Deprecations

- Remove the deprecation warning of `BaseCommand.__init__()` method. Now
it doesn't take any arguments.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))
- `Provider.get_reuse_candidate()` method is deprecated in favor of
`Provider.iter_reuse_candidates()`, to return an iterable of reuse
candidates.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))
- `--no-markers` option in `pdm export` command becomes a no-op and is
marked as deprecated, because it doesn't make sense anymore.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))
- `ignore_compatibility` parameter of
`Project.get_provider()`/`Project.get_repository()`/`Environment.get_finder()`
is deprecated. Pass in a `EnvSpec` via `env_spec` parameter instead.
`requires_python` parameter of `pdm.resolver.core.resolve()` function is
deprecated and has no effect.
`cross_platform` parameter of
`pdm.cli.actions.resolve_candidates_from_lockfile()` function is
deprecated and has no effect.
([#&#8203;2995](https://togithub.com/pdm-project/pdm/issues/2995))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC42LjAiLCJ1cGRhdGVkSW5WZXIiOiIzOC42LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
  • Loading branch information
RKIMetadataExchange authored Jul 26, 2024
1 parent 2fefa33 commit e9c1969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cruft==2.15.0
mex-release @ git+https://github.com/robert-koch-institut/mex-release.git
pdm==2.16.1
pdm==2.17.1
pre-commit==3.7.1
wheel==0.43.0

0 comments on commit e9c1969

Please sign in to comment.