Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-kubernetes for openSUSE:Factory checked in at 2022-05-05 23:04:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-kubernetes (Old) and /work/SRC/openSUSE:Factory/.python-kubernetes.new.1538 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-kubernetes" Thu May 5 23:04:36 2022 rev:15 rq:974767 version:23.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-kubernetes/python-kubernetes.changes 2020-12-23 14:19:26.213614884 +0100 +++ /work/SRC/openSUSE:Factory/.python-kubernetes.new.1538/python-kubernetes.changes 2022-05-05 23:04:42.421431005 +0200 @@ -1,0 +2,9 @@ +Tue May 3 06:28:36 UTC 2022 - pgaj...@suse.com + +- version update to 23.3.0 + too many changes, see CHANGELOG.md in documentation or at + https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md +- Add python-kubernetes-no-mock.patch to allow building and use + without external mock package dependency. + +------------------------------------------------------------------- Old: ---- kubernetes-12.0.1.tar.gz New: ---- kubernetes-23.3.0.tar.gz python-kubernetes-no-mock.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-kubernetes.spec ++++++ --- /var/tmp/diff_new_pack.nTX3il/_old 2022-05-05 23:04:42.941431653 +0200 +++ /var/tmp/diff_new_pack.nTX3il/_new 2022-05-05 23:04:42.945431659 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-kubernetes # -# 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 @@ -17,18 +17,19 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without python2 +%define skip_python2 1 Name: python-kubernetes -Version: 12.0.1 +Version: 23.3.0 Release: 0 Summary: Kubernetes python client License: Apache-2.0 URL: https://github.com/kubernetes-incubator/client-python Source: https://files.pythonhosted.org/packages/source/k/kubernetes/kubernetes-%{version}.tar.gz -BuildRequires: %{python_module PyYAML >= 3.12} +# https://github.com/kubernetes-client/python/issues/1790 +Patch0: python-kubernetes-no-mock.patch +BuildRequires: %{python_module PyYAML >= 5.4.1} BuildRequires: %{python_module certifi >= 14.05.14} BuildRequires: %{python_module google-auth >= 1.0.1} -BuildRequires: %{python_module mock} BuildRequires: %{python_module pluggy} BuildRequires: %{python_module pytest} BuildRequires: %{python_module python-dateutil >= 2.5.3} @@ -41,7 +42,7 @@ BuildRequires: %{python_module websocket-client >= 0.32.0} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-PyYAML >= 3.12 +Requires: python-PyYAML >= 5.4.1 Requires: python-certifi >= 14.05.14 Requires: python-google-auth >= 1.0.1 Requires: python-python-dateutil >= 2.5.3 @@ -52,19 +53,13 @@ Requires: python-urllib3 >= 1.24.2 Requires: python-websocket-client >= 0.32.0 BuildArch: noarch -%if %{with python2} -BuildRequires: python-ipaddress >= 1.0.17 -%endif -%ifpython2 -Requires: python-ipaddress >= 1.0.17 -%endif %python_subpackages %description Python client for kubernetes http://kubernetes.io/ %prep -%setup -q -n kubernetes-%{version} +%autosetup -p1 -n kubernetes-%{version} %build %python_build @@ -77,6 +72,7 @@ # quote CONTRIBUTING.md: # 2. [End to end tests](kubernetes/e2e_test): these are tests that can only be verified with a live kubernetes server. rm kubernetes/dynamic/test_client.py +rm kubernetes/dynamic/test_discovery.py %pytest %files %{python_files} ++++++ kubernetes-12.0.1.tar.gz -> kubernetes-23.3.0.tar.gz ++++++ ++++ 206951 lines of diff (skipped) ++++++ python-kubernetes-no-mock.patch ++++++ Index: kubernetes-23.3.0/kubernetes/config/exec_provider_test.py =================================================================== --- kubernetes-23.3.0.orig/kubernetes/config/exec_provider_test.py +++ kubernetes-23.3.0/kubernetes/config/exec_provider_test.py @@ -15,7 +15,7 @@ import os import unittest -import mock +from unittest import mock from .config_exception import ConfigException from .exec_provider import ExecProvider Index: kubernetes-23.3.0/kubernetes/config/kube_config_test.py =================================================================== --- kubernetes-23.3.0.orig/kubernetes/config/kube_config_test.py +++ kubernetes-23.3.0/kubernetes/config/kube_config_test.py @@ -22,7 +22,7 @@ import tempfile import unittest from collections import namedtuple -import mock +from unittest import mock import yaml from six import PY3, next Index: kubernetes-23.3.0/kubernetes/watch/watch_test.py =================================================================== --- kubernetes-23.3.0.orig/kubernetes/watch/watch_test.py +++ kubernetes-23.3.0/kubernetes/watch/watch_test.py @@ -14,7 +14,7 @@ import unittest -from mock import Mock, call +from unittest.mock import Mock, call from kubernetes import client