diff --git a/CHANGELOG.md b/CHANGELOG.md index a84ed94b4..34018f4a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,13 @@ [1]: https://pypi.org/project/google-auth/#history +### [1.17.1](https://www.github.com/googleapis/google-auth-library-python/compare/v1.17.0...v1.17.1) (2020-06-11) + + +### Bug Fixes + +* narrow acceptable RSA versions to maintain Python 2 compatability ([#528](https://www.github.com/googleapis/google-auth-library-python/issues/528)) ([9434868](https://www.github.com/googleapis/google-auth-library-python/commit/9434868a6789464549af1d4562f62d8a899b6809)) + ## [1.17.0](https://www.github.com/googleapis/google-auth-library-python/compare/v1.16.1...v1.17.0) (2020-06-10) diff --git a/google/oauth2/credentials.py b/google/oauth2/credentials.py index d39848b41..757219671 100644 --- a/google/oauth2/credentials.py +++ b/google/oauth2/credentials.py @@ -300,8 +300,9 @@ def to_json(self, strip=None): generated JSON. Returns: - str: A JSON representation of this instance, suitable to pass to - from_json(). + str: A JSON representation of this instance. When converted into + a dictionary, it can be passed to from_authorized_user_info() + to create a new credential instance. """ prep = { "token": self.token, diff --git a/setup.py b/setup.py index f518ec10d..a278ac273 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,9 @@ DEPENDENCIES = ( "cachetools>=2.0.0,<5.0", "pyasn1-modules>=0.2.1", - "rsa>=3.1.4,<5.0", + # rsa 4.1, 4.1.1, 4.2 are broken on Py2: https://github.com/sybrenstuvel/python-rsa/issues/152 + 'rsa>=3.1.4,!=4.1,!=4.1.1,!=4.2,<5; python_version < "3"', + 'rsa>=3.1.4,<5; python_version >= "3"', "setuptools>=40.3.0", "six>=1.9.0", ) @@ -30,7 +32,7 @@ with io.open("README.rst", "r") as fh: long_description = fh.read() -version = "1.17.0" +version = "1.17.1" setup( name="google-auth",