1 pep8: 2 find googleapiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202 3 4 APP_ENGINE_PATH=../google_appengine 5 6 test: 7 tox 8 9 .PHONY: coverage 10 coverage: 11 coverage erase 12 find tests -name "test_*.py" | xargs --max-args=1 coverage run -a runtests.py 13 coverage report 14 coverage html 15 16 .PHONY: docs 17 docs: 18 cd docs; ./build 19 mkdir -p docs/dyn 20 python describe.py 21 22 .PHONY: wiki 23 wiki: 24 python samples-index.py > ../google-api-python-client.wiki/SampleApps.wiki 25 26 .PHONY: prerelease 27 prerelease: 28 -rm -rf dist/ 29 -sudo rm -rf dist/ 30 -rm -rf snapshot/ 31 -sudo rm -rf snapshot/ 32 python expandsymlinks.py 33 cd snapshot; python setup.py clean 34 cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal 35 cd snapshot; tar czf google-api-python-client-samples-$(shell python setup.py --version).tar.gz samples 36 cd snapshot; zip -r google-api-python-client-samples-$(shell python setup.py --version).zip samples 37 38 39 .PHONY: release 40 release: prerelease 41 @echo "This target will upload a new release to PyPi and code.google.com hosting." 42 @echo "Are you sure you want to proceed? (yes/no)" 43 @read yn; if [ yes -ne $(yn) ]; then exit 1; fi 44 @echo "Here we go..." 45 cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal 46 cd snapshot; twine upload dist/* 47