Skip to content

Commit 07d4363

Browse files
authored
chore: release 1.8.0 (#69)
Also: * fix(python2.7): remove reference to ModuleNotFoundError which is not present in Python 2.7. Also, it is unnecessary, since it is a subclass of ImportError. * docs: add OAuth page to docs table-of-contents to fix Sphinx error
1 parent 06dc9a2 commit 07d4363

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

docs/source/changelog.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
Changelog
22
=========
33

4+
.. _changelog-1.8.0:
5+
6+
1.8.0 / (2023-05-09)
7+
--------------------
8+
9+
- When running on Google Colab, try Colab-based authentication
10+
(``google.colab.auth.authenticate_user()``) before attempting the Google
11+
Application Default Credentials flow. (:issue:`68`)
12+
413
.. _changelog-1.7.0:
514

615
1.7.0 / (2023-02-07)

docs/source/intro.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ User credentials
2424
Use the :func:`pydata_google_auth.get_user_credentials` to get user
2525
credentials, authenticated to Google APIs.
2626

27+
By default, pydata-google-auth will listen for the credentials on a local
28+
webserver, which is used as the redirect page from Google's OAuth 2.0 flow.
29+
When you set ``use_local_webserver=False``, pydata-google-auth will request
30+
that you copy a token from the :ref:`oauth-sign-in` page.
31+
32+
.. toctree::
33+
:maxdepth: 2
34+
35+
oauth.rst
36+
2737
Default credentials
2838
-------------------
2939

docs/source/oauth.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
:alt: pydata logo
33
:class: logo
44

5+
6+
.. _oauth-sign-in:
7+
58
Sign in to BigQuery
69
===================
710

pydata_google_auth/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def _ensure_application_default_credentials_in_colab_environment():
165165
from google.colab import auth
166166

167167
auth.authenticate_user()
168-
except (ModuleNotFoundError, ImportError):
168+
except ImportError:
169169
pass
170170

171171

0 commit comments

Comments
 (0)