-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 834 Bytes
/
Makefile
File metadata and controls
40 lines (28 loc) · 834 Bytes
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
SHELL := /bin/bash
build:
pip install -e .
install-dev: clean
pip install -e ".[dev]"
tests:
pytest --cov-config=setup.cfg --cov=auditai --cov-fail-under=65
lint:
flake8 ./auditai
covhtml:
coverage html
open ./htmlcov/index.html
clean:
@rm -Rf *.egg-info .eggs .tox build dist htmlcov .coverage
@find ./ -depth -type d -name __pycache__ -exec rm -Rf {} \;
@find ./ -type f \( -iname \*.pyc -o -iname \*.pyo -o -iname \*~ \) -delete
test-all: tests lint
pubdev: is_newest_version clean
python setup.py bdist_wheel
twine upload --repository testpypi dist/*
is_newest_version:
python auditai/is_newest_version.py
publish: is_newest_version clean
python setup.py bdist_wheel
twine upload --repository pypi dist/*
tox_tests:
tox
.PHONY: build install-dev tests lint coverage covhtml clean test-all pubdev publish