Skip to content

Commit 78d17c1

Browse files
committed
BUG: oauth2client deprecated, use google-auth instead.
Remove the use of oauth2client and use google-auth library, instead. 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.
1 parent be18920 commit 78d17c1

File tree

9 files changed

+199
-254
lines changed

9 files changed

+199
-254
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.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+
httplib2>=0.9.1
2+
google-api-python-client>=1.6.2, <2.0.0dev
3+
google-auth>=1.0.0, <2.0.0dev
4+
google-auth-httplib2>=0.0.2, <2.0.0dev
5+
google-auth-oauthlib>=0.1.0, <2.0.0dev
56
PyCrypto
7+
python-gflags==2.0

ci/requirements-3.4.pip

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
httplib2
2-
google-api-python-client
3-
oauth2client
1+
httplib2>=0.9.1
2+
google-api-python-client>=1.6.2, <2.0.0dev
3+
google-auth>=1.0.0, <2.0.0dev
4+
google-auth-httplib2>=0.0.2, <2.0.0dev
5+
google-auth-oauthlib>=0.1.0, <2.0.0dev

ci/requirements-3.5.pip

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
httplib2
2-
google-api-python-client
3-
oauth2client
1+
httplib2>=0.9.1
2+
google-api-python-client>=1.6.2, <2.0.0dev
3+
google-auth>=1.0.0, <2.0.0dev
4+
google-auth-httplib2>=0.0.2, <2.0.0dev
5+
google-auth-oauthlib>=0.1.0, <2.0.0dev

ci/requirements-3.6.pip

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
httplib2
2-
google-api-python-client
3-
oauth2client
1+
httplib2>=0.9.1
2+
google-api-python-client>=1.6.2, <2.0.0dev
3+
google-auth>=1.0.0, <2.0.0dev
4+
google-auth-httplib2>=0.0.2, <2.0.0dev
5+
google-auth-oauthlib>=0.1.0, <2.0.0dev

docs/source/changelog.rst

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

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

910
0.1.6 / 2017-05-03
1011
------------------

0 commit comments

Comments
 (0)