forked from lynx-family/habitat
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 633 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 633 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
SHELL = bash
all: install_dev isort isort_check lint test
check: install_dev isort_check lint test clean
install_dev:
@pip install -e .[dev] 2>&1
isort:
@isort -s venv -s venv_py -s .tox -s tools -rc --atomic .
isort_check:
@isort -rc -s venv -s venv_py -s .tox -s tools -c .
lint:
@flake8
test:
@tox
clean:
@rm -rf .pytest_cache .tox habitat.egg-info
@rm -rf tests/*.pyc tests/__pycache__ build dist
package:
@python3 setup.py sdist
@pex -P core -r requirements.txt -f dist -e core.main -o hab.pex --python-shebang='python3' --sh-boot
.IGNORE: install_dev
.PHONY: all check install_dev isort isort_check lint test