blob: 9569aafa33dc9b3478482d422fe7c5c3353fce41 [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
5 cd python3 && python3.2 httplib2test.py
Joe Gregorio68cd8982009-08-04 13:41:44 -04006
Joe Gregorio16db63a2009-12-24 09:51:30 -05007VERSION = $(shell python setup.py --version)
8DST = dist/httplib2-$(VERSION)
Joe Gregorio25dffef2009-12-24 10:06:02 -05009
jcgregorio2d66d4f2006-02-07 05:34:14 +000010release:
Joe Gregorio843fe952009-12-28 13:02:42 -050011 -find . -name "*.pyc" | xargs rm
12 -find . -name "*.orig" | xargs rm
13 -rm -rf python2/.cache
14 -rm -rf python3/.cache
Joe Gregorio16db63a2009-12-24 09:51:30 -050015 -mkdir dist
16 -rm -rf dist/httplib2-$(VERSION)
17 -rm dist/httplib2-$(VERSION).tar.gz
18 -rm dist/httplib2-$(VERSION).zip
19 -mkdir dist/httplib2-$(VERSION)
20 cp -r python2 $(DST)
21 cp -r python3 $(DST)
22 cp setup.py README MANIFEST CHANGELOG $(DST)
23 cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION)
24 cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION)
25
jcgregorio076f54d2006-07-03 17:34:16 +000026doc:
jcgregorio88ada9a2007-05-03 13:20:38 +000027 #pudge -v -f --modules=httplib2 --dest=build/doc
Joe Gregoriofebf52d2009-12-24 09:05:42 -050028
Joe Gregorio6c50d6a2011-06-13 14:41:16 -040029release:
Joe Gregorioe0a39932011-06-13 14:47:34 -040030 python setup.py register
Joe Gregorio6c50d6a2011-06-13 14:41:16 -040031 wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
32 python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz
33 python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.zip