forked from banyansecurity/pybanyan
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 818 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
.PHONY: clean virtualenv test docker dist dist-upload
.DEFAULT: dist
clean:
-find . -name '*.py[co]' -delete
virtualenv:
virtualenv --prompt '|> banyan <| ' env
env/bin/pip install -r requirements-dev.txt
env/bin/python setup.py develop
@echo
@echo "VirtualENV Setup Complete. Now run: source env/bin/activate"
@echo
test:
python -m pytest \
-v \
--cov=banyan \
--cov-report=term \
--cov-report=html:coverage-report \
tests/
docker: clean
docker build -t banyan:latest .
tag:
git tag -f `python -c 'from banyan.core.version import get_version; print(get_version())'`
dist: clean
-rm -rf dist/*
python setup.py sdist
python setup.py bdist_wheel
test-upload: dist tag
twine upload -r testpypi dist/*
dist-upload: dist tag
twine upload dist/*
complain::
pylint banyan/
flake8 banyan/