-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathMakefile
47 lines (33 loc) · 950 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
44
45
46
47
.PHONY: venv test clean build dist
SHELL := bash
venv:
uv venv venv &&\
. venv/bin/activate &&\
uv pip install -r requirements-dev.txt -e .
venv-test-unit:
uv venv venv &&\
. venv/bin/activate &&\
uv pip install -r requirements-dev.txt -e .
install-local:
uv 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/ dist/ ./*.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 utils/insta/regenerate.py
example-inspect:
python utils/example/example_inspection.py
mkdocs-index:
python utils/mkdocs_gen.py generate-index
regenerate: regenerate-insta-load mkdocs-index