From f71e34cc1fa107569dbbec82dd81b2ba5185c329322b0a5c5297b4a08990d5ea Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Wed, 8 Jun 2022 13:18:31 +0000 Subject: [PATCH 1/2] Accepting request 981318 from home:pgajdos:python - version update to 2.11.2 * lot of changes, see https://github.com/googleapis/python-kms/blob/main/CHANGELOG.md - python-mock is not required for build OBS-URL: https://build.opensuse.org/request/show/981318 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-kms?expand=0&rev=12 --- google-cloud-kms-1.3.0.tar.gz | 3 --- google-cloud-kms-2.11.2.tar.gz | 3 +++ python-google-cloud-kms.changes | 8 ++++++++ python-google-cloud-kms.spec | 20 ++++++++++++++++---- 4 files changed, 27 insertions(+), 7 deletions(-) delete mode 100644 google-cloud-kms-1.3.0.tar.gz create mode 100644 google-cloud-kms-2.11.2.tar.gz diff --git a/google-cloud-kms-1.3.0.tar.gz b/google-cloud-kms-1.3.0.tar.gz deleted file mode 100644 index 0a876e7..0000000 --- a/google-cloud-kms-1.3.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ef62aba9f91d590755815e3e701aa5b09f507ee9b7a0acce087f5c427fe1649e -size 63204 diff --git a/google-cloud-kms-2.11.2.tar.gz b/google-cloud-kms-2.11.2.tar.gz new file mode 100644 index 0000000..3051f8d --- /dev/null +++ b/google-cloud-kms-2.11.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fde710ff2f5f1d5cf63109bbf120f8da3a894c483afbbe9c909f36f9a0c1444 +size 117635 diff --git a/python-google-cloud-kms.changes b/python-google-cloud-kms.changes index 561c3b4..95a714b 100644 --- a/python-google-cloud-kms.changes +++ b/python-google-cloud-kms.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jun 8 12:43:21 UTC 2022 - pgajdos@suse.com + +- version update to 2.11.2 + * lot of changes, see + https://github.com/googleapis/python-kms/blob/main/CHANGELOG.md +- python-mock is not required for build + ------------------------------------------------------------------- Mon Apr 20 11:49:12 UTC 2020 - Tomáš Chvátal diff --git a/python-google-cloud-kms.spec b/python-google-cloud-kms.spec index 0906198..719a96a 100644 --- a/python-google-cloud-kms.spec +++ b/python-google-cloud-kms.spec @@ -1,7 +1,7 @@ # # spec file for package python-google-cloud-kms # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} %bcond_without python2 Name: python-google-cloud-kms -Version: 1.3.0 +Version: 2.11.2 Release: 0 Summary: Cloud Key Management Service (KMS) API API client library License: Apache-2.0 @@ -28,13 +28,17 @@ URL: https://github.com/GoogleCloudPlatform/google-cloud-python Source: https://files.pythonhosted.org/packages/source/g/google-cloud-kms/google-cloud-kms-%{version}.tar.gz BuildRequires: %{python_module google-api-core >= 1.14.0} BuildRequires: %{python_module grpc-google-iam-v1 >= 0.12.3} -BuildRequires: %{python_module mock} +BuildRequires: %{python_module proto-plus} +BuildRequires: %{python_module protobuf >= 3.19} +BuildRequires: %{python_module pytest-asyncio} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-google-api-core >= 1.14.0 Requires: python-grpc-google-iam-v1 >= 0.12.3 +Requires(post): update-alternatives +Requires(preun):update-alternatives BuildArch: noarch %if %{with python2} BuildRequires: python-enum34 @@ -56,13 +60,21 @@ Cloud Key Management Service (KMS) API API client library %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/fixup_kms_v1_keywords.py + +%post +%python_install_alternative fixup_kms_v1_keywords.py + +%postun +%python_uninstall_alternative fixup_kms_v1_keywords.py %check -%pytest +%pytest -k 'not test_list_global_key_rings' %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/* +%python_alternative %{_bindir}/fixup_kms_v1_keywords.py %changelog From be3738a7e9cdd38732f060ff89502184affdd3b633437ecb91d22b01d051f760 Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Thu, 9 Jun 2022 06:30:50 +0000 Subject: [PATCH 2/2] Accepting request 981410 from home:pgajdos:python - run just unit tests OBS-URL: https://build.opensuse.org/request/show/981410 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-cloud-kms?expand=0&rev=13 --- python-google-cloud-kms.changes | 5 +++++ python-google-cloud-kms.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-google-cloud-kms.changes b/python-google-cloud-kms.changes index 95a714b..a6dcae4 100644 --- a/python-google-cloud-kms.changes +++ b/python-google-cloud-kms.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 9 05:22:57 UTC 2022 - pgajdos@suse.com + +- run just unit tests + ------------------------------------------------------------------- Wed Jun 8 12:43:21 UTC 2022 - pgajdos@suse.com diff --git a/python-google-cloud-kms.spec b/python-google-cloud-kms.spec index 719a96a..fb665ea 100644 --- a/python-google-cloud-kms.spec +++ b/python-google-cloud-kms.spec @@ -69,7 +69,7 @@ Cloud Key Management Service (KMS) API API client library %python_uninstall_alternative fixup_kms_v1_keywords.py %check -%pytest -k 'not test_list_global_key_rings' +%pytest tests/unit %files %{python_files} %doc README.rst