Skip to content

Commit 89e5e41

Browse files
committed
create an optional dependency group for wk-libs examples
1 parent b246338 commit 89e5e41

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ jobs:
163163
- name: Install dependencies
164164
run: |
165165
pip install -r ../requirements.txt
166-
poetry install --extras all
166+
poetry install --extras all --with examples
167167
168168
- name: Check formatting
169169
if: ${{ matrix.group == 1 && matrix.python-version == '3.11' }}

webknossos/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ pip install webknossos
3737

3838
## Examples
3939
See the [examples folder](examples) or the [the documentation](https://docs.webknossos.org/webknossos-py).
40+
The dependencies for the examples are not installed by default. Use `poetry install --with examples` to install them.
4041

4142
## Contributions & Development
4243
Please see the [respective documentation page](https://docs.webknossos.org/webknossos-py/development.html).

webknossos/pyproject.toml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,6 @@ psutil = "^5.6.7"
4646
python-dateutil = "^2.8.0"
4747
python-dotenv = "^0.19.0"
4848
rich = "^10.9.0"
49-
scikit-image = "^0.21.0"
50-
scikit-learn = "^1.0.1"
5149
scipy = "^1.9.0"
5250
typer = {extras = ["all"], version = "^0.9.0"}
5351
typing-extensions = "^4.0"
@@ -73,7 +71,8 @@ bioformats = ["pims","JPype1"]
7371
czi = ["pims","pylibCZIrw"]
7472
all = ["pims","tifffile","imagecodecs","JPype1","pylibCZIrw"]
7573

76-
[tool.poetry.dev-dependencies]
74+
[tool.poetry.group.dev.dependencies]
75+
optional = true
7776
dask = { version = "^2023.9.1", python = ">=3.9", extras = ["distributed"] }
7877
hypothesis = "^6.35.0"
7978
icecream = "^2.1.1"
@@ -90,12 +89,17 @@ pytest-timeout = "^2.1.0"
9089
pytest-timestamper = "^0.0.9"
9190
types-python-dateutil = "^0.1.6"
9291
ruff = "^0.3.2"
92+
93+
[tool.poetry.group.examples.dependencies]
9394
# packages for examples:
95+
optional = true
9496
fastremap = "^1.13.3"
9597
pandas = "^1.3.4"
9698
pooch = "^1.5.2"
9799
s3fs = "^2023.9.0"
98100
tabulate = "^0.8.9"
101+
scikit-learn = "^1.0.1"
102+
scikit-image = "^0.21.0"
99103

100104
[[tool.poetry.source]]
101105
name = "PyPI"

0 commit comments

Comments
 (0)