Skip to content

Commit 2637f02

Browse files
committed
Migrate test and docs extras to PEP 735 dependency groups
1 parent 877d136 commit 2637f02

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/full_tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ jobs:
2828
- name: Install package
2929
run: |
3030
python -m pip install --upgrade pip
31-
pip install .[test]
31+
pip install .
32+
pip install --group test
3233
- name: Pytest
3334
run: |
3435
pytest -m "not library" -v

.github/workflows/full_tests_codecov.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ jobs:
2020
- name: Install package
2121
run: |
2222
python -m pip install --upgrade pip
23-
pip install .[test]
23+
pip install .
24+
pip install --group test
2425
- name: Pytest
2526
run: |
2627
pytest --cov=probeinterface --cov-report xml:./coverage.xml

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ build-backend = "hatchling.build"
3737
[tool.hatch.build]
3838
sources = ["src"]
3939

40-
[project.optional-dependencies]
40+
[dependency-groups]
4141

4242
test = [
4343
"jsonschema",
@@ -47,7 +47,7 @@ test = [
4747
"scipy",
4848
"pandas",
4949
"h5py",
50-
"zarr>=2.16.0,<3.0.0"
50+
"zarr>=2.16.0,<3.0.0",
5151
]
5252

5353
docs = [

0 commit comments

Comments
 (0)