Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-google-auth for openSUSE:Factory checked in at 2026-04-14 17:48:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-google-auth (Old) and /work/SRC/openSUSE:Factory/.python-google-auth.new.21863 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-auth" Tue Apr 14 17:48:37 2026 rev:65 rq:1346478 version:2.49.2 Changes: -------- --- /work/SRC/openSUSE:Factory/python-google-auth/python-google-auth.changes 2026-03-18 16:50:31.485077893 +0100 +++ /work/SRC/openSUSE:Factory/.python-google-auth.new.21863/python-google-auth.changes 2026-04-14 17:48:54.641005783 +0200 @@ -1,0 +2,6 @@ +Mon Apr 13 11:33:07 UTC 2026 - John Paul Adrian Glaubitz <[email protected]> + +- Update to version 2.49.2 + * Use requests transport for GCE MDS (#16480) + +------------------------------------------------------------------- Old: ---- google_auth-2.49.1.tar.gz New: ---- google_auth-2.49.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-google-auth.spec ++++++ --- /var/tmp/diff_new_pack.2UVjon/_old 2026-04-14 17:48:55.417037860 +0200 +++ /var/tmp/diff_new_pack.2UVjon/_new 2026-04-14 17:48:55.421038026 +0200 @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-google-auth -Version: 2.49.1 +Version: 2.49.2 Release: 0 Summary: Google Authentication Library License: Apache-2.0 ++++++ google_auth-2.49.1.tar.gz -> google_auth-2.49.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google_auth-2.49.1/PKG-INFO new/google_auth-2.49.2/PKG-INFO --- old/google_auth-2.49.1/PKG-INFO 2026-03-12 20:24:32.433824800 +0100 +++ new/google_auth-2.49.2/PKG-INFO 2026-04-10 02:35:01.403075000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: google-auth -Version: 2.49.1 +Version: 2.49.2 Summary: Google Authentication Library Home-page: https://github.com/googleapis/google-auth-library-python Author: Google Cloud Platform diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google_auth-2.49.1/google/auth/_default.py new/google_auth-2.49.2/google/auth/_default.py --- old/google_auth-2.49.1/google/auth/_default.py 2026-03-12 20:23:55.000000000 +0100 +++ new/google_auth-2.49.2/google/auth/_default.py 2026-04-10 02:34:08.000000000 +0200 @@ -27,11 +27,10 @@ from google.auth import environment_vars from google.auth import exceptions -import google.auth.transport._http_client if TYPE_CHECKING: # pragma: NO COVER - from google.auth.credentials import Credentials # noqa: F401 - from google.auth.transport import Request # noqa: F401 + import google.auth.credentials.Credentials # type: ignore + import google.auth.transport.Request # type: ignore _LOGGER = logging.getLogger(__name__) @@ -390,22 +389,19 @@ def _get_gce_credentials(request=None, quota_project_id=None): """Gets credentials and project ID from the GCE Metadata Service.""" - # Ping requires a transport, but we want application default credentials - # to require no arguments. So, we'll use the _http_client transport which - # uses http.client. This is only acceptable because the metadata server - # doesn't do SSL and never requires proxies. - # While this library is normally bundled with compute_engine, there are # some cases where it's not available, so we tolerate ImportError. + # Compute Engine requires optional `requests` dependency. try: from google.auth import compute_engine from google.auth.compute_engine import _metadata + import google.auth.transport.requests except ImportError: _LOGGER.warning("Import of Compute Engine auth library failed.") return None, None if request is None: - request = google.auth.transport._http_client.Request() + request = google.auth.transport.requests.Request() if _metadata.is_on_gce(request=request): # Get the project ID. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google_auth-2.49.1/google/auth/transport/_http_client.py new/google_auth-2.49.2/google/auth/transport/_http_client.py --- old/google_auth-2.49.1/google/auth/transport/_http_client.py 2026-03-12 20:23:52.000000000 +0100 +++ new/google_auth-2.49.2/google/auth/transport/_http_client.py 2026-04-10 02:34:11.000000000 +0200 @@ -94,7 +94,7 @@ if parts.scheme != "http": raise exceptions.TransportError( "http.client transport only supports the http scheme, {}" - "was specified".format(parts.scheme) + " was specified".format(parts.scheme) ) connection = http_client.HTTPConnection(parts.netloc, timeout=timeout) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google_auth-2.49.1/google/auth/version.py new/google_auth-2.49.2/google/auth/version.py --- old/google_auth-2.49.1/google/auth/version.py 2026-03-12 20:23:50.000000000 +0100 +++ new/google_auth-2.49.2/google/auth/version.py 2026-04-10 02:34:11.000000000 +0200 @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "2.49.1" +__version__ = "2.49.2" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google_auth-2.49.1/google_auth.egg-info/PKG-INFO new/google_auth-2.49.2/google_auth.egg-info/PKG-INFO --- old/google_auth-2.49.1/google_auth.egg-info/PKG-INFO 2026-03-12 20:24:32.000000000 +0100 +++ new/google_auth-2.49.2/google_auth.egg-info/PKG-INFO 2026-04-10 02:35:01.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.4 Name: google-auth -Version: 2.49.1 +Version: 2.49.2 Summary: Google Authentication Library Home-page: https://github.com/googleapis/google-auth-library-python Author: Google Cloud Platform diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google_auth-2.49.1/tests/test__default.py new/google_auth-2.49.2/tests/test__default.py --- old/google_auth-2.49.1/tests/test__default.py 2026-03-12 20:23:54.000000000 +0100 +++ new/google_auth-2.49.2/tests/test__default.py 2026-04-10 02:34:11.000000000 +0200 @@ -891,6 +891,18 @@ @mock.patch( + "google.auth.compute_engine._metadata.is_on_gce", return_value=False, autospec=True +) [email protected]("google.auth.transport.requests.Request", autospec=True) +def test__get_gce_credentials_default_request(mock_request_cls, ping): + credentials, project_id = _default._get_gce_credentials() + mock_request_cls.assert_called_once() + ping.assert_called_with(request=mock_request_cls.return_value) + assert credentials is None + assert project_id is None + + [email protected]( "google.auth._default._get_explicit_environ_credentials", return_value=(MOCK_CREDENTIALS, mock.sentinel.project_id), autospec=True, @@ -1007,6 +1019,35 @@ @mock.patch( + "google.auth._default._get_explicit_environ_credentials", + return_value=(None, None), + autospec=True, +) [email protected]( + "google.auth._default._get_gcloud_sdk_credentials", + return_value=(None, None), + autospec=True, +) [email protected]( + "google.auth._default._get_gae_credentials", + return_value=(None, None), + autospec=True, +) [email protected]( + "google.auth.compute_engine._metadata.is_on_gce", return_value=False, autospec=True +) [email protected]("google.auth.transport.requests.Request", autospec=True) +def test_default_gce_triggers_request_creation( + mock_request_cls, is_on_gce, unused_gae, unused_sdk, unused_explicit +): + with pytest.raises(exceptions.DefaultCredentialsError): + _default.default() + + mock_request_cls.assert_called_once() + is_on_gce.assert_called_once_with(request=mock_request_cls.return_value) + + [email protected]( "google.auth._default._get_explicit_environ_credentials", return_value=(MOCK_CREDENTIALS, mock.sentinel.project_id), autospec=True,
