17
0

4 Commits

Author SHA256 Message Date
1093614557 Accepting request 1327547 from devel:kubic
version update to 35.0.0

ref: https://github.com/kubernetes-client/python/releases/tag/v35.0.0

OBS-URL: https://build.opensuse.org/request/show/1327547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kubernetes?expand=0&rev=33
2026-01-17 20:42:23 +00:00
Priyanka Saggu
01adfcbf92 version update to 35.0.0
ref: https://github.com/kubernetes-client/python/releases/tag/v35.0.0

OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=34
2026-01-16 07:23:20 +00:00
7d6160be35 Accepting request 1309762 from devel:kubic
- version update to 34.1.0
* please refer to the changelog at https://github.com/kubernetes-client/python/blob/v34.1.0/CHANGELOG.md#v3410

- updated patch: fix-exec-provider-test-sle-15-sp4.patch
- remove pinneded verion dependency from python-oauthlib module

OBS-URL: https://build.opensuse.org/request/show/1309762
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kubernetes?expand=0&rev=32
2025-10-09 12:59:52 +00:00
Priyanka Saggu
91f7b5e2c9 - version update to 34.1.0
* please refer to the changelog at https://github.com/kubernetes-client/python/blob/v34.1.0/CHANGELOG.md#v3410

- updated patch: fix-exec-provider-test-sle-15-sp4.patch
- remove pinneded verion dependency from python-oauthlib module

OBS-URL: https://build.opensuse.org/package/show/devel:kubic/python-kubernetes?expand=0&rev=32
2025-10-08 08:02:39 +00:00
5 changed files with 66 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
Index: kubernetes-33.1.0/kubernetes/config/exec_provider.py Index: kubernetes-34.1.0/kubernetes/config/exec_provider.py
=================================================================== ===================================================================
--- kubernetes-33.1.0.orig/kubernetes/config/exec_provider.py --- kubernetes-34.1.0.orig/kubernetes/config/exec_provider.py
+++ kubernetes-33.1.0/kubernetes/config/exec_provider.py +++ kubernetes-34.1.0/kubernetes/config/exec_provider.py
@@ -58,15 +58,6 @@ class ExecProvider(object): @@ -58,15 +58,6 @@ class ExecProvider(object):
else: else:
self.cluster = None self.cluster = None
@@ -18,7 +18,7 @@ Index: kubernetes-33.1.0/kubernetes/config/exec_provider.py
def run(self, previous_response=None): def run(self, previous_response=None):
is_interactive = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty() is_interactive = hasattr(sys.stdout, 'isatty') and sys.stdout.isatty()
@@ -91,7 +82,7 @@ class ExecProvider(object): @@ -96,7 +87,7 @@ class ExecProvider(object):
cwd=self.cwd, cwd=self.cwd,
env=self.env, env=self.env,
universal_newlines=True, universal_newlines=True,
@@ -27,25 +27,38 @@ Index: kubernetes-33.1.0/kubernetes/config/exec_provider.py
(stdout, stderr) = process.communicate() (stdout, stderr) = process.communicate()
exit_code = process.wait() exit_code = process.wait()
if exit_code != 0: if exit_code != 0:
Index: kubernetes-33.1.0/kubernetes/config/exec_provider_test.py Index: kubernetes-34.1.0/kubernetes/config/exec_provider_test.py
=================================================================== ===================================================================
--- kubernetes-33.1.0.orig/kubernetes/config/exec_provider_test.py --- kubernetes-34.1.0.orig/kubernetes/config/exec_provider_test.py
+++ kubernetes-33.1.0/kubernetes/config/exec_provider_test.py +++ kubernetes-34.1.0/kubernetes/config/exec_provider_test.py
@@ -180,8 +180,15 @@ class ExecProviderTest(unittest.TestCase @@ -180,7 +180,14 @@ class ExecProviderTest(unittest.TestCase
self.assertTrue(isinstance(result, dict)) self.assertTrue(isinstance(result, dict))
self.assertTrue('token' in result) self.assertTrue('token' in result)
- obj = json.loads(mock.call_args.kwargs['env']['KUBERNETES_EXEC_INFO']) - obj = json.loads(mock.call_args.kwargs['env']['KUBERNETES_EXEC_INFO'])
- self.assertEqual(obj['spec']['cluster']['server'], 'name.company.com')
+ #obj = json.loads(mock.call_args.kwargs['env']['KUBERNETES_EXEC_INFO']) + #obj = json.loads(mock.call_args.kwargs['env']['KUBERNETES_EXEC_INFO'])
+ #self.assertEqual(obj['spec']['cluster']['server'], 'name.company.com') + #self.assertEqual(obj['spec']['cluster']['server'], 'name.company.com')
+ # Check the KUBERNETES_EXEC_INFO env var + # Check the KUBERNETES_EXEC_INFO env var
+ args, kwargs = mock.call_args + args, kwargs = mock.call_args
+ env = kwargs['env'] + env = kwargs['env']
+ exec_info = json.loads(env['KUBERNETES_EXEC_INFO']) + obj = json.loads(env['KUBERNETES_EXEC_INFO'])
+ +
+ self.assertIn('cluster', exec_info['spec']) + self.assertIn('cluster', obj['spec'])
+ self.assertEqual(exec_info['spec']['cluster']['server'], 'name.company.com') self.assertEqual(obj['spec']['cluster']['server'], 'name.company.com')
@mock.patch("subprocess.Popen")
@@ -211,7 +218,13 @@ class ExecProviderTest(unittest.TestCase
self.assertTrue(isinstance(result, dict))
self.assertTrue("token" in result)
if __name__ == '__main__': - obj = json.loads(mock.call_args.kwargs["env"]["KUBERNETES_EXEC_INFO"])
+ #obj = json.loads(mock.call_args.kwargs["env"]["KUBERNETES_EXEC_INFO"])
+ # Check the KUBERNETES_EXEC_INFO env var
+ args, kwargs = mock.call_args
+ env = kwargs['env']
+ obj = json.loads(env['KUBERNETES_EXEC_INFO'])
+
+ self.assertIn('cluster', obj['spec'])
self.assertEqual(obj["spec"]["cluster"]["server"], "name.company.com")
self.assertEqual(obj["spec"]["cluster"]["config"]["namespace"], "myproject")
self.assertEqual(obj["spec"]["cluster"]["config"]["name"], "mycluster")

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f64d829843a54c251061a8e7a14523b521f2dc5c896cf6d65ccf348648a88993
size 1036779

3
kubernetes-35.0.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d00d344944239821458b9efd484d6df9f011da367ecb155dadf9513f05f09ee
size 1094642

View File

@@ -1,3 +1,29 @@
-------------------------------------------------------------------
Fri Jan 16 06:50:08 UTC 2026 - Priyanka Saggu <priyanka.saggu@suse.com>
- version update to 35.0.0
* please refer to the changelog at https://github.com/kubernetes-client/python/blob/v35.0.0/CHANGELOG.md#v3500
- add the following build and runtime requirements (to match the requirements.txt)
ref: https://github.com/kubernetes-client/python/blob/v35.0.0/test-requirements.txt
* BuildConflicts: %{python_module urllib3 = 2.6.0}
* BuildConflicts: %{python_module websocket-client = 0.41.0}
* BuildConflicts: %{python_module websocket-client = 0.41.1}
* Conflicts: python-urllib3 = 2.6.0
* Conflicts: python-websocket-client = 0.40.0
* Conflicts: python-websocket-client = 0.41.0
* Conflicts: python-websocket-client = 0.41.1
-------------------------------------------------------------------
Wed Oct 8 07:19:11 UTC 2025 - Priyanka Saggu <priyanka.saggu@suse.com>
- version update to 34.1.0
* please refer to the changelog at https://github.com/kubernetes-client/python/blob/v34.1.0/CHANGELOG.md#v3410
- updated patch: fix-exec-provider-test-sle-15-sp4.patch
- remove pinneded verion dependency from python-oauthlib module
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jun 11 09:26:29 UTC 2025 - Priyanka Saggu <priyanka.saggu@suse.com> Wed Jun 11 09:26:29 UTC 2025 - Priyanka Saggu <priyanka.saggu@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-kubernetes # spec file for package python-kubernetes
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2026 SUSE LLC and contributors
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -18,7 +18,7 @@
%{?sle15_python_module_pythons} %{?sle15_python_module_pythons}
Name: python-kubernetes Name: python-kubernetes
Version: 33.1.0 Version: 35.0.0
Release: 0 Release: 0
Summary: Kubernetes python client Summary: Kubernetes python client
License: Apache-2.0 License: Apache-2.0
@@ -39,22 +39,22 @@ BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools >= 21.0.0} BuildRequires: %{python_module setuptools >= 21.0.0}
BuildRequires: %{python_module six >= 1.9.0} BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module urllib3 >= 1.24.2} BuildRequires: %{python_module urllib3 >= 1.24.2}
BuildConflicts: %{python_module urllib3 = 2.6.0}
BuildRequires: %{python_module websocket-client >= 0.32.0} BuildRequires: %{python_module websocket-client >= 0.32.0}
BuildConflicts: %{python_module websocket-client = 0.40.0} BuildConflicts: %{python_module websocket-client = 0.40.0}
BuildConflicts: %{python_module websocket-client = 0.41.0}
BuildConflicts: %{python_module websocket-client = 0.41.1}
BuildRequires: %{python_module wheel} BuildRequires: %{python_module wheel}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
# SECTION test requirements # SECTION test requirements
BuildRequires: %{python_module Sphinx >= 1.4} BuildRequires: %{python_module Sphinx >= 1.4}
BuildRequires: %{python_module oauthlib}
BuildRequires: %{python_module pluggy >= 0.3.1} BuildRequires: %{python_module pluggy >= 0.3.1}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module recommonmark} BuildRequires: %{python_module recommonmark}
%if 0%{?sle_version} && 0%{?sle_version} > 150400
# Build python-kubernetes with oauthlib >=3.2.2, for sle_version > SLE-15-SP4
BuildRequires: %{python_module oauthlib >= 3.2.2}
# /SECTION # /SECTION
Requires: python-oauthlib >= 3.2.2 Requires: python-oauthlib
%endif
Requires: python-PyYAML >= 5.4.1 Requires: python-PyYAML >= 5.4.1
Requires: python-certifi >= 14.05.14 Requires: python-certifi >= 14.05.14
Requires: python-durationpy >= 0.7 Requires: python-durationpy >= 0.7
@@ -64,7 +64,11 @@ Requires: python-requests
Requires: python-requests-oauthlib Requires: python-requests-oauthlib
Requires: python-six >= 1.9.0 Requires: python-six >= 1.9.0
Requires: python-urllib3 >= 1.24.2 Requires: python-urllib3 >= 1.24.2
Conflicts: python-urllib3 = 2.6.0
Requires: python-websocket-client >= 0.32.0 Requires: python-websocket-client >= 0.32.0
Conflicts: python-websocket-client = 0.40.0
Conflicts: python-websocket-client = 0.41.0
Conflicts: python-websocket-client = 0.41.1
BuildArch: noarch BuildArch: noarch
%python_subpackages %python_subpackages