Skip to content

Commit 1e4f4ca

Browse files
committed
BUG: oauth2client deprecated, use google-auth instead.
Remove the use of oauth2client and use google-auth library, instead. See GH#37. Rather than check for multiple versions of the libraries, use the setup.py to specify compatible versions. I believe this is safe since Pandas checks for the pandas_gbq package. Since google-auth does not use the argparse module to override user authentication flow settings, add a parameter to choose between the web and console flow. Addresses some eventual consistency issues in table/dataset listing in the integration tests.
1 parent 47bcc66 commit 1e4f4ca

10 files changed

+309
-186
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,7 @@ Thumbs.db
7676

7777
# caches #
7878
.cache
79+
80+
# Credentials #
81+
###############
82+
bigquery_credentials.dat

ci/requirements-2.7-0.19.2.pip

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
httplib2
2-
google-api-python-client==1.2
3-
python-gflags==2.0
4-
oauth2client==1.5.0
1+
google-api-python-client
2+
google-auth
3+
google-auth-httplib2
4+
google-auth-oauthlib
55
PyCrypto
6+
python-gflags==2.0
7+
mock

ci/requirements-3.5-0.18.1.pip

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
httplib2
21
google-api-python-client
3-
oauth2client
2+
google-auth
3+
google-auth-httplib2
4+
google-auth-oauthlib
5+
mock

ci/requirements-3.6-0.20.1.pip

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
httplib2
21
google-api-python-client
3-
oauth2client
2+
google-auth
3+
google-auth-httplib2
4+
google-auth-oauthlib
5+
mock

ci/requirements-3.6-MASTER.pip

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
httplib2
21
google-api-python-client
3-
oauth2client
2+
google-auth
3+
google-auth-httplib2
4+
google-auth-oauthlib
5+
mock

docs/source/changelog.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ Changelog
44
0.2.0 / 2017-??-??
55
------------------
66

7-
- Resolve issue where the optional ``--noauth_local_webserver`` command line argument would not be propagated during the authentication process. (:issue:`35`)
87
- Drop support for Python 3.4 (:issue:`40`)
8+
- Use the `google-auth <https://google-auth.readthedocs.io/en/latest/>`__ library for authentication because oauth2client is deprecated. (:issue:`39`)
9+
- ``read_gbq`` now has a ``auth_local_webserver`` boolean argument for controlling whether to use web server or console flow when getting user credentials.
910

1011
0.1.6 / 2017-05-03
1112
------------------

0 commit comments

Comments
 (0)