forked from SparkPost/python-sparkpost
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (26 loc) · 989 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
.PHONY: analysis all build clean docs docs-install docs-open install release release-test test venv
all: clean venv install
venv:
virtualenv venv
install: venv
. venv/bin/activate; pip install -r dev-requirements.txt
. venv/bin/activate; pip install -e .
analysis:
. venv/bin/activate; flake8 sparkpost test
test: analysis
. venv/bin/activate; py.test --cov-report term-missing --cov-report html --cov sparkpost test/
docs-install:
. venv/bin/activate; pip install -r docs/requirements.txt
docs:
. venv/bin/activate; cd docs && make html
docs-open: docs
. venv/bin/activate; open docs/_build/html/index.html
release: install
. venv/bin/activate; python setup.py sdist bdist_wheel; twine upload -r pypi dist/*
release-test: install
. venv/bin/activate; python setup.py sdist bdist_wheel; twine upload -r test dist/*
build: install
. venv/bin/activate; python setup.py sdist
. venv/bin/activate; python setup.py bdist_wheel
clean:
rm -rf venv build dist *.egg-info