mirror of
https://bitbucket.org/myhomie/mycorerepository.git
synced 2025-12-06 09:41:19 +00:00
49 lines
1.0 KiB
Makefile
49 lines
1.0 KiB
Makefile
#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
|
|
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
|
|
python dev/html2text.py docs/arlo.html > docs/README.md
|
|
git add docs/*
|
|
|
|
rev:
|
|
python 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/*
|