Skip to content

Commit ab9dd67

Browse files
PEP 735 compliance: dependency groups (#397)
* PEP 735 compliance: dependency groups Only for development and build time dependencies, not run time depdendencies that are meant to be published with the package. * Forgot to update docs and tests
1 parent e9e3f25 commit ab9dd67

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/run_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Install dependencies
3535
run: |
3636
python -m pip install --upgrade pip setuptools
37-
pip install .[test]
37+
pip install . --group test
3838
pip install ${{ matrix.dependencies }}
3939
- name: Lint with flake8
4040
run: |

docs/development.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Install requirements:
6161

6262
.. code-block:: none
6363
64-
pip install .[test]
64+
pip install . --group test
6565
6666
Run tests (including checks for PEP8 compliance):
6767

@@ -79,7 +79,7 @@ Install requirements:
7979

8080
.. code-block:: none
8181
82-
pip install .[docs]
82+
pip install . --group docs
8383
8484
Build documentation in *HTML* format:
8585

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ libjpeg = [
4747
"pylibjpeg-openjpeg>=2.0.0",
4848
"pylibjpeg>=2.0",
4949
]
50+
51+
[dependency-groups]
5052
test = [
5153
"mypy==1.15.0",
5254
"pytest==8.3.5",

0 commit comments

Comments
 (0)