Skip to content

Commit 852b2a3

Browse files
tswastparthea
authored andcommitted
BUG: oauth2client deprecated, use google-auth instead. (#39)
* 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. * MAINT: pandas.util.testing.assertRaises removed This method was removed in pandas-dev/pandas#16089 in favor of pytest.raises. * MAINT: pandas.util.testing.assert_equals removed This method was removed in pandas-dev/pandas#16017 in favor of pytest.raises. * DOC: add version tags for new auth_local_webserver params. * CLN: share _test_imports between main module and tests * TST: pin versions on 3.5 rather than 2.7.
1 parent c210de1 commit 852b2a3

10 files changed

+321
-242
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
7+
mock

ci/requirements-3.5-0.18.1.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+
google-api-python-client==1.6.0
2+
google-auth==1.0.0
3+
google-auth-httplib2==0.0.1
4+
google-auth-oauthlib==0.0.1
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-2
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ 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`)
98
- The dataframe passed to ```.to_gbq(...., if_exists='append')``` needs to contain only a subset of the fields in the BigQuery schema. (:issue:`24`)
10-
9+
- Use the `google-auth <https://google-auth.readthedocs.io/en/latest/>`__ library for authentication because oauth2client is deprecated. (:issue:`39`)
10+
- ``read_gbq`` now has a ``auth_local_webserver`` boolean argument for controlling whether to use web server or console flow when getting user credentials. Replaces `--noauth_local_webserver` command line argument (:issue:`35`)
1111

1212
0.1.6 / 2017-05-03
1313
------------------

0 commit comments

Comments
 (0)