blob: e88e4d150e3c04766bd75243de2a014bf07fcaa2 [file] [log] [blame]
Joe Gregorio58b95942010-12-09 15:04:29 -05001pep8:
Joe Gregorio0fb19e12011-02-22 07:53:24 -05002 find apiclient samples -name "*.py" | xargs pep8 --ignore=E111,E202
Joe Gregorioba9ea7f2010-08-19 15:49:04 -04003
Joe Gregorio58b95942010-12-09 15:04:29 -05004test:
Joe Gregorio0fb19e12011-02-22 07:53:24 -05005 python runtests.py tests
Joe Gregorio9ce4b622011-02-17 15:32:11 -05006
7.PHONY: docs
8docs:
9 cd docs; ./build.sh
Joe Gregorioafc45f22011-02-20 16:11:28 -050010 python describe.py
Joe Gregorio6429bf62011-03-01 22:53:21 -080011
12.PHONY: prerelease
13prerelease:
Joe Gregorio01b92702011-03-23 21:44:42 -040014 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 Gregoriob17c7632011-04-05 01:31:55 -040017 -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 Gregorio6429bf62011-03-01 22:53:21 -080022
23.PHONY: release
24release: prerelease
Joe Gregorio93841702011-03-02 16:12:05 -080025 @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 Gregoriob17c7632011-04-05 01:31:55 -040029 cd snapshot; python setup.py sdist --formats=gztar,zip register upload
Joe Gregorio6429bf62011-03-01 22:53:21 -080030 wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
Joe Gregoriob17c7632011-04-05 01:31:55 -040031 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