forked from SHI-Labs/NATTEN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1010 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
48
49
50
51
.PHONY: sdist clean uninstall install-deps install test style quality
check_dirs := src tests
all: clean uninstall install
full: clean uninstall install-deps install
sdist:
@echo "Generating source dist"
python3 setup.py sdist
clean:
@echo "Cleaning up"
rm -rf build/
rm -rf dist/
rm -rf natten.egg-info/
rm -rf src/natten/_C.*
rm -rf __pycache__
rm -rf tests/__pycache__
rm -rf src/__pycache__
rm -rf src/natten/__pycache__
rm -rf src/natten.egg*
rm -rf install.out
uninstall:
@echo "Uninstalling NATTEN"
pip uninstall -y natten
install-deps:
@echo "Recognized python bin:"
@which python3
pip install -r requirements.txt
install:
@echo "Installing NATTEN from source"
pip install -e . 2>&1 | tee install.out
test:
@echo "Running unit tests"
python -m unittest discover -v -s ./tests
quality:
@echo "Quality check"
black --check --preview $(check_dirs)
isort --check-only $(check_dirs)
flake8 $(check_dirs)
style:
black --preview $(check_dirs)
isort $(check_dirs)