Add __version__ to each library.
Fixes issue 119. Reviewed in http://codereview.appspot.com/5846050/.
This commit is contained in:
21
Makefile
21
Makefile
@@ -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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
__version__ = "1.0beta8"
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
__version__ = "1.0beta8"
|
||||
|
||||
21
runtests.sh
Executable file
21
runtests.sh
Executable 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
|
||||
5
setup.py
5
setup.py
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user