Skip to content

Commit b5d5e05

Browse files
committed
Reorganize base environment into feature
1 parent 9871c42 commit b5d5e05

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

pixi.toml

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ name = "executable-tutorials"
1111
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64", "emscripten-wasm32"]
1212
version = "0.1.0"
1313

14-
[tasks]
14+
[feature.base]
15+
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
16+
17+
[feature.base.tasks]
1518
build = { cmd = [
1619
"sphinx-build",
1720
".", # source directory
@@ -25,29 +28,30 @@ clean = "rm -rf _build/*"
2528
start = "jupyter lab --FileContentsManager.preferred_dir tutorials"
2629
test = "bash ./test.sh"
2730

28-
[activation]
31+
[feature.base.activation]
2932
# Workaround overrides JupyterLab configuration (at the environment level) to
3033
# make double-clicking on a Jupytext Markdown file open that file as a
3134
# notebook. This is important for the development workflow for contributors.
3235
scripts = ["bash {$PIXI_PROJECT_ROOT}/.binder/postBuild"]
3336

34-
[dependencies]
37+
[feature.base.dependencies]
3538
python = ">=3.11"
3639
matplotlib-base = ">=3.9"
37-
#jupyterlab = ">=4.2"
38-
#jupyterlab-myst = ">=2.4"
40+
jupyterlab = ">=4.2"
41+
jupyterlab-myst = ">=2.4"
3942
pytest = ">=8.3.5,<9"
40-
#nbval = ">=0.11.0,<0.12"
41-
#jupytext = ">=1.17.1,<2"
42-
43-
[pypi-dependencies]
44-
#sphinx = ">=8.0.2"
45-
#myst-nb = ">=1.1"
46-
#jupytext = ">=1.16"
47-
#sphinx-book-theme = ">=1.1"
48-
#sphinx-copybutton = ">=0.5"
49-
#sphinx-design = "*"
50-
#pytest-custom_exit_code = "*"
43+
nbval = ">=0.11.0,<0.12"
44+
jupytext = ">=1.17.1,<2"
45+
ipympl = "*"
46+
47+
[feature.base.pypi-dependencies]
48+
sphinx = ">=8.0.2"
49+
myst-nb = ">=1.1"
50+
jupytext = ">=1.16"
51+
sphinx-book-theme = ">=1.1"
52+
sphinx-copybutton = ">=0.5"
53+
sphinx-design = "*"
54+
pytest-custom_exit_code = "*"
5155

5256
[feature.py312]
5357
platforms = ["linux-64", "osx-64", "osx-arm64", "win-64"]
@@ -97,7 +101,8 @@ cmd = "python -m http.server 8000 -d _build/html/jupyterlite/"
97101
depends-on = ["build_wasm"]
98102

99103
[environments]
100-
py312 = ["py312"]
101-
py313 = ["py313"]
104+
default = ["base"]
105+
py312 = ["base", "py312"]
106+
py313 = ["base", "py313"]
102107
jupyterlite-runtime = ["jupyterlite-runtime"]
103108
jupyterlite-host = ["jupyterlite-host"]

0 commit comments

Comments
 (0)