Skip to content

Commit 0823c40

Browse files
committed
fix: migrate dev/test/docs tooling from Poetry extras to dependency groups
Fixes #1097 — fresh clone setup fails because 'poetry install --extras dev' does not reliably install dev tools like pytest-cases. Changes: - pyproject.toml: move dev/test/docs deps from [tool.poetry.dependencies] + [tool.poetry.extras] into proper Poetry dependency groups ([tool.poetry.group.dev/test/docs.dependencies]) - .github/actions/setup-python/action.yaml: use '--with dev,test,docs' instead of '--extras dev' - CONTRIBUTING.md: update install command and add note about groups - poetry.lock: regenerated for new group structure
1 parent eae786e commit 0823c40

4 files changed

Lines changed: 169 additions & 253 deletions

File tree

.github/actions/setup-python/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ runs:
1919
shell: bash
2020
run: |
2121
poetry env use ${{ inputs.python-version }}
22-
poetry install --extras dev
22+
poetry install --with dev,test,docs

CONTRIBUTING.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ Both of these can be installed using your distribution's package manager or [Hom
5252

5353
```bash
5454
poetry env use 3.12
55-
poetry install --extras dev
55+
poetry install --with dev,test,docs
5656
```
5757

58+
This installs the runtime dependencies along with the `dev`, `test`, and `docs`
59+
[dependency groups](https://python-poetry.org/docs/managing-dependencies/#dependency-groups).
60+
If you only need to run tests, `poetry install --with test` is sufficient.
61+
5862
**Recommended**: Use `poetry run` to run commands inside the virtual environment:
5963

6064
```bash

0 commit comments

Comments
 (0)