forked from WebexCommunity/WebexPythonSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
90 lines (66 loc) · 1.51 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
SHELL=/bin/bash
# Build recipes
.PHONY : build
build : tests docs buildpackage
$(MAKE) clean
.PHONY : buildpackage
buildpackage : setup.py
python setup.py sdist
.PHONY : docs
docs : docs/Makefile
cd docs/ && $(MAKE) html
# Local project directory and environment management recipes
.PHONY : init
init : requirements.txt
pip install -r requirements.txt
.PHONY : update
update : clean-venv init versioneer.py
rm versioneer.py
versioneer install
# Local testing recipes
.PHONY : tests
tests: toxtest lint ;
.PHONY : ci
ci :
pytest -m "not ratelimit"
.PHONY : toxtest
toxtest : local/environment.sh tox.ini
source local/environment.sh && tox
.PHONY : pytest
pytest : local/environment.sh
source local/environment.sh && pytest -m "not ratelimit"
.PHONY : pytest-rate-limit
pytest-rate-limit : local/environment.sh
source local/environment.sh && pytest -m "ratelimit"
.PHONY : lint
lint :
flake8 ciscosparkapi
# Git recipes
.PHONY : push
push :
git push origin
git push origin --tags
# Cleaning recipes
.PHONY : clean
clean : cleanbuild cleandocs cleanpytest cleantox ;
.PHONY : cleanbuild
cleanbuild :
rm -rf ./ciscosparkapi.egg-info/
rm -rf ./__pycache__/
.PHONY : cleandocs
cleandocs :
rm -rf ./docs/_build/*
.PHONY : cleantox
cleantox : cleanpytest
rm -rf ./.tox/
.PHONY : cleanpytest
cleanpytest :
rm -rf ./.cache/
.PHONY : clean-all
clean-all : clean clean-dist ;
.PHONY : clean-dist
clean-dist :
rm -rf ./dist/*
.PHONY : clean-venv
clean-venv :
pip freeze | grep -v "^-e" | xargs pip uninstall -y