Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-grpc-google-iam-v1 for openSUSE:Factory checked in at 2023-12-17 21:32:59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-grpc-google-iam-v1 (Old) and /work/SRC/openSUSE:Factory/.python-grpc-google-iam-v1.new.25432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-grpc-google-iam-v1" Sun Dec 17 21:32:59 2023 rev:5 rq:1133661 version:0.13.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-grpc-google-iam-v1/python-grpc-google-iam-v1.changes 2023-12-06 23:47:08.188851073 +0100 +++ /work/SRC/openSUSE:Factory/.python-grpc-google-iam-v1.new.25432/python-grpc-google-iam-v1.changes 2023-12-17 21:35:15.819991116 +0100 @@ -1,0 +2,7 @@ +Sat Dec 16 21:28:27 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.13.0: + * Add support for Python 3.12 (#64) + * Introduce compatibility with native namespace packages (#59) + +------------------------------------------------------------------- Old: ---- grpc-google-iam-v1-0.12.7.tar.gz New: ---- grpc-google-iam-v1-0.13.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-grpc-google-iam-v1.spec ++++++ --- /var/tmp/diff_new_pack.iIVq22/_old 2023-12-17 21:35:16.236006231 +0100 +++ /var/tmp/diff_new_pack.iIVq22/_new 2023-12-17 21:35:16.240006376 +0100 @@ -16,16 +16,17 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?sle15_python_module_pythons} Name: python-grpc-google-iam-v1 -Version: 0.12.7 +Version: 0.13.0 Release: 0 Summary: GRPC library for the google-iam-v1 service License: Apache-2.0 Group: Development/Languages/Python -URL: https://github.com/googleapis/googleapis +URL: https://github.com/googleapis/python-grpc-google-iam-v1 Source: https://files.pythonhosted.org/packages/source/g/grpc-google-iam-v1/grpc-google-iam-v1-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-googleapis-common-protos >= 1.56.0 @@ -44,10 +45,10 @@ %setup -q -n grpc-google-iam-v1-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} # No tests included in source tarball @@ -55,5 +56,6 @@ %files %{python_files} %doc README.rst %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/google/iam/ +%{python_sitelib}/grpc_google_iam_v1-%{version}.dist-info ++++++ grpc-google-iam-v1-0.12.7.tar.gz -> grpc-google-iam-v1-0.13.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/PKG-INFO new/grpc-google-iam-v1-0.13.0/PKG-INFO --- old/grpc-google-iam-v1-0.12.7/PKG-INFO 2023-11-09 22:24:24.674781600 +0100 +++ new/grpc-google-iam-v1-0.13.0/PKG-INFO 2023-12-07 20:18:54.186227300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: grpc-google-iam-v1 -Version: 0.12.7 +Version: 0.13.0 Summary: IAM API client library Home-page: https://github.com/googleapis/python-grpc-google-iam-v1 Author: Google LLC @@ -17,6 +17,7 @@ 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 @@ -46,7 +47,7 @@ .. _Product Documentation: https://cloud.google.com/iam Installation -~~~~~~~~~~~~ +^^^^^^^^^^^^ Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to create isolated Python environments. The basic problem it addresses is one of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/README.rst new/grpc-google-iam-v1-0.13.0/README.rst --- old/grpc-google-iam-v1-0.12.7/README.rst 2023-11-09 22:21:51.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/README.rst 2023-12-07 20:16:10.000000000 +0100 @@ -19,7 +19,7 @@ .. _Product Documentation: https://cloud.google.com/iam Installation -~~~~~~~~~~~~ +^^^^^^^^^^^^ Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to create isolated Python environments. The basic problem it addresses is one of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/google/__init__.py new/grpc-google-iam-v1-0.13.0/google/__init__.py --- old/grpc-google-iam-v1-0.12.7/google/__init__.py 2023-11-09 22:21:51.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/google/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -# Copyright 2022 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__("pkg_resources").declare_namespace(__name__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/google/iam/__init__.py new/grpc-google-iam-v1-0.13.0/google/iam/__init__.py --- old/grpc-google-iam-v1-0.12.7/google/iam/__init__.py 2023-11-09 22:21:51.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/google/iam/__init__.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,15 +0,0 @@ -# Copyright 2022 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__("pkg_resources").declare_namespace(__name__) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/grpc_google_iam_v1.egg-info/PKG-INFO new/grpc-google-iam-v1-0.13.0/grpc_google_iam_v1.egg-info/PKG-INFO --- old/grpc-google-iam-v1-0.12.7/grpc_google_iam_v1.egg-info/PKG-INFO 2023-11-09 22:24:24.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/grpc_google_iam_v1.egg-info/PKG-INFO 2023-12-07 20:18:54.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: grpc-google-iam-v1 -Version: 0.12.7 +Version: 0.13.0 Summary: IAM API client library Home-page: https://github.com/googleapis/python-grpc-google-iam-v1 Author: Google LLC @@ -17,6 +17,7 @@ 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 @@ -46,7 +47,7 @@ .. _Product Documentation: https://cloud.google.com/iam Installation -~~~~~~~~~~~~ +^^^^^^^^^^^^ Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to create isolated Python environments. The basic problem it addresses is one of diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/grpc_google_iam_v1.egg-info/SOURCES.txt new/grpc-google-iam-v1-0.13.0/grpc_google_iam_v1.egg-info/SOURCES.txt --- old/grpc-google-iam-v1-0.12.7/grpc_google_iam_v1.egg-info/SOURCES.txt 2023-11-09 22:24:24.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/grpc_google_iam_v1.egg-info/SOURCES.txt 2023-12-07 20:18:54.000000000 +0100 @@ -3,8 +3,6 @@ README.rst setup.cfg setup.py -google/__init__.py -google/iam/__init__.py google/iam/v1/__init__.py google/iam/v1/iam_policy.proto google/iam/v1/iam_policy_pb2.py @@ -21,7 +19,8 @@ grpc_google_iam_v1.egg-info/PKG-INFO grpc_google_iam_v1.egg-info/SOURCES.txt grpc_google_iam_v1.egg-info/dependency_links.txt -grpc_google_iam_v1.egg-info/namespace_packages.txt grpc_google_iam_v1.egg-info/not-zip-safe grpc_google_iam_v1.egg-info/requires.txt -grpc_google_iam_v1.egg-info/top_level.txt \ No newline at end of file +grpc_google_iam_v1.egg-info/top_level.txt +tests/unit/test_google_iam.py +tests/unit/test_packaging.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/grpc_google_iam_v1.egg-info/namespace_packages.txt new/grpc-google-iam-v1-0.13.0/grpc_google_iam_v1.egg-info/namespace_packages.txt --- old/grpc-google-iam-v1-0.12.7/grpc_google_iam_v1.egg-info/namespace_packages.txt 2023-11-09 22:24:24.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/grpc_google_iam_v1.egg-info/namespace_packages.txt 1970-01-01 01:00:00.000000000 +0100 @@ -1,2 +0,0 @@ -google -google.iam diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/setup.py new/grpc-google-iam-v1-0.13.0/setup.py --- old/grpc-google-iam-v1-0.12.7/setup.py 2023-11-09 22:21:51.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/setup.py 2023-12-07 20:16:10.000000000 +0100 @@ -22,7 +22,7 @@ name = "grpc-google-iam-v1" description = "IAM API client library" -version = "0.12.7" +version = "0.13.0" url = "https://github.com/googleapis/python-grpc-google-iam-v1" release_status = "Development Status :: 4 - Beta" dependencies = [ @@ -39,15 +39,10 @@ packages = [ package - for package in setuptools.PEP420PackageFinder.find() + for package in setuptools.find_namespace_packages() if package.startswith("google") ] -namespaces = ["google"] -if "google.iam" in packages: - namespaces.append("google.iam") - - setuptools.setup( name=name, version=version, @@ -68,13 +63,13 @@ "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, python_requires=">=3.7", - namespace_packages=namespaces, install_requires=dependencies, include_package_data=True, zip_safe=False, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/tests/unit/test_google_iam.py new/grpc-google-iam-v1-0.13.0/tests/unit/test_google_iam.py --- old/grpc-google-iam-v1-0.12.7/tests/unit/test_google_iam.py 1970-01-01 01:00:00.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/tests/unit/test_google_iam.py 2023-12-07 20:16:10.000000000 +0100 @@ -0,0 +1,20 @@ +# 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. + +from google.iam.v1 import policy_pb2 + +def test_create_policy(): + # Check that the import works + # and that an Policy instance can be instantiated + policy_pb2.Policy() \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/grpc-google-iam-v1-0.12.7/tests/unit/test_packaging.py new/grpc-google-iam-v1-0.13.0/tests/unit/test_packaging.py --- old/grpc-google-iam-v1-0.12.7/tests/unit/test_packaging.py 1970-01-01 01:00:00.000000000 +0100 +++ new/grpc-google-iam-v1-0.13.0/tests/unit/test_packaging.py 2023-12-07 20:16:10.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 ``grpc-google-iam-v1``. + 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.iam`` namespace package should not be masked + # by the presence of ``grpc-google-iam-v1``. + google_iam = tmp_path / "google" / "iam" + google_iam.mkdir() + google_iam.joinpath("othermod.py").write_text("") + env = dict(os.environ, PYTHONPATH=str(tmp_path)) + cmd = [sys.executable, "-m", "google.iam.othermod"] + subprocess.check_call(cmd, env=env)