From bd0ba2d18d147da954a14a7d19c898ab1bcb4b0b6bd0984970910f263c6c69f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Fri, 20 Aug 2021 13:11:54 +0000 Subject: [PATCH] Accepting request 913294 from home:glaubitz:branches:devel:languages:python - Update to 2.0.1 * normalize AWS paths correctly on windows (#842) - from version 2.0.0 * drop support for Python 2.7 (#778) * service account is able to use a private token endpoint (#835) * downscoping documentation bugs (#830) * Fix missing space in error message. (#821) * update user guide/references for downscoped creds (#827) - from version 1.34.0 * support refresh callable on google.oauth2.credentials.Credentials (#812) * do not use the GAE APIs on gen2+ runtimes (#807) - from version 1.33.1 * fallback to source creds expiration in downscoped tokens (#805) * revert "feat: service account is able to use a private token endpoint (#784) - from version 1.33.0 * define `CredentialAccessBoundary` classes (#793) * define `google.auth.downscoped.Credentials` class (#801) * service account is able to use a private token endpoint (#784) * fix fetch_id_token credential lookup order to match adc (#748) * fix code block formatting in 'user-guide.rst' (#794) - from version 1.32.1 * avoid leaking sub-session created for '_auth_request' (#789) - from version 1.32.0 * allow scopes for self signed jwt (#776) - from version 1.31.0 * define useful properties on `google.auth.external_account.Credentials` (#770) * avoid deleting items while iterating (#772) - from version 1.30.2 * **dependencies:** add urllib3 and requests to aiohttp extra (#755) * enforce constraints during unit tests (#760) OBS-URL: https://build.opensuse.org/request/show/913294 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=30 --- ga_python-executable-name.patch | 12 ++++++ google-auth-1.24.0.tar.gz | 3 -- google-auth-2.0.1.tar.gz | 3 ++ python-google-auth.changes | 66 +++++++++++++++++++++++++++++++++ python-google-auth.spec | 5 ++- 5 files changed, 85 insertions(+), 4 deletions(-) create mode 100644 ga_python-executable-name.patch delete mode 100644 google-auth-1.24.0.tar.gz create mode 100644 google-auth-2.0.1.tar.gz diff --git a/ga_python-executable-name.patch b/ga_python-executable-name.patch new file mode 100644 index 0000000..b0598f6 --- /dev/null +++ b/ga_python-executable-name.patch @@ -0,0 +1,12 @@ +diff -Nru google-auth-2.0.1.orig/tests/test__cloud_sdk.py google-auth-2.0.1/tests/test__cloud_sdk.py +--- google-auth-2.0.1.orig/tests/test__cloud_sdk.py 2021-08-19 21:22:12.000000000 +0200 ++++ google-auth-2.0.1/tests/test__cloud_sdk.py 2021-08-20 11:09:31.644103701 +0200 +@@ -73,7 +73,7 @@ + + def test__run_subprocess_ignore_stderr(): + command = [ +- "python", ++ "python3", + "-c", + "from __future__ import print_function;" + + "import sys;" diff --git a/google-auth-1.24.0.tar.gz b/google-auth-1.24.0.tar.gz deleted file mode 100644 index 5f17467..0000000 --- a/google-auth-1.24.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0b0e026b412a0ad096e753907559e4bdb180d9ba9f68dd9036164db4fdc4ad2e -size 120351 diff --git a/google-auth-2.0.1.tar.gz b/google-auth-2.0.1.tar.gz new file mode 100644 index 0000000..be31c29 --- /dev/null +++ b/google-auth-2.0.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea1af050b3e06eb73e4470f704d23007307bc0e87c13e015f6b90460f1407bd3 +size 180467 diff --git a/python-google-auth.changes b/python-google-auth.changes index f4d3ad9..6353a7c 100644 --- a/python-google-auth.changes +++ b/python-google-auth.changes @@ -1,3 +1,69 @@ +------------------------------------------------------------------- +Fri Aug 20 09:17:38 UTC 2021 - John Paul Adrian Glaubitz + +- Update to 2.0.1 + * normalize AWS paths correctly on windows (#842) +- from version 2.0.0 + * drop support for Python 2.7 (#778) + * service account is able to use a private token endpoint (#835) + * downscoping documentation bugs (#830) + * Fix missing space in error message. (#821) + * update user guide/references for downscoped creds (#827) +- from version 1.34.0 + * support refresh callable on google.oauth2.credentials.Credentials (#812) + * do not use the GAE APIs on gen2+ runtimes (#807) +- from version 1.33.1 + * fallback to source creds expiration in downscoped tokens (#805) + * revert "feat: service account is able to use a private token endpoint (#784) +- from version 1.33.0 + * define `CredentialAccessBoundary` classes (#793) + * define `google.auth.downscoped.Credentials` class (#801) + * service account is able to use a private token endpoint (#784) + * fix fetch_id_token credential lookup order to match adc (#748) + * fix code block formatting in 'user-guide.rst' (#794) +- from version 1.32.1 + * avoid leaking sub-session created for '_auth_request' (#789) +- from version 1.32.0 + * allow scopes for self signed jwt (#776) +- from version 1.31.0 + * define useful properties on `google.auth.external_account.Credentials` (#770) + * avoid deleting items while iterating (#772) +- from version 1.30.2 + * **dependencies:** add urllib3 and requests to aiohttp extra (#755) + * enforce constraints during unit tests (#760) + * session object was never used in aiohttp request (#700) +- from version 1.30.1 + * allow user to customize context aware metadata path in _mtls_helper (#754) + * fix function name in signing error message (#751) +- from version 1.30.0 + * add reauth support to async user credentials for gcloud (#738) +- from version 1.29.0 + * add reauth feature to user credentials for gcloud (#727) + * Allow multiple audiences for id_token.verify_token (#733) +- from version 1.28.1 + * support custom alg in jwt header for signing (#729) +- from version 1.28.0 + * allow the AWS_DEFAULT_REGION environment variable (#721) + * expose library version at `google.auth.__version` (#683) + * fix unit tests so they can work in g3 (#714) +- from version 1.27.1 + * ignore gcloud warning when getting project id (#708) + * use gcloud creds flow (#705) +- from version 1.27.0 + * workload identity federation support (#698) + * add pyopenssl as extra dependency (#697) +- from version 1.26.1 + * fix a typo in the user guide (avaiable -> available) (#680) + * revert workload identity federation support (#691) +- from version 1.26.0 + * workload identity federation support (#686) +- from version 1.25.0 + * support self-signed jwt in requests and urllib3 transports (#679) + * use self-signed jwt for service account (#665) +- Add patch to fix filename of Python executable in testsuite + + ga_python-executable-name.patch +- Update BuildRequires from setup.py + ------------------------------------------------------------------- Wed Jan 6 13:16:24 UTC 2021 - Matthias Fehring diff --git a/python-google-auth.spec b/python-google-auth.spec index 8500744..7104ccf 100644 --- a/python-google-auth.spec +++ b/python-google-auth.spec @@ -20,12 +20,13 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-google-auth -Version: 1.24.0 +Version: 2.0.1 Release: 0 Summary: Google Authentication Library License: Apache-2.0 URL: https://github.com/GoogleCloudPlatform/google-auth-library-python Source: https://files.pythonhosted.org/packages/source/g/google-auth/google-auth-%{version}.tar.gz +Patch0: ga_python-executable-name.patch BuildRequires: %{python_module cachetools >= 2.0.0} BuildRequires: %{python_module pyasn1-modules >= 0.2.1} BuildRequires: %{python_module rsa >= 3.1.4} @@ -40,6 +41,7 @@ BuildRequires: %{python_module oauth2client} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module pytest-localserver} BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pyu2f} BuildRequires: %{python_module requests} BuildRequires: %{python_module responses} BuildRequires: %{python_module urllib3} @@ -59,6 +61,7 @@ This library simplifies using Google’s various server-to-server authentication %prep %setup -q -n google-auth-%{version} +%patch0 -p1 %build %python_build