forked from LionelDarras/PyVantagePro
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
40 lines (29 loc) · 824 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
SHELL := /bin/bash
# these files should pass pyflakes
# exclude ./env/, which may contain virtualenv packages
PYFLAKES_WHITELIST=$(shell find . -name "*.py" ! -path "./docs/*" \
! -path "./.tox/*" ! -path "./env/*" \
! -path "./pyvantagepro/__init__.py" \
! -path "./pyvantagepro/compat.py")
env:
rm ./env -fr
virtualenv ./env
/bin/bash -c 'source ./env/bin/activate ; pip install pep8 ; \
pip install pyflakes ; \
pip install hg+https://bitbucket.org/birkenfeld/sphinx ; \
pip install detox ; pip install -e . '
test:
detox
pyflakes:
pyflakes ${PYFLAKES_WHITELIST}
pep:
pep8 --first pyvantagepro
doc:
cd docs; make html
clean:
git clean -Xfd
dist:
python setup.py sdist
upload:
python setup.py sdist upload
.PHONY: dist clean env