forked from twilio/twilio-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (26 loc) · 873 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
.PHONY: clean venv install analysis test test-install docs docs-install
venv:
virtualenv venv
install: venv
. venv/bin/activate; pip install .
test-install: install
. venv/bin/activate; pip install -r tests/requirements.txt
analysis:
. venv/bin/activate; flake8 --ignore=E123,E126,E128,E501 tests
. venv/bin/activate; flake8 --ignore=F401 twilio
test: analysis
. venv/bin/activate; nosetests
cover:
. venv/bin/activate; nosetests --with-coverage --cover-package=twilio
docs-install:
. venv/bin/activate; pip install -r docs/requirements.txt
docs:
. venv/bin/activate; cd docs && make html
release: test-install
. venv/bin/activate; python setup.py sdist upload
. venv/bin/activate; python setup.py bdist_wheel upload
build: test-install
. venv/bin/activate; python setup.py sdist
. venv/bin/activate; python setup.py bdist_wheel
clean:
rm -rf venv