| Index: third_party/google_api_python_client/apiclient/__init__.py
|
| diff --git a/third_party/google_api_python_client/apiclient/__init__.py b/third_party/google_api_python_client/apiclient/__init__.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5efb142e01e4b227e38572a16084c02336e9be68
|
| --- /dev/null
|
| +++ b/third_party/google_api_python_client/apiclient/__init__.py
|
| @@ -0,0 +1,40 @@
|
| +"""Retain apiclient as an alias for googleapiclient."""
|
| +
|
| +import googleapiclient
|
| +
|
| +try:
|
| + import oauth2client
|
| +except ImportError:
|
| + raise RuntimeError(
|
| + 'Previous version of google-api-python-client detected; due to a '
|
| + 'packaging issue, we cannot perform an in-place upgrade. To repair, '
|
| + 'remove and reinstall this package, along with oauth2client and '
|
| + 'uritemplate. One can do this with pip via\n'
|
| + ' pip install -I google-api-python-client'
|
| + )
|
| +
|
| +from googleapiclient import channel
|
| +from googleapiclient import discovery
|
| +from googleapiclient import errors
|
| +from googleapiclient import http
|
| +from googleapiclient import mimeparse
|
| +from googleapiclient import model
|
| +from googleapiclient import sample_tools
|
| +from googleapiclient import schema
|
| +
|
| +__version__ = googleapiclient.__version__
|
| +
|
| +_SUBMODULES = {
|
| + 'channel': channel,
|
| + 'discovery': discovery,
|
| + 'errors': errors,
|
| + 'http': http,
|
| + 'mimeparse': mimeparse,
|
| + 'model': model,
|
| + 'sample_tools': sample_tools,
|
| + 'schema': schema,
|
| +}
|
| +
|
| +import sys
|
| +for module_name, module in _SUBMODULES.iteritems():
|
| + sys.modules['apiclient.%s' % module_name] = module
|
|
|