Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-google-cloud-core for openSUSE:Factory checked in at 2023-12-17 21:32:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-google-cloud-core (Old) and /work/SRC/openSUSE:Factory/.python-google-cloud-core.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-google-cloud-core" Sun Dec 17 21:32:16 2023 rev:14 rq:1133638 version:2.4.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-google-cloud-core/python-google-cloud-core.changes 2023-07-18 22:09:29.387446999 +0200 +++ /work/SRC/openSUSE:Factory/.python-google-cloud-core.new.25432/python-google-cloud-core.changes 2023-12-17 21:34:42.414777374 +0100 @@ -1,0 +2,9 @@ +Sat Dec 16 19:44:57 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 2.4.1: + * Fix regression with `google.cloud._helpers._NOW` (#266) + * Add support for Python 3.12 (#256) + * Introduce compatibility with native namespace packages (#260) +- switch to new python stack for SLE15 + +------------------------------------------------------------------- Old: ---- google-cloud-core-2.3.3.tar.gz New: ---- google-cloud-core-2.4.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-google-cloud-core.spec ++++++ --- /var/tmp/diff_new_pack.o7mknU/_old 2023-12-17 21:34:42.858793507 +0100 +++ /var/tmp/diff_new_pack.o7mknU/_new 2023-12-17 21:34:42.858793507 +0100 @@ -16,33 +16,27 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 +%{?sle15_python_module_pythons} Name: python-google-cloud-core -Version: 2.3.3 +Version: 2.4.1 Release: 0 Summary: Google Cloud API client core library License: Apache-2.0 URL: https://github.com/googleapis/python-cloud-core Source: https://files.pythonhosted.org/packages/source/g/google-cloud-core/google-cloud-core-%{version}.tar.gz +BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module google-api-core >= 1.31.6} BuildRequires: %{python_module google-auth >= 1.25.0} BuildRequires: %{python_module grpcio >= 1.38.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-google-api-core >= 1.31.6 Requires: python-google-auth >= 1.25.0 -Requires: python-six >= 1.12.0 Recommends: python-grpcio >= 1.38.0 BuildArch: noarch -%if %{with python2} -BuildRequires: python-futures -%endif -%ifpython2 -Requires: python-futures >= 3.2.0 -%endif %python_subpackages %description @@ -55,10 +49,10 @@ %setup -q -n google-cloud-core-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -68,5 +62,6 @@ %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/google/cloud +%{python_sitelib}/google_cloud_core-%{version}.dist-info ++++++ google-cloud-core-2.3.3.tar.gz -> google-cloud-core-2.4.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/MANIFEST.in new/google-cloud-core-2.4.1/MANIFEST.in --- old/google-cloud-core-2.3.3/MANIFEST.in 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/MANIFEST.in 2023-12-07 22:09:35.000000000 +0100 @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- # -# Copyright 2020 Google LLC +# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/PKG-INFO new/google-cloud-core-2.4.1/PKG-INFO --- old/google-cloud-core-2.3.3/PKG-INFO 2023-07-05 21:44:31.220204400 +0200 +++ new/google-cloud-core-2.4.1/PKG-INFO 2023-12-07 22:12:28.777151300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: google-cloud-core -Version: 2.3.3 +Version: 2.4.1 Summary: Google Cloud API client core library Home-page: https://github.com/googleapis/python-cloud-core Author: Google LLC @@ -16,11 +16,18 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Operating System :: OS Independent Classifier: Topic :: Internet Requires-Python: >=3.7 -Provides-Extra: grpc License-File: LICENSE +Requires-Dist: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.6 +Requires-Dist: google-auth<3.0dev,>=1.25.0 +Requires-Dist: importlib-metadata>1.0.0; python_version < "3.8" +Provides-Extra: grpc +Requires-Dist: grpcio<2.0dev,>=1.38.0; extra == "grpc" +Requires-Dist: grpcio-status<2.0.dev0,>=1.38.0; extra == "grpc" Core Helpers for Google Cloud Python Client Library =================================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google/__init__.py new/google-cloud-core-2.4.1/google/__init__.py --- old/google-cloud-core-2.3.3/google/__init__.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/google/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -# Copyright 2016 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Google namespace package.""" - -try: - import pkg_resources - - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - - __path__ = pkgutil.extend_path(__path__, __name__) # type: ignore diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google/cloud/__init__.py new/google-cloud-core-2.4.1/google/cloud/__init__.py --- old/google-cloud-core-2.3.3/google/cloud/__init__.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/google/cloud/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,24 +0,0 @@ -# Copyright 2016 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -"""Google Cloud namespace package.""" - -try: - import pkg_resources - - pkg_resources.declare_namespace(__name__) -except ImportError: - import pkgutil - - __path__ = pkgutil.extend_path(__path__, __name__) # type: ignore diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google/cloud/_helpers/__init__.py new/google-cloud-core-2.4.1/google/cloud/_helpers/__init__.py --- old/google-cloud-core-2.3.3/google/cloud/_helpers/__init__.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/google/cloud/_helpers/__init__.py 2023-12-07 22:09:35.000000000 +0100 @@ -38,8 +38,8 @@ except ImportError: # pragma: NO COVER grpc = None - -_NOW = datetime.datetime.utcnow # To be replaced by tests. +# `google.cloud._helpers._NOW` is deprecated +_NOW = datetime.datetime.utcnow UTC = datetime.timezone.utc # Singleton instance to be used throughout. _EPOCH = datetime.datetime(1970, 1, 1, tzinfo=datetime.timezone.utc) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google/cloud/_testing/__init__.py new/google-cloud-core-2.4.1/google/cloud/_testing/__init__.py --- old/google-cloud-core-2.3.3/google/cloud/_testing/__init__.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/google/cloud/_testing/__init__.py 2023-12-07 22:09:35.000000000 +0100 @@ -76,7 +76,6 @@ class _GAXBaseAPI(object): - _random_gax_error = False def __init__(self, **kw): diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google/cloud/obsolete/__init__.py new/google-cloud-core-2.4.1/google/cloud/obsolete/__init__.py --- old/google-cloud-core-2.3.3/google/cloud/obsolete/__init__.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/google/cloud/obsolete/__init__.py 2023-12-07 22:09:35.000000000 +0100 @@ -14,9 +14,14 @@ """Helpers for deprecated code and modules.""" +import sys import warnings -import pkg_resources + +if sys.version_info < (3, 8): + import importlib_metadata as metadata +else: + import importlib.metadata as metadata def complain(distribution_name): @@ -29,7 +34,7 @@ distribution_name (str): The name of the obsolete distribution. """ try: - pkg_resources.get_distribution(distribution_name) + metadata.distribution(distribution_name) warnings.warn( "The {pkg} distribution is now obsolete. " "Please `pip uninstall {pkg}`. " @@ -38,5 +43,5 @@ ), DeprecationWarning, ) - except pkg_resources.DistributionNotFound: + except metadata.PackageNotFoundError: pass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google/cloud/version.py new/google-cloud-core-2.4.1/google/cloud/version.py --- old/google-cloud-core-2.3.3/google/cloud/version.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/google/cloud/version.py 2023-12-07 22:09:35.000000000 +0100 @@ -12,4 +12,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "2.3.3" +__version__ = "2.4.1" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google_cloud_core.egg-info/PKG-INFO new/google-cloud-core-2.4.1/google_cloud_core.egg-info/PKG-INFO --- old/google-cloud-core-2.3.3/google_cloud_core.egg-info/PKG-INFO 2023-07-05 21:44:31.000000000 +0200 +++ new/google-cloud-core-2.4.1/google_cloud_core.egg-info/PKG-INFO 2023-12-07 22:12:28.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: google-cloud-core -Version: 2.3.3 +Version: 2.4.1 Summary: Google Cloud API client core library Home-page: https://github.com/googleapis/python-cloud-core Author: Google LLC @@ -16,11 +16,18 @@ Classifier: Programming Language :: Python :: 3.8 Classifier: Programming Language :: Python :: 3.9 Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 Classifier: Operating System :: OS Independent Classifier: Topic :: Internet Requires-Python: >=3.7 -Provides-Extra: grpc License-File: LICENSE +Requires-Dist: google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.6 +Requires-Dist: google-auth<3.0dev,>=1.25.0 +Requires-Dist: importlib-metadata>1.0.0; python_version < "3.8" +Provides-Extra: grpc +Requires-Dist: grpcio<2.0dev,>=1.38.0; extra == "grpc" +Requires-Dist: grpcio-status<2.0.dev0,>=1.38.0; extra == "grpc" Core Helpers for Google Cloud Python Client Library =================================================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google_cloud_core.egg-info/SOURCES.txt new/google-cloud-core-2.4.1/google_cloud_core.egg-info/SOURCES.txt --- old/google-cloud-core-2.3.3/google_cloud_core.egg-info/SOURCES.txt 2023-07-05 21:44:31.000000000 +0200 +++ new/google-cloud-core-2.4.1/google_cloud_core.egg-info/SOURCES.txt 2023-12-07 22:12:28.000000000 +0100 @@ -3,8 +3,6 @@ README.rst setup.cfg setup.py -google/__init__.py -google/cloud/__init__.py google/cloud/version.py google/cloud/_helpers/__init__.py google/cloud/_helpers/py.typed @@ -25,7 +23,6 @@ google_cloud_core.egg-info/PKG-INFO google_cloud_core.egg-info/SOURCES.txt google_cloud_core.egg-info/dependency_links.txt -google_cloud_core.egg-info/namespace_packages.txt google_cloud_core.egg-info/not-zip-safe google_cloud_core.egg-info/requires.txt google_cloud_core.egg-info/top_level.txt @@ -35,4 +32,5 @@ tests/unit/test__http.py tests/unit/test_client.py tests/unit/test_obsolete.py -tests/unit/test_operation.py \ No newline at end of file +tests/unit/test_operation.py +tests/unit/test_packaging.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google_cloud_core.egg-info/namespace_packages.txt new/google-cloud-core-2.4.1/google_cloud_core.egg-info/namespace_packages.txt --- old/google-cloud-core-2.3.3/google_cloud_core.egg-info/namespace_packages.txt 2023-07-05 21:44:31.000000000 +0200 +++ new/google-cloud-core-2.4.1/google_cloud_core.egg-info/namespace_packages.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -google -google.cloud diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/google_cloud_core.egg-info/requires.txt new/google-cloud-core-2.4.1/google_cloud_core.egg-info/requires.txt --- old/google-cloud-core-2.3.3/google_cloud_core.egg-info/requires.txt 2023-07-05 21:44:31.000000000 +0200 +++ new/google-cloud-core-2.4.1/google_cloud_core.egg-info/requires.txt 2023-12-07 22:12:28.000000000 +0100 @@ -1,5 +1,9 @@ google-api-core!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0,<3.0.0dev,>=1.31.6 google-auth<3.0dev,>=1.25.0 +[:python_version < "3.8"] +importlib-metadata>1.0.0 + [grpc] grpcio<2.0dev,>=1.38.0 +grpcio-status<2.0.dev0,>=1.38.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/setup.py new/google-cloud-core-2.4.1/setup.py --- old/google-cloud-core-2.3.3/setup.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/setup.py 2023-12-07 22:09:35.000000000 +0100 @@ -30,9 +30,14 @@ dependencies = [ "google-api-core >= 1.31.6, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", "google-auth >= 1.25.0, < 3.0dev", + "importlib-metadata > 1.0.0; python_version<'3.8'", ] -extras = {"grpc": "grpcio >= 1.38.0, < 2.0dev"} - +extras = { + "grpc": [ + "grpcio >= 1.38.0, < 2.0dev", + "grpcio-status >= 1.38.0, < 2.0.dev0", + ], +} # Setup boilerplate below this line. @@ -50,15 +55,11 @@ # Only include packages under the 'google' namespace. Do not include tests, # benchmarks, etc. packages = [ - package for package in setuptools.find_packages() if package.startswith("google") + package + for package in setuptools.find_namespace_packages() + if package.startswith("google") ] -# Determine which namespaces are needed. -namespaces = ["google"] -if "google.cloud" in packages: - namespaces.append("google.cloud") - - setuptools.setup( name=name, version=version, @@ -78,12 +79,13 @@ "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", "Operating System :: OS Independent", "Topic :: Internet", ], platforms="Posix; MacOS X; Windows", packages=packages, - namespace_packages=namespaces, install_requires=dependencies, extras_require=extras, python_requires=">=3.7", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/tests/unit/test__helpers.py new/google-cloud-core-2.4.1/tests/unit/test__helpers.py --- old/google-cloud-core-2.3.3/tests/unit/test__helpers.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/tests/unit/test__helpers.py 2023-12-07 22:09:35.000000000 +0100 @@ -138,7 +138,7 @@ from google.cloud._helpers import UTC from google.cloud._helpers import _microseconds_from_datetime - NOW = datetime.datetime.utcnow().replace(tzinfo=UTC) + NOW = datetime.datetime.now().replace(tzinfo=UTC) NOW_MICROS = _microseconds_from_datetime(NOW) MILLIS = NOW_MICROS // 1000 result = self._call_fut(NOW) @@ -163,7 +163,7 @@ from google.cloud._helpers import UTC from google.cloud._helpers import _microseconds_from_datetime - NOW = datetime.datetime.utcnow() + NOW = datetime.datetime.now(datetime.timezone.utc).replace(tzinfo=None) UTC_NOW = NOW.replace(tzinfo=UTC) UTC_NOW_MICROS = _microseconds_from_datetime(UTC_NOW) MILLIS = UTC_NOW_MICROS // 1000 @@ -672,7 +672,6 @@ class Test__name_from_project_path(unittest.TestCase): - PROJECT = "PROJECT" THING_NAME = "THING_NAME" TEMPLATE = r"projects/(?P<project>\w+)/things/(?P<name>\w+)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/tests/unit/test_operation.py new/google-cloud-core-2.4.1/tests/unit/test_operation.py --- old/google-cloud-core-2.3.3/tests/unit/test_operation.py 2023-07-05 21:41:57.000000000 +0200 +++ new/google-cloud-core-2.4.1/tests/unit/test_operation.py 2023-12-07 22:09:35.000000000 +0100 @@ -103,7 +103,6 @@ class TestOperation(unittest.TestCase): - OPERATION_NAME = "operations/projects/foo/instances/bar/operations/123" @staticmethod diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/google-cloud-core-2.3.3/tests/unit/test_packaging.py new/google-cloud-core-2.4.1/tests/unit/test_packaging.py --- old/google-cloud-core-2.3.3/tests/unit/test_packaging.py 1970-01-01 01:00:00.000000000 +0100 +++ new/google-cloud-core-2.4.1/tests/unit/test_packaging.py 2023-12-07 22:09:35.000000000 +0100 @@ -0,0 +1,37 @@ +# Copyright 2023 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import subprocess +import sys + + +def test_namespace_package_compat(tmp_path): + # The ``google`` namespace package should not be masked + # by the presence of ``google-cloud-core``. + google = tmp_path / "google" + google.mkdir() + google.joinpath("othermod.py").write_text("") + env = dict(os.environ, PYTHONPATH=str(tmp_path)) + cmd = [sys.executable, "-m", "google.othermod"] + subprocess.check_call(cmd, env=env) + + # The ``google.cloud`` namespace package should not be masked + # by the presence of ``google-cloud-core``. + google_cloud = tmp_path / "google" / "cloud" + google_cloud.mkdir() + google_cloud.joinpath("othermod.py").write_text("") + env = dict(os.environ, PYTHONPATH=str(tmp_path)) + cmd = [sys.executable, "-m", "google.cloud.othermod"] + subprocess.check_call(cmd, env=env)