Skip to content

Commit 0766c3b

Browse files
committed
install the optional deps as a separate feature
1 parent 281d47a commit 0766c3b

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

pixi.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,11 @@ xarray = "*"
111111
[tool.pixi.pypi-dependencies]
112112
pint-xarray = { path = ".", editable = true }
113113

114+
[tool.pixi.feature.optional-deps.dependencies]
115+
dask = "*"
116+
scipy = "*"
117+
bottleneck = "*"
118+
114119
[tool.pixi.feature.tests.dependencies]
115120
pytest = ">=8"
116121
pytest-cov = "*"
@@ -183,11 +188,11 @@ pooch = ">=1.8.2,<2"
183188
netcdf4 = ">=1.7.2,<2"
184189

185190
[tool.pixi.environments]
186-
tests = ["tests"]
191+
tests = ["optional-deps", "tests"]
187192
nightly = { features = ["tests", "nightly"], no-default-feature = true }
188193
docs = ["docs"]
189-
tests-py311 = ["tests", "tests-py311"]
190-
tests-py312 = ["tests", "tests-py312"]
191-
tests-py313 = ["tests", "tests-py313"]
192-
doctests = ["tests", "tests-py313"]
193-
dev = ["tests", "dev"]
194+
tests-py311 = ["optional-deps", "tests", "tests-py311"]
195+
tests-py312 = ["optional-deps", "tests", "tests-py312"]
196+
tests-py313 = ["optional-deps", "tests", "tests-py313"]
197+
doctests = ["optional-deps", "tests", "tests-py313"]
198+
dev = ["optional-deps", "tests", "dev"]

0 commit comments

Comments
 (0)