Skip to content

Commit

Permalink
add fragment & test
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jul 8, 2024
1 parent ab0503f commit 89ac92b
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
### DO NOT MERGE
### tests build of pdm with pdm-build-locked

name: Release

on:
pull_request:
branches:
- main

jobs:
release-pypi:
name: release-pypi
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip

- name: Check prerelease
id: check_version
run: |
if [[ "${{ github.ref }}" =~ ^refs/tags/[0-9.]+$ ]]; then
echo "PRERELEASE=false" >> $GITHUB_OUTPUT
else
echo "PRERELEASE=true" >> $GITHUB_OUTPUT
fi
- name: Build artifacts
run: |
pip install .
pdm install --plugins
pdm build
- name: Test Build
run: |
python -m pip install dist/*.whl
pdm --help
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.

0 comments on commit 89ac92b

Please sign in to comment.