Skip to content

Commit 208a95b

Browse files
authored
Merge pull request #408 from h-mayorquin/add_pep_735_dependency_groups
Migrate test and docs extras to PEP 735 dependency groups
2 parents 32e54b7 + 4d26ab0 commit 208a95b

File tree

4 files changed

+21
-13
lines changed

4 files changed

+21
-13
lines changed

.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

.readthedocs.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
version: 2
22

33
build:
4-
os: ubuntu-20.04
4+
os: ubuntu-24.04
55
tools:
66
python: "3.10"
7+
jobs:
8+
install:
9+
- pip install -U pip
10+
- pip install .
11+
- pip install --group docs
712

813
sphinx:
914
configuration: doc/conf.py
10-
11-
python:
12-
install:
13-
- method: pip
14-
path: .
15-
extra_requirements:
16-
- docs

pyproject.toml

Lines changed: 11 additions & 3 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,18 +47,26 @@ 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 = [
5454
"pillow",
5555
"sphinx-gallery",
5656
"sphinx_rtd_theme",
57-
"matplotlib==3.2.2",
57+
"matplotlib",
5858
"scipy",
5959
"pandas",
6060
]
6161

62+
dev = [
63+
{include-group = "test"},
64+
{include-group = "docs"},
65+
"pre-commit",
66+
"tqdm", # used in resources/generate_cambridgeneurotech_library.py
67+
"shapely", # used in resources/generate_cambridgeneurotech_library.py
68+
]
69+
6270
[tool.pytest.ini_options]
6371
markers = [
6472
"library",

0 commit comments

Comments
 (0)