Joe Gregorio | 58b9594 | 2010-12-09 15:04:29 -0500 | [diff] [blame] | 1 | pep8: |
Joe Gregorio | 0fb19e1 | 2011-02-22 07:53:24 -0500 | [diff] [blame] | 2 | find apiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202 |
Joe Gregorio | ba9ea7f | 2010-08-19 15:49:04 -0400 | [diff] [blame] | 3 | |
Joe Gregorio | 58b9594 | 2010-12-09 15:04:29 -0500 | [diff] [blame] | 4 | test: |
Joe Gregorio | 0fb19e1 | 2011-02-22 07:53:24 -0500 | [diff] [blame] | 5 | python runtests.py tests |
Joe Gregorio | 9ce4b62 | 2011-02-17 15:32:11 -0500 | [diff] [blame] | 6 | |
| 7 | .PHONY: docs |
| 8 | docs: |
| 9 | cd docs; ./build.sh |
Joe Gregorio | afc45f2 | 2011-02-20 16:11:28 -0500 | [diff] [blame] | 10 | python describe.py |
Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 11 | |
| 12 | .PHONY: prerelease |
| 13 | prerelease: |
Joe Gregorio | 01b9270 | 2011-03-23 21:44:42 -0400 | [diff] [blame] | 14 | python2.4 runtests.py tests --exit_on_failure |
| 15 | python2.6 runtests.py tests --exit_on_failure |
| 16 | python2.7 runtests.py tests --exit_on_failure |
Joe Gregorio | b17c763 | 2011-04-05 01:31:55 -0400 | [diff] [blame] | 17 | -sudo rm -rf dist/ |
| 18 | -sudo rm -rf snapshot/ |
| 19 | python expand-symlinks.py |
| 20 | cd snapshot; python setup.py clean |
| 21 | cd snapshot; python setup.py sdist --formats=gztar,zip |
Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 22 | |
| 23 | .PHONY: release |
| 24 | release: prerelease |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 25 | @echo "This target will upload a new release to PyPi and code.google.com hosting." |
| 26 | @echo "Are you sure you want to proceed? (yes/no)" |
| 27 | @read yn; [ "yes" == $$yn ] |
| 28 | @echo "Here we go..." |
Joe Gregorio | b17c763 | 2011-04-05 01:31:55 -0400 | [diff] [blame] | 29 | cd snapshot; python setup.py sdist --formats=gztar,zip register upload |
Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 30 | wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py |
Joe Gregorio | b17c763 | 2011-04-05 01:31:55 -0400 | [diff] [blame] | 31 | python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.tar.gz |
| 32 | python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.zip |