blob: 723c2064daaef423a950525f077a47ea08d42cc5 [file] [log] [blame]
Joe Gregorioe202d212009-07-16 14:57:52 -04001tests:
Joe Gregorio732b11f2011-06-07 15:44:51 -04002 cd python2 && python2.4 httplib2test.py
Joe Gregorio1b828b52011-02-13 10:42:38 -05003 -cd python2 && python2.5 httplib2test.py
Joe Gregorio732b11f2011-06-07 15:44:51 -04004 cd python2 && python2.6 httplib2test.py
Joe Gregorio5a4889c2011-06-22 16:43:39 -04005 cd python2 && python2.6 httplib2test_appengine.py
Joe Gregorioc9f35e62011-06-16 10:06:12 -04006 cd python2 && python2.7 httplib2test.py
Joe Gregorio5a4889c2011-06-22 16:43:39 -04007 cd python2 && python2.7 httplib2test_appengine.py
Joe Gregorio732b11f2011-06-07 15:44:51 -04008 cd python3 && python3.2 httplib2test.py
Joe Gregorio68cd8982009-08-04 13:41:44 -04009
Joe Gregorio16db63a2009-12-24 09:51:30 -050010VERSION = $(shell python setup.py --version)
Joe Gregorio130d32d2011-06-23 15:41:24 -040011INLINE_VERSION = $(shell cd python2; python -c "import httplib2;print httplib2.__version__")
12INLINE_VERSION_3 = $(shell cd python3; python3.2 -c "import httplib2;print(httplib2.__version__)")
Joe Gregorio16db63a2009-12-24 09:51:30 -050013DST = dist/httplib2-$(VERSION)
Joe Gregorio25dffef2009-12-24 10:06:02 -050014
jcgregorio2d66d4f2006-02-07 05:34:14 +000015release:
Joe Gregorio130d32d2011-06-23 15:41:24 -040016 [ "$(VERSION)" == "$(INLINE_VERSION)" ] # Check for version number mismatch
17 [ "$(VERSION)" == "$(INLINE_VERSION_3)" ] # Check for version number mismatch
Joe Gregorio843fe952009-12-28 13:02:42 -050018 -find . -name "*.pyc" | xargs rm
19 -find . -name "*.orig" | xargs rm
20 -rm -rf python2/.cache
21 -rm -rf python3/.cache
Joe Gregorio16db63a2009-12-24 09:51:30 -050022 -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 Gregorioe0a39932011-06-13 14:47:34 -040032 python setup.py register
Joe Gregorio6c50d6a2011-06-13 14:41:16 -040033 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 Gregorioe34c25d2011-06-16 10:08:15 -040036
Joe Gregorioa99e87f2011-11-14 12:35:44 -050037docs:
38 pudge -v -f --modules=httplib2 --dest=build/doc