Skip to content

Commit 3d78e00

Browse files
committed
Fix Binder build: replace postBuild with requirements.txt
The mybinder.org build failed with "No environment specification found": repo2docker only treats postBuild as a build step when an environment specification file (requirements.txt, environment.yml, pyproject.toml at the repo root, ...) is also present, and this repo declares dependencies via [tool.poetry], which repo2docker does not recognize as a specification. Use .binder/requirements.txt with a single ".[jupyter]" line instead: it is both the environment specification and the package install, so the separate postBuild hook is no longer needed. Verified that `pip install -r .binder/requirements.txt` in a clean venv installs warpfactory 0.1.0 with ipywidgets.
1 parent 35e1737 commit 3d78e00

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎.binder/postBuild‎

Lines changed: 0 additions & 6 deletions
This file was deleted.

‎.binder/requirements.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# repo2docker environment specification: install the package (with the
2+
# notebook extra) so examples/interactive_explorer.ipynb runs on Binder.
3+
.[jupyter]

0 commit comments

Comments
 (0)