forked from superannotateai/superannotate-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (35 loc) · 901 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (35 loc) · 901 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
41
42
43
44
45
46
.PHONY: all clean tests stress-tests coverage test_coverage install lint docs dist
PYTHON=python3
PYLINT=pylint
PYTESTS=pytest
COVERAGE=coverage
BROWSER=google-chrome
all: coverage tests
$(PYTHON) setup.py build_ext --inplace
tests:
$(PYTESTS)
stress-tests: AO_TEST_LEVEL=stress
stress-tests: tests
$(PYTESTS)
clean:
rm -rf superannotate.egg-info
rm -rf build
rm -rf dist
rm -rf htmlcov
coverage: test_coverage
test_coverage:
$(COVERAGE) run -m --source=./superannotate/ $(PYTESTS)
$(COVERAGE) html
@echo "\033[95m\n\nCoverage successful! View the output at file://htmlcov/index.html.\n\033[0m"
install:
pip install .
lint:
-$(PYLINT) superannotate/
-$(PYLINT) tests/*
docs:
cd docs && make html
@echo "\033[95m\n\nBuild successful! View the docs homepage at file://docs/build/html/index.html.\n\033[0m"
dist:
-rm -rf dist/*
$(PYTHON) setup.py sdist
twine upload dist/*