-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
Makefile
24 lines (16 loc) · 609 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PROJECT_NAME = ThinkBayes2
PYTHON_VERSION = 3.10
PYTHON_INTERPRETER = python
create_environment:
conda create -y --name $(PROJECT_NAME) python=$(PYTHON_VERSION) pymc
@echo ">>> conda env created. Activate with:\nconda activate $(PROJECT_NAME)"
requirements:
$(PYTHON_INTERPRETER) -m pip install -U pip setuptools wheel
$(PYTHON_INTERPRETER) -m pip install -r requirements.txt
## Delete all compiled Python files
clean:
find . -type f -name "*.py[co]" -delete
find . -type d -name "__pycache__" -delete
tests:
cd soln; pytest --nbmake chap0[1-9].ipynb
cd soln; pytest --nbmake chap1[0-8].ipynb