33 make pdf
44
55install :
6- poetry install -vvv
6+ pip install -r requirements.txt
77
88clean :
99 cd book; rm -rf \
@@ -13,20 +13,20 @@ clean:
1313 _build .ipynb_checkpoints
1414
1515html :
16- poetry run jupyter-book build book --builder html
16+ jupyter-book build book --builder html
1717
1818linkcheck :
19- poetry run jupyter-book build book --builder linkcheck
19+ jupyter-book build book --builder linkcheck
2020
2121pdf : book/* -* .ipynb
22- poetry run jupyter-book build book --builder pdflatex
22+ jupyter-book build book --builder pdflatex
2323
2424nbval :
2525 @echo " Testing all chapters (apart from 18) with --nbval"
26- poetry run pytest -v --nbval book --sanitize-with book/static/nbval_sanitize.cfg \
26+ pytest -v --nbval book --sanitize-with book/static/nbval_sanitize.cfg \
2727 --ignore=book/18-environments.ipynb --ignore=book/_build
2828 @echo " Testing chapter 18 with --nbval-lax"
29- poetry run pytest -v --nbval-lax book/18-environments.ipynb
29+ pytest -v --nbval-lax book/18-environments.ipynb
3030
3131
3232nbval-native :
@@ -51,16 +51,8 @@ docker-build:
5151docker-build-nocache :
5252 docker build -t python4compscience2 --no-cache .
5353
54- # Here we only bind the required directories and files into the docker container
55- # at runtime to avoid potential conflicts with local files
56-
5754define DOCKER_RUN
58- docker run --workdir=/io \
59- -v $(CURDIR ) /book:/io/book \
60- -v $(CURDIR ) /Makefile:/io/Makefile \
61- -v $(CURDIR ) /poetry.lock:/io/poetry.lock \
62- -v $(CURDIR ) /pyproject.toml:/io/pyproject.toml \
63- python4compscience
55+ docker run --rm -v $(CURDIR ) :/io python4compscience
6456endef
6557
6658docker-bash :
0 commit comments