Skip to content

Commit a8cf678

Browse files
Merge pull request #1579 from VWS-Python/codex/pep735-dependency-groups
Use PEP 735 dependency groups
2 parents 42af7c0 + 886ae77 commit a8cf678

6 files changed

Lines changed: 54 additions & 61 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343

4444
- name: Run tests
4545
run: |
46-
uv run --extra=dev pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests .
46+
uv run --group=dev pytest -s -vvv --cov-fail-under 100 --cov=src/ --cov=tests .
4747
env:
4848
UV_PYTHON: ${{ matrix.python-version }}
4949
VWS_EMAIL_ADDRESS: ${{ secrets.VWS_EMAIL_ADDRESS }}

.github/workflows/publish-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: sphinx-notes/pages@v3
2222
with:
2323
documentation_path: docs/source
24-
pyproject_extras: dev
24+
pyproject_group: dev
2525
python_version: '3.13'
2626
sphinx_build_options: -W
2727
publish: ${{ github.ref_name == 'main' }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@ jobs:
5353
- name: Generate the GitHub release notes
5454
env:
5555
RELEASE: ${{ steps.calver.outputs.release }}
56-
run: uv run --extra=release towncrier build --draft --version "$RELEASE" >
56+
run: uv run --group=release towncrier build --draft --version "$RELEASE" >
5757
release-notes.md
5858

5959
# Assemble the same fragments into CHANGELOG.rst under a new
6060
# ``$RELEASE`` section and delete the consumed fragment files.
6161
- name: Update the changelog
6262
env:
6363
RELEASE: ${{ steps.calver.outputs.release }}
64-
run: uv run --extra=release towncrier build --yes --version "$RELEASE"
64+
run: uv run --group=release towncrier build --yes --version "$RELEASE"
6565

6666
- uses: stefanzweifel/git-auto-commit-action@v7
6767
id: commit
@@ -95,7 +95,7 @@ jobs:
9595
git fetch --tags
9696
git checkout "$NEW_TAG"
9797
uv build --sdist --wheel --out-dir dist/
98-
uv run --extra=release check-wheel-contents dist/*.whl
98+
uv run --group=release check-wheel-contents dist/*.whl
9999
100100
# We use PyPI trusted publishing rather than a PyPI API token.
101101
# See https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#trusted-publishing.

docs/source/contributing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Install Python dependencies in a virtual environment.
1212

1313
.. code-block:: console
1414
15-
$ pip install --editable '.[dev]'
15+
$ pip install --editable . --group dev
1616
1717
Spell checking requires ``enchant``.
1818
This can be installed on macOS, for example, with `Homebrew`_:
@@ -64,7 +64,7 @@ Run the following commands to build and view documentation locally:
6464

6565
.. code-block:: console
6666
67-
$ uv run --extra=dev sphinx-build -M html docs/source docs/build -W
67+
$ uv run --group=dev sphinx-build -M html docs/source docs/build -W
6868
$ python -c 'import os, webbrowser; webbrowser.open("file://" + os.path.abspath("docs/build/html/index.html"))'
6969
7070
Continuous integration

0 commit comments

Comments
 (0)