blob: 96fabaa985c9d2acc850949c9906b3c2b23b3a6a [file] [log] [blame]
Joe Gregorioe202d212009-07-16 14:57:52 -04001tests:
Joe Gregorio62b17982012-03-02 08:10:44 -08002 -cd python2 && python2.4 httplib2test.py
Joe Gregorio1b828b52011-02-13 10:42:38 -05003 -cd python2 && python2.5 httplib2test.py
Joe Gregorio11248052012-11-12 13:08:04 -05004 -cd python2 && python2.6 httplib2test.py
Joe Gregorio0197ec82014-03-06 14:56:29 -05005 -cd python2 && python2.6 httplib2test_appengine.py
Joe Gregorio3b089c92012-04-17 12:40:39 -04006 cd python2 && python2.7 httplib2test.py
7 cd python2 && python2.7 httplib2test_appengine.py
Alex Yu89b79a52018-07-25 19:49:41 -04008 cd python3 && python3 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__")
Alex Yu89b79a52018-07-25 19:49:41 -040012INLINE_VERSION_3 = $(shell cd python3; ~/bin/python3 -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 Gregorio43c98522012-03-02 08:37:22 -080016 echo $(INLINE_VERSION_3)
17 echo $(INLINE_VERSION)
18 # Check for version number mismatch
19 if [ $(VERSION) -ne $(INLINE_VERSION_3) ]; then exit 1; fi
20 if [ $(VERSION) -ne $(INLINE_VERSION) ]; then exit 1; fi
21
Joe Gregorio843fe952009-12-28 13:02:42 -050022 -find . -name "*.pyc" | xargs rm
23 -find . -name "*.orig" | xargs rm
24 -rm -rf python2/.cache
25 -rm -rf python3/.cache
Joe Gregorio16db63a2009-12-24 09:51:30 -050026 -mkdir dist
27 -rm -rf dist/httplib2-$(VERSION)
28 -rm dist/httplib2-$(VERSION).tar.gz
29 -rm dist/httplib2-$(VERSION).zip
30 -mkdir dist/httplib2-$(VERSION)
31 cp -r python2 $(DST)
32 cp -r python3 $(DST)
Joe Gregoriodfb0d4a2014-04-14 10:13:02 -040033 cp setup.py README.md MANIFEST.in CHANGELOG $(DST)
Joe Gregorio16db63a2009-12-24 09:51:30 -050034 cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION)
35 cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION)
Joe Gregorioc0b0ba12012-03-02 12:12:08 -080036 cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip upload
Joe Gregorio6c50d6a2011-06-13 14:41:16 -040037 wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
38 python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz
39 python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.zip
Joe Gregorioe34c25d2011-06-16 10:08:15 -040040
Joe Gregorioa99e87f2011-11-14 12:35:44 -050041docs:
42 pudge -v -f --modules=httplib2 --dest=build/doc