forked from amey-sam/MIGRATED-Flask-MailGun
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
61 lines (49 loc) · 1.7 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
PATH := ./redis-git/src:${PATH}
MAILGUN_API_KEY='testtesttest'
help :
@echo "Please use 'make <target>' where <target> is one of"
@echo " clean remove temporary files created by build tools"
@echo " cleanmeta removes all META-* and egg-info/ files created by build tools"
@echo " cleancov remove all files related to coverage reports"
@echo " cleanall all the above + tmp files from development tools"
@echo " dist make a source and wheel distribution"
@echo " venv setup virtual env"
@echo " update_venv install dependancies"
clean :
-rm -f MANIFEST
-rm -rf dist/
-rm -rf build/
cleancov :
-rm -rf htmlcov/
-coverage combine
-coverage erase
cleanmeta :
-rm -rf Flask_Mailgun3.egg-info/
cleanall : clean cleancov cleanmeta
-find . -type f -name "*~" -exec rm -f "{}" \;
-find . -type f -name "*.orig" -exec rm -f "{}" \;
-find . -type f -name "*.rej" -exec rm -f "{}" \;
-find . -type f -name "*.pyc" -exec rm -f "{}" \;
-find . -type f -name "*.parse-index" -exec rm -f "{}" \;
doc :
-pandoc --from=markdown --to=rst --output=README.rst README.md
dist : cleanmeta doc
-pandoc --from=markdown --to=rst --output=README.rst README.md
-python setup.py sdist bdist_wheel
package : dist
-twine upload dist/Flask-Cache-Redis-Cluster-"$(cat Version)".tar.gz
venv :
test -d venv || virtualenv venv;
update_venv : venv requirements.txt
( \
. ./venv/bin/activate; \
pip install -r requirements.txt; \
pip install pylint mock diff_cover coveralls; \
)
test_and_coverage : update_venv
( \
. ./venv/bin/activate; \
coverage run --source=. -m unittest discover; \
coverage xml; \
pylint -f parseable -d | tee pylint.out; \
)