OLD | NEW |
(Empty) | |
| 1 tests: |
| 2 -cd python2 && python2.4 httplib2test.py |
| 3 -cd python2 && python2.5 httplib2test.py |
| 4 -cd python2 && python2.6 httplib2test.py |
| 5 cd python2 && python2.6 httplib2test_appengine.py |
| 6 cd python2 && python2.7 httplib2test.py |
| 7 cd python2 && python2.7 httplib2test_appengine.py |
| 8 cd python3 && python3.2 httplib2test.py |
| 9 |
| 10 VERSION = $(shell python setup.py --version) |
| 11 INLINE_VERSION = $(shell cd python2; python -c "import httplib2;print httplib2._
_version__") |
| 12 INLINE_VERSION_3 = $(shell cd python3; ~/bin/python3.2 -c "import httplib2;print
(httplib2.__version__)") |
| 13 DST = dist/httplib2-$(VERSION) |
| 14 |
| 15 release: |
| 16 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 |
| 22 -find . -name "*.pyc" | xargs rm |
| 23 -find . -name "*.orig" | xargs rm |
| 24 -rm -rf python2/.cache |
| 25 -rm -rf python3/.cache |
| 26 -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) |
| 33 cp setup.py README MANIFEST.in CHANGELOG $(DST) |
| 34 cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION) |
| 35 cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION) |
| 36 cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip
upload |
| 37 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 |
| 40 |
| 41 docs: |
| 42 pudge -v -f --modules=httplib2 --dest=build/doc |
OLD | NEW |