-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
38 lines (30 loc) · 1.12 KB
/
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
build: setup-venv
venv/bin/pip install docopt==0.6.2 python-dateutil==2.2 requests==2.4.3 pyinstaller==2.1 termcolor==1.1.0
venv/bin/pyinstaller deis.spec
chmod +x dist/deis
# Install deis client locally through pip.
install:
pip install .
# Remove the installed copy of the deis client through pip.
uninstall:
pip uninstall -y deis
# Clean up after setup.py droppings.
clean:
rm -rf build/ dist/ *.egg-info
client:
pyinstaller deis.spec
installer: build
@if [ ! -d makeself ]; then git clone -b single-binary https://github.com/deis/makeself.git; fi
PATH=./makeself:$$PATH BINARY=deis makeself.sh --bzip2 --current --nox11 dist \
dist/deis-cli-`grep '__version__\ =\ ' deis.py | cut -d' ' -f3 | tr -d \'`-`go env GOOS`-`go env GOARCH`.run \
"Deis CLI" "echo \
&& echo '\033[0;36mdeis\033[0m is in the current directory. Please' \
&& echo 'move \033[0;36mdeis\033[0m to a directory in your search PATH.' \
&& echo \
&& echo 'See http://docs.deis.io/ for documentation.' \
&& echo"
setup-venv:
@if [ ! -d venv ]; then virtualenv venv; fi
venv/bin/pip install -q flake8==2.2.2
test-style: setup-venv
venv/bin/flake8