17
0

20 Commits

Author SHA256 Message Date
bf743fb39a Accepting request 1327040 from devel:languages:python
- Update to version 2.47.0
  * drop `cachetools` dependency in favor of simple local implementation (#1590)
  * Python 3.8 support (#1918)
- from version 2.46.0
  * update urllib3 docstrings for v2 compatibility (#1903)
  * Recognize workload certificate config in has_default_client_cert_source
    for mTLS for Agentic Identities (#1907)
  * add types to default and verify_token and Request __init__ based on comments
    in the source code. (#1588)
  * fix the document of secure_authorized_session (#1536)
  * remove setup.cfg configuration for creating universal wheels (#1693)
  * use .read() instead of .content.read() in aiohttp transport (#1899)
  * raise RefreshError for missing token in impersonated credentials (#1897)
  * Fix test coverage for mtls_helper (#1886)
- Drop python-google-auth-no-mock.patch, fixed upstream
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/request/show/1327040
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=62
2026-01-14 15:19:43 +00:00
e500fdca93 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=130 2026-01-13 14:48:07 +00:00
f300879b70 - Update to version 2.47.0
* drop `cachetools` dependency in favor of simple local implementation (#1590)
  * Python 3.8 support (#1918)
- from version 2.46.0
  * update urllib3 docstrings for v2 compatibility (#1903)
  * Recognize workload certificate config in has_default_client_cert_source
    for mTLS for Agentic Identities (#1907)
  * add types to default and verify_token and Request __init__ based on comments
    in the source code. (#1588)
  * fix the document of secure_authorized_session (#1536)
  * remove setup.cfg configuration for creating universal wheels (#1693)
  * use .read() instead of .content.read() in aiohttp transport (#1899)
  * raise RefreshError for missing token in impersonated credentials (#1897)
  * Fix test coverage for mtls_helper (#1886)
- Drop python-google-auth-no-mock.patch, fixed upstream
- Update BuildRequires and Requires from setup.py

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=129
2026-01-12 12:29:47 +00:00
5fc8640821 Accepting request 1325397 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1325397
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=61
2026-01-06 16:41:25 +00:00
b97e457622 - Update to version 2.45.0
* Adding Agent Identity bound token support and handling certificate
    mismatches with retries (#1890)
- from version 2.44.0
  * MDS connections use mTLS (#1856)
  * support Python 3.14 (#1822)
  * add ecdsa p-384 support (#1872)
  * Add shlex to correctly parse executable commands with spaces (#1855)
  * Implement token revocation in STS client and add revoke() method
    to ExternalAccountAuthorizedUser credentials (#1849)
  * Add temporary patch to workload cert logic to accomodate Cloud Run
    mis-configuration (#1880)
  * Delegate workload cert and key default lookup to helper function (#1877)
  * Use public refresh method for source credentials in
    ImpersonatedCredentials (#1884)
- Drop pytest9.patch, merged upstream
- Refresh python-google-auth-no-mock.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=127
2026-01-05 12:04:08 +00:00
7244c113f4 Accepting request 1320345 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1320345
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=60
2025-12-02 12:18:29 +00:00
4f8b89fba8 - Add upstream pytest9.patch to fix tests
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=125
2025-11-27 13:44:54 +00:00
75e08467ab Accepting request 1316970 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1316970
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=59
2025-11-11 18:19:38 +00:00
1c151ff518 - Update to version 2.43.0
* Add public wrapper for _mtls_helper.check_use_client_cert which
    enables mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set,
    when the MWID/X.509 cert sources detected (#1859) Add public
    wrapper for check_use_client_cert which enables mTLS if
    GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, when the MWID/X.509
    cert sources detected. Also, fix check_use_client_cert to return
    boolean value.
    Change #1848 added the check_use_client_cert method that helps know
    if client cert should be used for mTLS connection. However, that was
    in a private class, thus, created a public wrapper of the same function
    so that it can be used by python Client Libraries. Also, updated
    check_use_client_cert to return a boolean value instead of existing
    string value for better readability and future scope.
  * Enable mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE  is not set, if
    the MWID/X.509 cert sources detected (#1848) The Python SDK will
    use a hybrid approach for mTLS enablement:
  * If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is set
    (either true or false), the SDK will respect that setting. This is
    necessary for test scenarios and users who need to explicitly control
    mTLS behavior.
  * If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not
    set, the SDK will automatically enable mTLS only if it detects Managed
    Workload Identity (MWID) or X.509 Workforce Identity Federation (WIF)
    certificate sources. In other cases where the variable is not set, mTLS
    will remain disabled.
    ** This change also adds the helper method `check_use_client_cert` and
       it's unit test, which will be used for checking the criteria for setting
       the mTLS to true
    ** This change is only for Auth-Library, other changes will be created

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=123
2025-11-10 17:02:50 +00:00
2edae15cf3 Accepting request 1315328 from devel:languages:python
Forwarded request #1315294 from glaubitz

- Update to version 2.42.1
    * Catch ValueError for json.loads() (#1842)
  - from version 2.42.0
    * Add trust boundary support for external accounts. (#1809)
    * Read scopes from ADC json for impersoanted cred (#1820)
  - Refresh python-google-auth-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/1315328
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=58
2025-11-04 17:40:39 +00:00
7f0eb7ddd1 - Update to version 2.42.1
* Catch ValueError for json.loads() (#1842)
- from version 2.42.0
  * Add trust boundary support for external accounts. (#1809)
  * Read scopes from ADC json for impersoanted cred (#1820)
- Refresh python-google-auth-no-mock.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=121
2025-11-03 14:37:15 +00:00
655e371e78 Accepting request 1311034 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1311034
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=57
2025-10-14 16:05:48 +00:00
e21e9d9f67 - Update to version 2.41.1
* Suppress deprecation warning for ADC (#1815)
- from version 2.41.0
  * Add support for cachetools 6.0 (#1773)
  * Add trust boundary support for service accounts and impersonation. (#1778)
  * Deprecating load_credentials_from_dict (58b66ec)
  * Fix type error in credentials.py for python 3.7 and 3.8 (#1805)
  * Update user guide to include x509 feature. (#1802)
- Refresh patches for new version
  * python-google-auth-no-mock.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=119
2025-10-13 08:52:09 +00:00
f8c9888498 Accepting request 1285541 from devel:languages:python
- Convert to pip-based build

- Update to version 2.40.3
  * Auth fetch token from default endpoint (#1779)
  * Remove unnecessary call to mds service (#1769)
  * Retry 504 errors (#1767)

OBS-URL: https://build.opensuse.org/request/show/1285541
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=56
2025-06-14 14:17:18 +00:00
c400bf075a - Convert to pip-based build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=117
2025-06-13 15:25:51 +00:00
9e52cf27dc - Update to version 2.40.3
* Auth fetch token from default endpoint (#1779)
  * Remove unnecessary call to mds service (#1769)
  * Retry 504 errors (#1767)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=116
2025-06-13 10:47:22 +00:00
eeb001c5ba Accepting request 1281290 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1281290
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=55
2025-05-31 17:14:38 +00:00
413d891197 - Update to version 2.40.2
* Remove sync response logs in AuthorizedSession
  * Update test to consider new error message from cryptography (#1765)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=114
2025-05-30 07:58:02 +00:00
384672a2f1 Accepting request 1278548 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1278548
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-google-auth?expand=0&rev=54
2025-05-23 12:27:33 +00:00
42ffe31aeb Accepting request 1278404 from home:glaubitz:branches:devel:languages:python
- Update to version 2.40.1
  * Disable logging response body for async logs (#1756)
- from version 2.40.0
  * Add request response logging to auth (#1678)
  * Correct webauthn JSON parsing to be compliant with standard. (#1658)
- from version 2.39.0
  * Adds GA support for X.509 workload identity federation (#1695)
  * Add impersonated SA via local ADC support for fetch_id_token (#1740)
  * Add missing packaging dependency for feature requiring urllib3 (#1732)
  * Add request timeout for MDS requests (#1699)
  * Explicitly declare support for Python 3.13 ([#1741)
- Refresh python-google-auth-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/1278404
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=112
2025-05-20 08:16:44 +00:00
5 changed files with 153 additions and 477 deletions

Binary file not shown.

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:833229070a9dfee1a353ae9877dcd2dec069a8281a4e72e72f77d4a70ff945da
size 323719

View File

@@ -1,465 +0,0 @@
diff -Nru google_auth-2.35.0.orig/tests/compute_engine/test_credentials.py google_auth-2.35.0/tests/compute_engine/test_credentials.py
--- google_auth-2.35.0.orig/tests/compute_engine/test_credentials.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/compute_engine/test_credentials.py 2024-10-01 14:18:31.093500346 +0000
@@ -14,7 +14,7 @@
import base64
import datetime
-import mock
+from unittest import mock
import pytest # type: ignore
import responses # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/compute_engine/test__metadata.py google_auth-2.35.0/tests/compute_engine/test__metadata.py
--- google_auth-2.35.0.orig/tests/compute_engine/test__metadata.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/compute_engine/test__metadata.py 2024-10-01 14:18:31.085500296 +0000
@@ -18,7 +18,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/conftest.py google_auth-2.35.0/tests/conftest.py
--- google_auth-2.35.0.orig/tests/conftest.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/conftest.py 2024-10-01 14:18:31.113500470 +0000
@@ -15,7 +15,7 @@
import os
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/crypt/test__python_rsa.py google_auth-2.35.0/tests/crypt/test__python_rsa.py
--- google_auth-2.35.0.orig/tests/crypt/test__python_rsa.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/crypt/test__python_rsa.py 2024-10-01 14:18:31.121500521 +0000
@@ -16,7 +16,7 @@
import json
import os
-import mock
+from unittest import mock
from pyasn1_modules import pem # type: ignore
import pytest # type: ignore
import rsa # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_challenges.py google_auth-2.35.0/tests/oauth2/test_challenges.py
--- google_auth-2.35.0.orig/tests/oauth2/test_challenges.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_challenges.py 2024-10-01 14:18:31.137500621 +0000
@@ -18,7 +18,7 @@
import os
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
import pyu2f # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test__client.py google_auth-2.35.0/tests/oauth2/test__client.py
--- google_auth-2.35.0.orig/tests/oauth2/test__client.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test__client.py 2024-10-01 14:18:31.137500621 +0000
@@ -18,7 +18,7 @@
import os
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_credentials.py google_auth-2.35.0/tests/oauth2/test_credentials.py
--- google_auth-2.35.0.orig/tests/oauth2/test_credentials.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_credentials.py 2024-10-01 14:18:31.137500621 +0000
@@ -18,7 +18,7 @@
import pickle
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_gdch_credentials.py google_auth-2.35.0/tests/oauth2/test_gdch_credentials.py
--- google_auth-2.35.0.orig/tests/oauth2/test_gdch_credentials.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_gdch_credentials.py 2024-10-01 14:18:31.141500645 +0000
@@ -17,7 +17,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
import requests
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_id_token.py google_auth-2.35.0/tests/oauth2/test_id_token.py
--- google_auth-2.35.0.orig/tests/oauth2/test_id_token.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_id_token.py 2024-10-01 14:18:31.141500645 +0000
@@ -15,7 +15,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import environment_vars
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_reauth.py google_auth-2.35.0/tests/oauth2/test_reauth.py
--- google_auth-2.35.0.orig/tests/oauth2/test_reauth.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_reauth.py 2024-10-01 14:18:31.141500645 +0000
@@ -14,7 +14,7 @@
import copy
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_service_account.py google_auth-2.35.0/tests/oauth2/test_service_account.py
--- google_auth-2.35.0.orig/tests/oauth2/test_service_account.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_service_account.py 2024-10-01 14:18:31.145500670 +0000
@@ -16,7 +16,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_sts.py google_auth-2.35.0/tests/oauth2/test_sts.py
--- google_auth-2.35.0.orig/tests/oauth2/test_sts.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_sts.py 2024-10-01 14:18:31.145500670 +0000
@@ -16,7 +16,7 @@
import json
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_webauthn_handler_factory.py google_auth-2.35.0/tests/oauth2/test_webauthn_handler_factory.py
--- google_auth-2.35.0.orig/tests/oauth2/test_webauthn_handler_factory.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_webauthn_handler_factory.py 2024-10-01 14:18:31.149500695 +0000
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
import pytest # type: ignore
from google.oauth2 import webauthn_handler
diff -Nru google_auth-2.35.0.orig/tests/oauth2/test_webauthn_handler.py google_auth-2.35.0/tests/oauth2/test_webauthn_handler.py
--- google_auth-2.35.0.orig/tests/oauth2/test_webauthn_handler.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/oauth2/test_webauthn_handler.py 2024-10-01 14:18:31.145500670 +0000
@@ -1,7 +1,7 @@
import json
import struct
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.35.0.orig/tests/test_app_engine.py google_auth-2.35.0/tests/test_app_engine.py
--- google_auth-2.35.0.orig/tests/test_app_engine.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_app_engine.py 2024-10-01 14:18:31.217501119 +0000
@@ -14,7 +14,7 @@
import datetime
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import app_engine
diff -Nru google_auth-2.35.0.orig/tests/test_aws.py google_auth-2.35.0/tests/test_aws.py
--- google_auth-2.35.0.orig/tests/test_aws.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_aws.py 2024-10-01 14:18:31.233501219 +0000
@@ -18,7 +18,7 @@
import os
import urllib.parse
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers, external_account
diff -Nru google_auth-2.35.0.orig/tests/test__cloud_sdk.py google_auth-2.35.0/tests/test__cloud_sdk.py
--- google_auth-2.35.0.orig/tests/test__cloud_sdk.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test__cloud_sdk.py 2024-10-01 14:18:31.149500695 +0000
@@ -18,7 +18,7 @@
import subprocess
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _cloud_sdk
diff -Nru google_auth-2.35.0.orig/tests/test_credentials.py google_auth-2.35.0/tests/test_credentials.py
--- google_auth-2.35.0.orig/tests/test_credentials.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_credentials.py 2024-10-01 14:18:31.253501344 +0000
@@ -14,7 +14,7 @@
import datetime
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/test__default.py google_auth-2.35.0/tests/test__default.py
--- google_auth-2.35.0.orig/tests/test__default.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test__default.py 2024-10-01 14:18:31.153500720 +0000
@@ -15,7 +15,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _default
diff -Nru google_auth-2.35.0.orig/tests/test_downscoped.py google_auth-2.35.0/tests/test_downscoped.py
--- google_auth-2.35.0.orig/tests/test_downscoped.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_downscoped.py 2024-10-01 14:18:31.293501594 +0000
@@ -17,7 +17,7 @@
import json
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/test__exponential_backoff.py google_auth-2.35.0/tests/test__exponential_backoff.py
--- google_auth-2.35.0.orig/tests/test__exponential_backoff.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test__exponential_backoff.py 2024-10-01 14:18:31.165500795 +0000
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _exponential_backoff
diff -Nru google_auth-2.35.0.orig/tests/test_external_account_authorized_user.py google_auth-2.35.0/tests/test_external_account_authorized_user.py
--- google_auth-2.35.0.orig/tests/test_external_account_authorized_user.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_external_account_authorized_user.py 2024-10-01 14:18:31.337501868 +0000
@@ -16,7 +16,7 @@
import http.client as http_client
import json
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.35.0.orig/tests/test_external_account.py google_auth-2.35.0/tests/test_external_account.py
--- google_auth-2.35.0.orig/tests/test_external_account.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_external_account.py 2024-10-01 14:18:31.317501743 +0000
@@ -17,7 +17,7 @@
import json
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/test_iam.py google_auth-2.35.0/tests/test_iam.py
--- google_auth-2.35.0.orig/tests/test_iam.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_iam.py 2024-10-01 14:18:31.349501943 +0000
@@ -17,7 +17,7 @@
import http.client as http_client
import json
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/test_identity_pool.py google_auth-2.35.0/tests/test_identity_pool.py
--- google_auth-2.35.0.orig/tests/test_identity_pool.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_identity_pool.py 2024-10-01 14:18:31.357501992 +0000
@@ -18,7 +18,7 @@
import os
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers, external_account
diff -Nru google_auth-2.35.0.orig/tests/test_impersonated_credentials.py google_auth-2.35.0/tests/test_impersonated_credentials.py
--- google_auth-2.35.0.orig/tests/test_impersonated_credentials.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_impersonated_credentials.py 2024-10-01 14:18:31.377502117 +0000
@@ -17,7 +17,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/test_jwt.py google_auth-2.35.0/tests/test_jwt.py
--- google_auth-2.35.0.orig/tests/test_jwt.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_jwt.py 2024-10-01 14:18:31.389502192 +0000
@@ -17,7 +17,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/test_metrics.py google_auth-2.35.0/tests/test_metrics.py
--- google_auth-2.35.0.orig/tests/test_metrics.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_metrics.py 2024-10-01 14:18:31.397502242 +0000
@@ -14,7 +14,7 @@
import platform
-import mock
+from unittest import mock
from google.auth import metrics
from google.auth import version
diff -Nru google_auth-2.35.0.orig/tests/test__oauth2client.py google_auth-2.35.0/tests/test__oauth2client.py
--- google_auth-2.35.0.orig/tests/test__oauth2client.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test__oauth2client.py 2024-10-01 14:18:31.169500820 +0000
@@ -17,7 +17,7 @@
import os
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
try:
diff -Nru google_auth-2.35.0.orig/tests/test_pluggable.py google_auth-2.35.0/tests/test_pluggable.py
--- google_auth-2.35.0.orig/tests/test_pluggable.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test_pluggable.py 2024-10-01 14:18:31.417502367 +0000
@@ -16,7 +16,7 @@
import os
import subprocess
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.35.0.orig/tests/test__refresh_worker.py google_auth-2.35.0/tests/test__refresh_worker.py
--- google_auth-2.35.0.orig/tests/test__refresh_worker.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/test__refresh_worker.py 2024-10-01 14:18:31.173500845 +0000
@@ -17,7 +17,7 @@
import threading
import time
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _refresh_worker, credentials, exceptions
diff -Nru google_auth-2.35.0.orig/tests/transport/aio/test_aiohttp.py google_auth-2.35.0/tests/transport/aio/test_aiohttp.py
--- google_auth-2.35.0.orig/tests/transport/aio/test_aiohttp.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/aio/test_aiohttp.py 2024-10-01 14:18:31.453502591 +0000
@@ -15,7 +15,7 @@
import asyncio
from aioresponses import aioresponses # type: ignore
-from mock import AsyncMock, Mock, patch
+from unittest.mock import AsyncMock, Mock, patch
import pytest # type: ignore
import pytest_asyncio # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/transport/aio/test_sessions.py google_auth-2.35.0/tests/transport/aio/test_sessions.py
--- google_auth-2.35.0.orig/tests/transport/aio/test_sessions.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/aio/test_sessions.py 2024-10-01 14:18:31.465502666 +0000
@@ -16,7 +16,7 @@
from typing import AsyncGenerator
from aioresponses import aioresponses # type: ignore
-from mock import Mock, patch
+from unittest.mock import Mock, patch
import pytest # type: ignore
from google.auth.aio.credentials import AnonymousCredentials
diff -Nru google_auth-2.35.0.orig/tests/transport/test__custom_tls_signer.py google_auth-2.35.0/tests/transport/test__custom_tls_signer.py
--- google_auth-2.35.0.orig/tests/transport/test__custom_tls_signer.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/test__custom_tls_signer.py 2024-10-01 14:18:31.493502841 +0000
@@ -15,7 +15,7 @@
import ctypes
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore
import urllib3.contrib.pyopenssl # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/transport/test_grpc.py google_auth-2.35.0/tests/transport/test_grpc.py
--- google_auth-2.35.0.orig/tests/transport/test_grpc.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/test_grpc.py 2024-10-01 14:18:31.529503065 +0000
@@ -16,7 +16,7 @@
import os
import time
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.35.0.orig/tests/transport/test__mtls_helper.py google_auth-2.35.0/tests/transport/test__mtls_helper.py
--- google_auth-2.35.0.orig/tests/transport/test__mtls_helper.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/test__mtls_helper.py 2024-10-01 14:18:31.513502965 +0000
@@ -15,7 +15,7 @@
import os
import re
-import mock
+from unittest import mock
from OpenSSL import crypto
import pytest # type: ignore
diff -Nru google_auth-2.35.0.orig/tests/transport/test_mtls.py google_auth-2.35.0/tests/transport/test_mtls.py
--- google_auth-2.35.0.orig/tests/transport/test_mtls.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/test_mtls.py 2024-10-01 14:18:31.549503190 +0000
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.35.0.orig/tests/transport/test_requests.py google_auth-2.35.0/tests/transport/test_requests.py
--- google_auth-2.35.0.orig/tests/transport/test_requests.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/test_requests.py 2024-10-01 14:18:31.561503265 +0000
@@ -19,7 +19,7 @@
import sys
import freezegun
-import mock
+from unittest import mock
import OpenSSL
import pytest # type: ignore
import requests
diff -Nru google_auth-2.35.0.orig/tests/transport/test_urllib3.py google_auth-2.35.0/tests/transport/test_urllib3.py
--- google_auth-2.35.0.orig/tests/transport/test_urllib3.py 2024-09-19 18:05:39.000000000 +0000
+++ google_auth-2.35.0/tests/transport/test_urllib3.py 2024-10-01 14:18:31.573503339 +0000
@@ -16,7 +16,7 @@
import os
import sys
-import mock
+from unittest import mock
import OpenSSL
import pytest # type: ignore
import urllib3 # type: ignore

View File

@@ -1,3 +1,146 @@
-------------------------------------------------------------------
Mon Jan 12 11:00:50 UTC 2026 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.47.0
* drop `cachetools` dependency in favor of simple local implementation (#1590)
* Python 3.8 support (#1918)
- from version 2.46.0
* update urllib3 docstrings for v2 compatibility (#1903)
* Recognize workload certificate config in has_default_client_cert_source
for mTLS for Agentic Identities (#1907)
* add types to default and verify_token and Request __init__ based on comments
in the source code. (#1588)
* fix the document of secure_authorized_session (#1536)
* remove setup.cfg configuration for creating universal wheels (#1693)
* use .read() instead of .content.read() in aiohttp transport (#1899)
* raise RefreshError for missing token in impersonated credentials (#1897)
* Fix test coverage for mtls_helper (#1886)
- Drop python-google-auth-no-mock.patch, fixed upstream
- Update BuildRequires and Requires from setup.py
-------------------------------------------------------------------
Mon Jan 5 10:54:00 UTC 2026 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.45.0
* Adding Agent Identity bound token support and handling certificate
mismatches with retries (#1890)
- from version 2.44.0
* MDS connections use mTLS (#1856)
* support Python 3.14 (#1822)
* add ecdsa p-384 support (#1872)
* Add shlex to correctly parse executable commands with spaces (#1855)
* Implement token revocation in STS client and add revoke() method
to ExternalAccountAuthorizedUser credentials (#1849)
* Add temporary patch to workload cert logic to accomodate Cloud Run
mis-configuration (#1880)
* Delegate workload cert and key default lookup to helper function (#1877)
* Use public refresh method for source credentials in
ImpersonatedCredentials (#1884)
- Drop pytest9.patch, merged upstream
- Refresh python-google-auth-no-mock.patch
-------------------------------------------------------------------
Thu Nov 27 09:54:02 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Add upstream pytest9.patch to fix tests
-------------------------------------------------------------------
Mon Nov 10 09:08:33 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.43.0
* Add public wrapper for _mtls_helper.check_use_client_cert which
enables mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set,
when the MWID/X.509 cert sources detected (#1859) Add public
wrapper for check_use_client_cert which enables mTLS if
GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, when the MWID/X.509
cert sources detected. Also, fix check_use_client_cert to return
boolean value.
Change #1848 added the check_use_client_cert method that helps know
if client cert should be used for mTLS connection. However, that was
in a private class, thus, created a public wrapper of the same function
so that it can be used by python Client Libraries. Also, updated
check_use_client_cert to return a boolean value instead of existing
string value for better readability and future scope.
* Enable mTLS if GOOGLE_API_USE_CLIENT_CERTIFICATE is not set, if
the MWID/X.509 cert sources detected (#1848) The Python SDK will
use a hybrid approach for mTLS enablement:
* If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is set
(either true or false), the SDK will respect that setting. This is
necessary for test scenarios and users who need to explicitly control
mTLS behavior.
* If the GOOGLE_API_USE_CLIENT_CERTIFICATE environment variable is not
set, the SDK will automatically enable mTLS only if it detects Managed
Workload Identity (MWID) or X.509 Workforce Identity Federation (WIF)
certificate sources. In other cases where the variable is not set, mTLS
will remain disabled.
** This change also adds the helper method `check_use_client_cert` and
it's unit test, which will be used for checking the criteria for setting
the mTLS to true
** This change is only for Auth-Library, other changes will be created
for Client-Library use-cases.
* onboard `google-auth` to librarian (#1838) This PR onboards `google-auth`
library to the Librarian system.
-------------------------------------------------------------------
Mon Nov 3 12:35:20 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.42.1
* Catch ValueError for json.loads() (#1842)
- from version 2.42.0
* Add trust boundary support for external accounts. (#1809)
* Read scopes from ADC json for impersoanted cred (#1820)
- Refresh python-google-auth-no-mock.patch
-------------------------------------------------------------------
Thu Oct 9 14:33:25 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.41.1
* Suppress deprecation warning for ADC (#1815)
- from version 2.41.0
* Add support for cachetools 6.0 (#1773)
* Add trust boundary support for service accounts and impersonation. (#1778)
* Deprecating load_credentials_from_dict (58b66ec)
* Fix type error in credentials.py for python 3.7 and 3.8 (#1805)
* Update user guide to include x509 feature. (#1802)
- Refresh patches for new version
* python-google-auth-no-mock.patch
-------------------------------------------------------------------
Fri Jun 13 15:25:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
- Convert to pip-based build
-------------------------------------------------------------------
Wed Jun 11 08:59:54 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.40.3
* Auth fetch token from default endpoint (#1779)
* Remove unnecessary call to mds service (#1769)
* Retry 504 errors (#1767)
-------------------------------------------------------------------
Fri May 30 06:54:17 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.40.2
* Remove sync response logs in AuthorizedSession
* Update test to consider new error message from cryptography (#1765)
-------------------------------------------------------------------
Mon May 19 13:09:42 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to version 2.40.1
* Disable logging response body for async logs (#1756)
- from version 2.40.0
* Add request response logging to auth (#1678)
* Correct webauthn JSON parsing to be compliant with standard. (#1658)
- from version 2.39.0
* Adds GA support for X.509 workload identity federation (#1695)
* Add impersonated SA via local ADC support for fetch_id_token (#1740)
* Add missing packaging dependency for feature requiring urllib3 (#1732)
* Add request timeout for MDS requests (#1699)
* Explicitly declare support for Python 3.13 ([#1741)
- Refresh python-google-auth-no-mock.patch
-------------------------------------------------------------------
Wed Feb 5 13:24:01 UTC 2025 - Markéta Machová <mmachova@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-google-auth
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,21 +18,19 @@
%{?sle15_python_module_pythons}
Name: python-google-auth
Version: 2.38.0
Version: 2.47.0
Release: 0
Summary: Google Authentication Library
License: Apache-2.0
URL: https://github.com/googleapis/google-auth-library-python
Source: https://files.pythonhosted.org/packages/source/g/google-auth/google_auth-%{version}.tar.gz
# https://github.com/googleapis/google-auth-library-python/issues/1055
Patch1: python-google-auth-no-mock.patch
Source: https://files.pythonhosted.org/packages/source/g/google_auth/google_auth-%{version}.tar.gz
BuildRequires: %{python_module Flask}
BuildRequires: %{python_module PyJWT >= 2.0}
BuildRequires: %{python_module aiohttp >= 3.6.2}
BuildRequires: %{python_module aioresponses}
BuildRequires: %{python_module cachetools >= 2.0.0}
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module freezegun}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pyOpenSSL >= 22.0.0}
BuildRequires: %{python_module pyasn1-modules >= 0.2.1}
BuildRequires: %{python_module pytest-asyncio}
@@ -44,9 +42,9 @@ BuildRequires: %{python_module responses}
BuildRequires: %{python_module rsa >= 3.1.4}
BuildRequires: %{python_module setuptools >= 40.3.0}
BuildRequires: %{python_module urllib3}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-cachetools >= 2.0.0
Requires: python-pyasn1-modules >= 0.2.1
Requires: python-rsa >= 3.1.4
Requires: python-urllib3
@@ -66,10 +64,10 @@ This library simplifies using Googles various server-to-server authentication
%autosetup -p1 -n google_auth-%{version}
%build
%python_build
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check