-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathMakefile
50 lines (37 loc) · 1.09 KB
/
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
44
45
46
47
48
49
50
.PHONY: venv test clean build dist
SHELL := bash
venv:
python3 -m venv venv &&\
. venv/bin/activate &&\
pip install --upgrade pip &&\
pip install -r requirements-dev.txt &&\
python -m pip install -e .
venv-test-unit:
python3 -m venv venv &&\
. venv/bin/activate &&\
pip install -r requirements-dev.txt &&\
python -m pip install -e .
install-local:
python -m pip install -e .
test:
python -m coverage run --source wat -m pytest -vv --tb=short -ra --color=yes $(test)
python -m coverage report --show-missing --skip-empty --skip-covered
clean:
rm -rf build/
rm -rf dist/
rm -rf ./*.egg-info
build:
python -m build --sdist --wheel
release: clean build
python -m twine upload -u __token__ dist/*
mkdocs-local:
mkdocs serve
mkdocs-push:
mkdocs gh-deploy --force
# Generate Insta-Load snippet and update it in the docs
regenerate-insta-load:
python wat/inspection/insta/regenerate.py wat/inspection/inspection.py README.md docs/index.md wat/inspection/insta/instaload.py
example-inspect:
python docs/example/example_inspection.py
mkdocs-index:
python docs/mkdocs_gen.py generate-index