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 | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 17 | -rm dist/* |
| 18 | python setup.py clean |
| 19 | python setup.py sdist |
| 20 | |
| 21 | .PHONY: release |
| 22 | release: prerelease |
Joe Gregorio | 9384170 | 2011-03-02 16:12:05 -0800 | [diff] [blame] | 23 | @echo "This target will upload a new release to PyPi and code.google.com hosting." |
| 24 | @echo "Are you sure you want to proceed? (yes/no)" |
| 25 | @read yn; [ "yes" == $$yn ] |
| 26 | @echo "Here we go..." |
Joe Gregorio | 6429bf6 | 2011-03-01 22:53:21 -0800 | [diff] [blame] | 27 | python setup.py sdist register upload |
| 28 | wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py |
| 29 | python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=google-api-python-client dist/*.tar.gz |
| 30 | |