blob: 3ec958a448de6c259ea41ff98cc3370d49ce81b3 [file] [log] [blame]
MaT1g3R5d9e6492019-07-27 08:47:46 -04001.PHONY: tests
2
Joe Gregorioe202d212009-07-16 14:57:52 -04003tests:
Joe Gregorio62b17982012-03-02 08:10:44 -08004 -cd python2 && python2.4 httplib2test.py
Joe Gregorio1b828b52011-02-13 10:42:38 -05005 -cd python2 && python2.5 httplib2test.py
Joe Gregorio11248052012-11-12 13:08:04 -05006 -cd python2 && python2.6 httplib2test.py
Joe Gregorio0197ec82014-03-06 14:56:29 -05007 -cd python2 && python2.6 httplib2test_appengine.py
Joe Gregorio3b089c92012-04-17 12:40:39 -04008 cd python2 && python2.7 httplib2test.py
9 cd python2 && python2.7 httplib2test_appengine.py
Alex Yu89b79a52018-07-25 19:49:41 -040010 cd python3 && python3 httplib2test.py
Joe Gregorio68cd8982009-08-04 13:41:44 -040011
Joe Gregorio16db63a2009-12-24 09:51:30 -050012VERSION = $(shell python setup.py --version)
Joe Gregorio130d32d2011-06-23 15:41:24 -040013INLINE_VERSION = $(shell cd python2; python -c "import httplib2;print httplib2.__version__")
Alex Yu89b79a52018-07-25 19:49:41 -040014INLINE_VERSION_3 = $(shell cd python3; ~/bin/python3 -c "import httplib2;print(httplib2.__version__)")
Joe Gregorio16db63a2009-12-24 09:51:30 -050015DST = dist/httplib2-$(VERSION)
Joe Gregorio25dffef2009-12-24 10:06:02 -050016
jcgregorio2d66d4f2006-02-07 05:34:14 +000017release:
Joe Gregorio43c98522012-03-02 08:37:22 -080018 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 Gregorio843fe952009-12-28 13:02:42 -050024 -find . -name "*.pyc" | xargs rm
25 -find . -name "*.orig" | xargs rm
26 -rm -rf python2/.cache
27 -rm -rf python3/.cache
Joe Gregorio16db63a2009-12-24 09:51:30 -050028 -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 Gregoriodfb0d4a2014-04-14 10:13:02 -040035 cp setup.py README.md MANIFEST.in CHANGELOG $(DST)
Joe Gregorio16db63a2009-12-24 09:51:30 -050036 cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION)
37 cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION)
Joe Gregorioc0b0ba12012-03-02 12:12:08 -080038 cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip upload
Joe Gregorio6c50d6a2011-06-13 14:41:16 -040039 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 Gregorioe34c25d2011-06-16 10:08:15 -040042
Joe Gregorioa99e87f2011-11-14 12:35:44 -050043docs:
44 pudge -v -f --modules=httplib2 --dest=build/doc