Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: third_party/gsutil/third_party/httplib2/Makefile

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/gsutil/third_party/httplib2/MANIFEST.in ('k') | third_party/gsutil/third_party/httplib2/README » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/gsutil/third_party/httplib2/Makefile
diff --git a/third_party/gsutil/third_party/httplib2/Makefile b/third_party/gsutil/third_party/httplib2/Makefile
new file mode 100644
index 0000000000000000000000000000000000000000..45f8851ba1fa0f328148989e896bb485418b66b6
--- /dev/null
+++ b/third_party/gsutil/third_party/httplib2/Makefile
@@ -0,0 +1,42 @@
+tests:
+ -cd python2 && python2.4 httplib2test.py
+ -cd python2 && python2.5 httplib2test.py
+ -cd python2 && python2.6 httplib2test.py
+ cd python2 && python2.6 httplib2test_appengine.py
+ cd python2 && python2.7 httplib2test.py
+ cd python2 && python2.7 httplib2test_appengine.py
+ cd python3 && python3.2 httplib2test.py
+
+VERSION = $(shell python setup.py --version)
+INLINE_VERSION = $(shell cd python2; python -c "import httplib2;print httplib2.__version__")
+INLINE_VERSION_3 = $(shell cd python3; ~/bin/python3.2 -c "import httplib2;print(httplib2.__version__)")
+DST = dist/httplib2-$(VERSION)
+
+release:
+ echo $(INLINE_VERSION_3)
+ echo $(INLINE_VERSION)
+ # Check for version number mismatch
+ if [ $(VERSION) -ne $(INLINE_VERSION_3) ]; then exit 1; fi
+ if [ $(VERSION) -ne $(INLINE_VERSION) ]; then exit 1; fi
+
+ -find . -name "*.pyc" | xargs rm
+ -find . -name "*.orig" | xargs rm
+ -rm -rf python2/.cache
+ -rm -rf python3/.cache
+ -mkdir dist
+ -rm -rf dist/httplib2-$(VERSION)
+ -rm dist/httplib2-$(VERSION).tar.gz
+ -rm dist/httplib2-$(VERSION).zip
+ -mkdir dist/httplib2-$(VERSION)
+ cp -r python2 $(DST)
+ cp -r python3 $(DST)
+ cp setup.py README MANIFEST.in CHANGELOG $(DST)
+ cd dist && tar -czv -f httplib2-$(VERSION).tar.gz httplib2-$(VERSION)
+ cd dist && zip httplib2-$(VERSION).zip -r httplib2-$(VERSION)
+ cd dist/httplib2-$(VERSION) && python setup.py sdist --formats=gztar,zip upload
+ wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
+ python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.tar.gz
+ python googlecode_upload.py --summary="Version $(shell python setup.py --version)" --project=httplib2 dist/*.zip
+
+docs:
+ pudge -v -f --modules=httplib2 --dest=build/doc
« no previous file with comments | « third_party/gsutil/third_party/httplib2/MANIFEST.in ('k') | third_party/gsutil/third_party/httplib2/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698