-
-
Notifications
You must be signed in to change notification settings - Fork 124
/
Makefile
49 lines (39 loc) · 1.08 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
#red:=$(shell tput setaf 1)
#reset:=$(shell tput sgr0)
init:
pip install -r requirements.txt
clean:
rm -rf *.pyc
rm -rf dist
rm -rf build
rm -rf __pycache__
rm -rf arlo.egg-info
doc:
#pydoc -w ../arlo/arlo.py
#mv arlo.html arlo_api_doc.md
#git add arlo_api_doc.md
#pdoc --overwrite --html --html-no-source --html-dir docs arlo.py
pdoc -f --html -c show_source_code=False --output-dir docs arlo.py
sed -i'.bak' 's/#sidebar{width:30%}#content{width:70%;/#sidebar{width:45%}#content{width:55%;/g' docs/arlo.html
rm docs/arlo.html.bak
python3 dev/html2text.py docs/arlo.html > docs/README.md
git add docs/*
rev:
python3 dev/rev.py setup.py
git add setup.py
commit:
ifndef message
$(error "Error: commit message required. Usage: make $(MAKECMDGOALS) message='<your commit message here>'")
endif
git add Makefile
git add dev/*
git add arlo.py
git add request.py
git add eventstream.py
git add requirements.txt
git commit -m "$(message)"
git push
release: clean rev doc commit
python3 setup.py sdist
python3 setup.py bdist_wheel --universal
twine upload --skip-existing dist/*