-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
58 lines (45 loc) · 1.34 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
51
52
53
54
55
56
57
58
envdev:
python3 -m venv envdev
envdev/bin/pip install -r requirements/all.txt
envdev/bin/pip install -e .
# -----------------------------------------------------------------------------
check: envdev
envdev/bin/python3 setup.py build_ext --inplace
envdev/bin/pytest --flakes validx
envdev/bin/mypy validx
envdev/bin/mypy tests/typechecking
unittests: T = tests/unittests
unittests: envdev
envdev/bin/python3 setup.py build_ext --inplace
VALIDX_DEV=1 envdev/bin/pytest -c tests/unittests.ini $(T)
benchmarks: envdev
envdev/bin/python3 setup.py build_ext --inplace
envdev/bin/pytest -c tests/benchmarks.ini tests/benchmarks
.PHONY: docs
docs: envdev clean-docs
mkdir -p docs/_build
envdev/bin/sphinx-build -W -b doctest docs docs/_build
envdev/bin/sphinx-build -W -b html docs docs/_build
envdev/bin/pyroma -d .
matrixtests: envdev clean-src
envdev/bin/tox
# -----------------------------------------------------------------------------
clean-env:
rm -rf .tox
rm -rf envdev
clean-build:
rm -rf dist
rm -rf build
rm -rf ValidX.egg-info
clean-src:
find ./validx -name '*.c' -delete
find ./validx -name '*.so' -delete
clean-docs:
rm -rf docs/_build
clean-cache:
rm -rf .mypy_cache
rm -rf .benchmarks
rm -rf .coverage
rm -rf tests/.benchmarks
rm -rf tests/.coverage
clean-all: clean-env clean-build clean-src clean-docs clean-cache