Add __version__ to each library.

Fixes issue 119.
Reviewed in http://codereview.appspot.com/5846050/.
This commit is contained in:
Joe Gregorio
2012-03-21 15:20:51 -04:00
parent 69edbe3223
commit 696583c177
6 changed files with 35 additions and 19 deletions

View File

@@ -4,21 +4,8 @@ pep8:
APP_ENGINE_PATH=../google_appengine
test:
python runtests.py tests/test_discovery.py
python runtests.py tests/test_errors.py
python runtests.py tests/test_http.py
python runtests.py tests/test_json_model.py
python runtests.py tests/test_mocks.py
python runtests.py tests/test_model.py
python runtests.py tests/test_oauth2client_clientsecrets.py
python runtests.py tests/test_oauth2client_django_orm.py
python runtests.py tests/test_oauth2client_file.py
python runtests.py tests/test_oauth2client_jwt.py
python runtests.py tests/test_oauth2client.py
python runtests.py tests/test_oauth.py
python runtests.py tests/test_protobuf_model.py
python runtests.py tests/test_schema.py
python runtests.py tests/test_oauth2client_appengine.py
./runtests.sh python2.6
./runtests.sh python2.7
.PHONY: coverage
@@ -35,8 +22,8 @@ docs:
.PHONY: prerelease
prerelease:
python2.6 runtests.py tests --exit_on_failure
python2.7 runtests.py tests --exit_on_failure
./runtests.sh python2.6
./runtests.sh python2.7
-sudo rm -rf dist/
-sudo rm -rf snapshot/
python expand-symlinks.py

View File

@@ -0,0 +1 @@
__version__ = "1.0beta8"

View File

@@ -0,0 +1 @@
__version__ = "1.0beta8"

21
runtests.sh Executable file
View File

@@ -0,0 +1,21 @@
#/bin/bash
#
# Run all the tests.
#
# The python interpreter to use is passed in on the command line.
$1 runtests.py tests/test_discovery.py
$1 runtests.py tests/test_errors.py
$1 runtests.py tests/test_http.py
$1 runtests.py tests/test_json_model.py
$1 runtests.py tests/test_mocks.py
$1 runtests.py tests/test_model.py
$1 runtests.py tests/test_oauth2client_clientsecrets.py
$1 runtests.py tests/test_oauth2client_django_orm.py
$1 runtests.py tests/test_oauth2client_file.py
$1 runtests.py tests/test_oauth2client_jwt.py
$1 runtests.py tests/test_oauth2client.py
$1 runtests.py tests/test_oauth.py
$1 runtests.py tests/test_protobuf_model.py
$1 runtests.py tests/test_schema.py
$1 runtests.py tests/test_oauth2client_appengine.py

View File

@@ -47,8 +47,11 @@ if needs_json:
long_desc = """The Google API Client for Python is a client library for
accessing the Plus, Moderator, and many other Google APIs."""
import apiclient
version = apiclient.__version__
setup(name="google-api-python-client",
version="1.0beta8",
version=version,
description="Google API Client Library for Python",
long_description=long_desc,
author="Joe Gregorio",

View File

@@ -39,8 +39,11 @@ if needs_json:
long_desc = """The oauth2client is a client library for OAuth 2.0."""
import oauth2client
version = oauth2client.__version__
setup(name="oauth2client",
version="1.0beta8",
version=version,
description="OAuth 2.0 client library",
long_description=long_desc,
author="Joe Gregorio",