Skip to content

Commit

Permalink
Merge branch 'main' into pdm217-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
sigma67 committed Jul 21, 2024
2 parents ccb3185 + fa2d929 commit 1b95198
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

permissions:
id-token: write # This is required for requesting the JWT
contents: read
contents: write

jobs:
deploy:
Expand All @@ -15,14 +15,17 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 'lts/*'

- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Set up Python
uses: actions/setup-python@v5
with:
Expand Down
9 changes: 7 additions & 2 deletions doc/src/plugins/backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ To set it up, a few configuration steps are required.
Lockfile configuration
======================

Your lockfile must be configured with the ``include_metadata`` strategy (``pdm>=2.11``) and include locks for the
optional-dependencies groups you want to publish locked.
Your lockfile must be configured with the ``inherit_metadata`` strategy (``pdm>=2.11``) and include locks for the optional-dependencies groups you want to publish locked.

.. note::
When running ``pdm lock``, ensure you select the appropriate dependency groups.

For instance, you can use ``pdm lock -G :all`` and then verify that the ``[metadata]`` section of the ``pdm.lock`` file includes the desired groups. For more details, refer to the ``Dependencies Selection:`` section in the ``pdm lock --help`` output.

buildsystem configuration
=========================
Expand Down Expand Up @@ -51,6 +55,7 @@ By default, the default group and all optional groups will be locked, but you ca

.. code-block:: toml
:caption: pyproject.toml
# for pdm-backend
[tool.pdm.build]
locked = true
Expand Down

0 comments on commit 1b95198

Please sign in to comment.