Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use pdm-build-locked #3001

Merged
merged 7 commits into from
Jul 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:

- name: Test Build
run: |
python -m pip install dist/*.whl
python -m pip install "pdm[locked] @ file://$(ls ${GITHUB_WORKSPACE}/dist/*.whl)"
pdm --help

- name: Publish package distributions to PyPI
Expand Down
17 changes: 17 additions & 0 deletions news/3001.feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["pdm-backend"]
requires = ["pdm-backend", "pdm-build-locked"]
build-backend = "pdm.backend"

[project]
Expand Down Expand Up @@ -85,6 +85,7 @@ includes = ["src/pdm"]
source-includes = ["tests", "typings", "CHANGELOG.md", "LICENSE", "README.md", "tox.ini"]
# editables backend doesn't work well with namespace packages
editable-backend = "path"
locked = true

[tool.pdm.scripts]
pre_release = "python tasks/max_versions.py"
Expand Down
Loading