| Joe Gregorio | 58b9594 | 2010-12-09 15:04:29 -0500 | [diff] [blame] | 1 | pep8: | 
| John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 2 | 	find googleapiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202 | 
| Joe Gregorio | ba9ea7f | 2010-08-19 15:49:04 -0400 | [diff] [blame] | 3 |  | 
| Joe Gregorio | 8b4c173 | 2011-12-06 11:28:29 -0500 | [diff] [blame] | 4 | APP_ENGINE_PATH=../google_appengine | 
 | 5 |  | 
| Joe Gregorio | 58b9594 | 2010-12-09 15:04:29 -0500 | [diff] [blame] | 6 | test: | 
| Ali Afshar | 02b5f3f | 2012-09-06 08:43:10 -0700 | [diff] [blame] | 7 | 	tox | 
| Joe Gregorio | 08cdcb8 | 2012-03-14 00:09:33 -0400 | [diff] [blame] | 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 |  | 
| Joe Gregorio | 9ce4b62 | 2011-02-17 15:32:11 -0500 | [diff] [blame] | 16 | .PHONY: docs | 
 | 17 | docs: | 
| John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 18 | 	cd docs; ./build | 
 | 19 | 	mkdir -p docs/dyn | 
| Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 20 | 	python describe.py | 
| Joe Gregorio | 9d56b5a | 2012-03-30 09:21:26 -0400 | [diff] [blame] | 21 |  | 
 | 22 | .PHONY: wiki | 
 | 23 | wiki: | 
 | 24 | 	python samples-index.py > ../google-api-python-client.wiki/SampleApps.wiki | 
| Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 25 |  | 
 | 26 | .PHONY: prerelease | 
| John Asmuth | 864311d | 2014-04-24 15:46:08 -0400 | [diff] [blame] | 27 | prerelease: | 
| Joe Gregorio | f0edebc | 2012-08-29 12:33:05 -0400 | [diff] [blame] | 28 | 	-rm -rf dist/ | 
| Joe Gregorio | b17c763 | 2011-04-05 01:31:55 -0400 | [diff] [blame] | 29 | 	-sudo rm -rf dist/ | 
| Joe Gregorio | f0edebc | 2012-08-29 12:33:05 -0400 | [diff] [blame] | 30 | 	-rm -rf snapshot/ | 
| Joe Gregorio | b17c763 | 2011-04-05 01:31:55 -0400 | [diff] [blame] | 31 | 	-sudo rm -rf snapshot/ | 
| Joe Gregorio | 79daca0 | 2013-03-29 16:25:52 -0400 | [diff] [blame] | 32 | 	python expandsymlinks.py | 
| Joe Gregorio | b17c763 | 2011-04-05 01:31:55 -0400 | [diff] [blame] | 33 | 	cd snapshot; python setup.py clean | 
| Takashi Matsuo | 8889c4d | 2015-09-11 14:26:19 -0700 | [diff] [blame] | 34 | 	cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal | 
| Joe Gregorio | 46675d2 | 2012-06-20 12:15:24 -0400 | [diff] [blame] | 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 |  | 
| Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 38 |  | 
 | 39 | .PHONY: release | 
 | 40 | release: prerelease | 
| Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 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)" | 
| Joe Gregorio | ece1da3 | 2012-03-02 13:33:09 -0800 | [diff] [blame] | 43 | 	@read yn; if [ yes -ne $(yn) ]; then exit 1; fi | 
| Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 44 | 	@echo "Here we go..." | 
| Takashi Matsuo | 8889c4d | 2015-09-11 14:26:19 -0700 | [diff] [blame] | 45 | 	cd snapshot; python setup.py sdist --formats=gztar,zip bdist_wheel --universal | 
 | 46 | 	cd snapshot; twine upload dist/* |