Skip to content

Commit

Permalink
chore: release 1.8.0 (#69)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
tswast authored May 9, 2023
1 parent 06dc9a2 commit 07d4363
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/source/changelog.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
Changelog
=========

.. _changelog-1.8.0:

1.8.0 / (2023-05-09)
--------------------

- When running on Google Colab, try Colab-based authentication
(``google.colab.auth.authenticate_user()``) before attempting the Google
Application Default Credentials flow. (:issue:`68`)

.. _changelog-1.7.0:

1.7.0 / (2023-02-07)
Expand Down
10 changes: 10 additions & 0 deletions docs/source/intro.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,16 @@ User credentials
Use the :func:`pydata_google_auth.get_user_credentials` to get user
credentials, authenticated to Google APIs.

By default, pydata-google-auth will listen for the credentials on a local
webserver, which is used as the redirect page from Google's OAuth 2.0 flow.
When you set ``use_local_webserver=False``, pydata-google-auth will request
that you copy a token from the :ref:`oauth-sign-in` page.

.. toctree::
:maxdepth: 2

oauth.rst

Default credentials
-------------------

Expand Down
3 changes: 3 additions & 0 deletions docs/source/oauth.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
:alt: pydata logo
:class: logo


.. _oauth-sign-in:

Sign in to BigQuery
===================

Expand Down
2 changes: 1 addition & 1 deletion pydata_google_auth/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ def _ensure_application_default_credentials_in_colab_environment():
from google.colab import auth

auth.authenticate_user()
except (ModuleNotFoundError, ImportError):
except ImportError:
pass


Expand Down

0 comments on commit 07d4363

Please sign in to comment.