Joe Gregorio | e202d21 | 2009-07-16 14:57:52 -0400 | [diff] [blame] | 1 | tests: |
Joe Gregorio | 732b11f | 2011-06-07 15:44:51 -0400 | [diff] [blame] | 2 | cd python2 && python2.4 httplib2test.py |
Joe Gregorio | 1b828b5 | 2011-02-13 10:42:38 -0500 | [diff] [blame] | 3 | -cd python2 && python2.5 httplib2test.py |
Joe Gregorio | 732b11f | 2011-06-07 15:44:51 -0400 | [diff] [blame] | 4 | cd python2 && python2.6 httplib2test.py |
Joe Gregorio | 5a4889c | 2011-06-22 16:43:39 -0400 | [diff] [blame] | 5 | cd python2 && python2.6 httplib2test_appengine.py |
Joe Gregorio | c9f35e6 | 2011-06-16 10:06:12 -0400 | [diff] [blame] | 6 | cd python2 && python2.7 httplib2test.py |
Joe Gregorio | 5a4889c | 2011-06-22 16:43:39 -0400 | [diff] [blame] | 7 | cd python2 && python2.7 httplib2test_appengine.py |
Joe Gregorio | 732b11f | 2011-06-07 15:44:51 -0400 | [diff] [blame] | 8 | cd python3 && python3.2 httplib2test.py |
Joe Gregorio | 68cd898 | 2009-08-04 13:41:44 -0400 | [diff] [blame] | 9 | |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 10 | VERSION = $(shell python setup.py --version) |
Joe Gregorio | 130d32d | 2011-06-23 15:41:24 -0400 | [diff] [blame] | 11 | INLINE_VERSION = $(shell cd python2; python -c "import httplib2;print httplib2.__version__") |
| 12 | INLINE_VERSION_3 = $(shell cd python3; python3.2 -c "import httplib2;print(httplib2.__version__)") |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 13 | DST = dist/httplib2-$(VERSION) |
Joe Gregorio | 25dffef | 2009-12-24 10:06:02 -0500 | [diff] [blame] | 14 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 15 | release: |
Joe Gregorio | 130d32d | 2011-06-23 15:41:24 -0400 | [diff] [blame] | 16 | [ "$(VERSION)" == "$(INLINE_VERSION)" ] # Check for version number mismatch |
| 17 | [ "$(VERSION)" == "$(INLINE_VERSION_3)" ] # Check for version number mismatch |
Joe Gregorio | 843fe95 | 2009-12-28 13:02:42 -0500 | [diff] [blame] | 18 | -find . -name "*.pyc" | xargs rm |
| 19 | -find . -name "*.orig" | xargs rm |
| 20 | -rm -rf python2/.cache |
| 21 | -rm -rf python3/.cache |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 22 | -mkdir dist |
| 23 | -rm -rf dist/httplib2-$(VERSION) |
| 24 | -rm dist/httplib2-$(VERSION).tar.gz |
| 25 | -rm dist/httplib2-$(VERSION).zip |
| 26 | -mkdir dist/httplib2-$(VERSION) |
| 27 | cp -r python2 $(DST) |
| 28 | cp -r python3 $(DST) |
| 29 | cp setup.py README MANIFEST CHANGELOG $(DST) |
| 30 | cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION) |
| 31 | cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION) |
Joe Gregorio | e0a3993 | 2011-06-13 14:47:34 -0400 | [diff] [blame] | 32 | python setup.py register |
Joe Gregorio | 6c50d6a | 2011-06-13 14:41:16 -0400 | [diff] [blame] | 33 | wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py |
| 34 | python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz |
| 35 | python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.zip |
Joe Gregorio | e34c25d | 2011-06-16 10:08:15 -0400 | [diff] [blame] | 36 | |
| 37 | doc: |
| 38 | #pudge -v -f --modules=httplib2 --dest=build/doc |