Distribute the samples separately from the library source.

Fixes issue #155.

Reviewed in http://codereview.appspot.com/6304106/.
This commit is contained in:
Joe Gregorio
2012-06-20 12:15:24 -04:00
parent 84e4180c0b
commit 46675d2a8d
4 changed files with 10 additions and 17 deletions

View File

@@ -2,10 +2,6 @@ recursive-include tests *.py *.json
recursive-include tests/data *.json *.sh *.p12 *.pem *.jpg *.png
recursive-include uritemplate *.py
recursive-include apiclient *.json *.py
recursive-include samples *.py *.png *.html *.yaml *.json
include samples/gtaskqueue_sample/gtaskqueue/gen_appengine_access_token
include samples/gtaskqueue_sample/gtaskqueue/gtaskqueue
include samples/gtaskqueue_sample/gtaskqueue/gtaskqueue_puller
include runtests.py
include CHANGELOG
include LICENSE

View File

@@ -1,2 +1 @@
recursive-include samples *.py *.png *.html *.yaml *.json
include README

View File

@@ -34,6 +34,9 @@ prerelease:
python expand-symlinks.py
cd snapshot; python setup.py clean
cd snapshot; python setup.py sdist --formats=gztar,zip
cd snapshot; tar czf google-api-python-client-samples-$(shell python setup.py --version).tar.gz samples
cd snapshot; zip -r google-api-python-client-samples-$(shell python setup.py --version).zip samples
.PHONY: release
release: prerelease
@@ -45,6 +48,8 @@ release: prerelease
wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
python googlecode_upload.py --summary="google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.tar.gz
python googlecode_upload.py --summary="google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.zip
python googlecode_upload.py --summary="Samples for google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/google-api-python-client-samples-*.tar.gz
python googlecode_upload.py --summary="Samples for google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/google-api-python-client-samples-*.zip
.PHONY: oauth2_prerelease
oauth2_prerelease:

17
README
View File

@@ -4,21 +4,15 @@ This is python client library for Google's discovery based APIs.
Installation
============
To install, simply say
To install, simply use pip or easy_install:
$ pip --upgrade google-api-python-client
$ easy_install --upgrade google-api-python-client
See the Developers Guide for more detailed instructions and documentation:
Running
=======
After following the install directions (using setup.py or setpath.sh) you
should be able to cd to samples/plus and run plus.py from there, which will use
the apiclient library to retrieve a snippet of text from each entry in Google
Plus. The first time you run it you will be prompted to authorize the
application to access your plus information.
$ python samples/plus/plus.py
http://code.google.com/p/google-api-python-client/wiki/GettingStarted
Third Party Libraries
@@ -29,7 +23,6 @@ These libraries will be installed when you install the client library:
http://code.google.com/p/httplib2
http://code.google.com/p/uri-templates
http://code.google.com/p/python-gflags
http://github.com/simplegeo/python-oauth2
Depending on your version of Python, these libraries may also be installed: