-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
43 lines (30 loc) · 984 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
repo=$(shell basename $(CURDIR))
.PHONY: test coverage-report jupyter
jupyter:
@echo "Installing kernel $(repo) in jupyter"
-yes | jupyter kernelspec uninstall $(repo)
poetry run python -m ipykernel install --user --name $(repo)
install-poetry:
@bash install-poetry.sh
install: install-poetry
@echo "Installing py_isx..."
poetry check --lock || poetry lock
poetry install --verbose
install-test: install-poetry
@echo "Installing py_isx & dependencies for testing..."
poetry check --lock || poetry lock
poetry install --extras "test" --verbose
test: install-test
poetry run pytest -sx --failed-first
test-pip:
@echo "Testing code installed on base env using pip..."
pytest -s
serve: install-poetry
@echo "Serving docs locally..."
poetry run mkdocs serve
setup.py: pyproject.toml README.md
poetry run poetry2setup > setup.py
deploy: install-poetry
@echo "Deploying documentation to GitHub pages..."
poetry run mkdocs build
poetry run mkdocs gh-deploy