MaT1g3R | 5d9e649 | 2019-07-27 08:47:46 -0400 | [diff] [blame] | 1 | .PHONY: tests |
| 2 | |
Joe Gregorio | e202d21 | 2009-07-16 14:57:52 -0400 | [diff] [blame] | 3 | tests: |
Joe Gregorio | 62b1798 | 2012-03-02 08:10:44 -0800 | [diff] [blame] | 4 | -cd python2 && python2.4 httplib2test.py |
Joe Gregorio | 1b828b5 | 2011-02-13 10:42:38 -0500 | [diff] [blame] | 5 | -cd python2 && python2.5 httplib2test.py |
Joe Gregorio | 1124805 | 2012-11-12 13:08:04 -0500 | [diff] [blame] | 6 | -cd python2 && python2.6 httplib2test.py |
Joe Gregorio | 0197ec8 | 2014-03-06 14:56:29 -0500 | [diff] [blame] | 7 | -cd python2 && python2.6 httplib2test_appengine.py |
Joe Gregorio | 3b089c9 | 2012-04-17 12:40:39 -0400 | [diff] [blame] | 8 | cd python2 && python2.7 httplib2test.py |
| 9 | cd python2 && python2.7 httplib2test_appengine.py |
Alex Yu | 89b79a5 | 2018-07-25 19:49:41 -0400 | [diff] [blame] | 10 | cd python3 && python3 httplib2test.py |
Joe Gregorio | 68cd898 | 2009-08-04 13:41:44 -0400 | [diff] [blame] | 11 | |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 12 | VERSION = $(shell python setup.py --version) |
Joe Gregorio | 130d32d | 2011-06-23 15:41:24 -0400 | [diff] [blame] | 13 | INLINE_VERSION = $(shell cd python2; python -c "import httplib2;print httplib2.__version__") |
Alex Yu | 89b79a5 | 2018-07-25 19:49:41 -0400 | [diff] [blame] | 14 | INLINE_VERSION_3 = $(shell cd python3; ~/bin/python3 -c "import httplib2;print(httplib2.__version__)") |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 15 | DST = dist/httplib2-$(VERSION) |
Joe Gregorio | 25dffef | 2009-12-24 10:06:02 -0500 | [diff] [blame] | 16 | |
jcgregorio | 2d66d4f | 2006-02-07 05:34:14 +0000 | [diff] [blame] | 17 | release: |
Joe Gregorio | 43c9852 | 2012-03-02 08:37:22 -0800 | [diff] [blame] | 18 | echo $(INLINE_VERSION_3) |
| 19 | echo $(INLINE_VERSION) |
| 20 | # Check for version number mismatch |
| 21 | if [ $(VERSION) -ne $(INLINE_VERSION_3) ]; then exit 1; fi |
| 22 | if [ $(VERSION) -ne $(INLINE_VERSION) ]; then exit 1; fi |
| 23 | |
Joe Gregorio | 843fe95 | 2009-12-28 13:02:42 -0500 | [diff] [blame] | 24 | -find . -name "*.pyc" | xargs rm |
| 25 | -find . -name "*.orig" | xargs rm |
| 26 | -rm -rf python2/.cache |
| 27 | -rm -rf python3/.cache |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 28 | -mkdir dist |
| 29 | -rm -rf dist/httplib2-$(VERSION) |
| 30 | -rm dist/httplib2-$(VERSION).tar.gz |
| 31 | -rm dist/httplib2-$(VERSION).zip |
| 32 | -mkdir dist/httplib2-$(VERSION) |
| 33 | cp -r python2 $(DST) |
| 34 | cp -r python3 $(DST) |
Joe Gregorio | dfb0d4a | 2014-04-14 10:13:02 -0400 | [diff] [blame] | 35 | cp setup.py README.md MANIFEST.in CHANGELOG $(DST) |
Joe Gregorio | 16db63a | 2009-12-24 09:51:30 -0500 | [diff] [blame] | 36 | cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION) |
| 37 | cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION) |
Joe Gregorio | c0b0ba1 | 2012-03-02 12:12:08 -0800 | [diff] [blame] | 38 | cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip upload |
Joe Gregorio | 6c50d6a | 2011-06-13 14:41:16 -0400 | [diff] [blame] | 39 | wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py |
| 40 | python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz |
| 41 | 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] | 42 | |
Joe Gregorio | a99e87f | 2011-11-14 12:35:44 -0500 | [diff] [blame] | 43 | docs: |
| 44 | pudge -v -f --modules=httplib2 --dest=build/doc |