blob: a4b03289a72638753240f0b5e7e6e506f3a5e290 [file] [log] [blame]
Joe Gregorio58b95942010-12-09 15:04:29 -05001pep8:
John Asmuth864311d2014-04-24 15:46:08 -04002 find googleapiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202
Joe Gregorioba9ea7f2010-08-19 15:49:04 -04003
Joe Gregorio8b4c1732011-12-06 11:28:29 -05004APP_ENGINE_PATH=../google_appengine
5
Joe Gregorio58b95942010-12-09 15:04:29 -05006test:
Ali Afshar02b5f3f2012-09-06 08:43:10 -07007 tox
Joe Gregorio08cdcb82012-03-14 00:09:33 -04008
9.PHONY: coverage
10coverage:
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
Joe Gregorio9ce4b622011-02-17 15:32:11 -050016.PHONY: docs
17docs:
John Asmuth864311d2014-04-24 15:46:08 -040018 cd docs; ./build
19 mkdir -p docs/dyn
Joe Gregorioafc45f22011-02-20 16:11:28 -050020 python describe.py
Joe Gregorio9d56b5a2012-03-30 09:21:26 -040021
22.PHONY: wiki
23wiki:
24 python samples-index.py > ../google-api-python-client.wiki/SampleApps.wiki
Joe Gregorio6429bf62011-03-01 22:53:21 -080025
26.PHONY: prerelease
John Asmuth864311d2014-04-24 15:46:08 -040027prerelease:
Joe Gregoriof0edebc2012-08-29 12:33:05 -040028 -rm -rf dist/
Joe Gregoriob17c7632011-04-05 01:31:55 -040029 -sudo rm -rf dist/
Joe Gregoriof0edebc2012-08-29 12:33:05 -040030 -rm -rf snapshot/
Joe Gregoriob17c7632011-04-05 01:31:55 -040031 -sudo rm -rf snapshot/
Joe Gregorio79daca02013-03-29 16:25:52 -040032 python expandsymlinks.py
Joe Gregoriob17c7632011-04-05 01:31:55 -040033 cd snapshot; python setup.py clean
Takashi Matsuo8889c4d2015-09-11 14:26:19 -070034 cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal
Joe Gregorio46675d22012-06-20 12:15:24 -040035 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
Joe Gregorio6429bf62011-03-01 22:53:21 -080038
39.PHONY: release
40release: prerelease
Joe Gregorio93841702011-03-02 16:12:05 -080041 @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)"
Joe Gregorioece1da32012-03-02 13:33:09 -080043 @read yn; if [ yes -ne $(yn) ]; then exit 1; fi
Joe Gregorio93841702011-03-02 16:12:05 -080044 @echo "Here we go..."
Takashi Matsuo8889c4d2015-09-11 14:26:19 -070045 cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal
46 cd snapshot; twine upload dist/*