| find googleapiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202 |
| APP_ENGINE_PATH=../google_appengine |
| find tests -name "test_*.py" | xargs --max-args=1 coverage run -a runtests.py |
| python samples-index.py > ../google-api-python-client.wiki/SampleApps.wiki |
| cd snapshot; python setup.py clean |
| cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal |
| cd snapshot; tar czf google-api-python-client-samples-$(shell python setup.py --version).tar.gz samples |
| cd snapshot; zip -r google-api-python-client-samples-$(shell python setup.py --version).zip samples |
| @echo "This target will upload a new release to PyPi and code.google.com hosting." |
| @echo "Are you sure you want to proceed? (yes/no)" |
| @read yn; if [ yes -ne $(yn) ]; then exit 1; fi |
| cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal |
| cd snapshot; twine upload dist/* |