Craig Citro | 7547de6 | 2014-10-13 09:21:08 -0700 | [diff] [blame] | 1 | """Retain apiclient as an alias for googleapiclient.""" |
| 2 | |
Craig Citro | 0c18afc | 2014-10-15 21:53:05 -0700 | [diff] [blame] | 3 | import googleapiclient |
Craig Citro | 7547de6 | 2014-10-13 09:21:08 -0700 | [diff] [blame] | 4 | |
Craig Citro | 0ff797d | 2014-10-15 23:22:51 -0700 | [diff] [blame^] | 5 | try: |
| 6 | import oauth2client |
| 7 | except ImportError: |
| 8 | raise RuntimeError( |
| 9 | 'Previous version of google-api-python-client detected; due to a ' |
| 10 | 'packaging issue, we cannot perform an in-place upgrade. To repair, ' |
| 11 | 'remove and reinstall this package, along with oauth2client and ' |
| 12 | 'uritemplate. One can do this with pip via\n' |
| 13 | ' pip install -I google-api-python-client' |
| 14 | ) |
| 15 | |
Craig Citro | 7547de6 | 2014-10-13 09:21:08 -0700 | [diff] [blame] | 16 | from googleapiclient import channel |
| 17 | from googleapiclient import discovery |
| 18 | from googleapiclient import errors |
| 19 | from googleapiclient import http |
| 20 | from googleapiclient import mimeparse |
| 21 | from googleapiclient import model |
| 22 | from googleapiclient import sample_tools |
| 23 | from googleapiclient import schema |
Craig Citro | 076b333 | 2014-10-15 12:16:42 -0700 | [diff] [blame] | 24 | |
Craig Citro | 0c18afc | 2014-10-15 21:53:05 -0700 | [diff] [blame] | 25 | __version__ = googleapiclient.__version__ |