1
0
Files
python-kubernetes/python-kubernetes.spec

90 lines
3.2 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-kubernetes
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: python-kubernetes
Version: 28.1.0
Release: 0
Summary: Kubernetes python client
License: Apache-2.0
URL: https://github.com/kubernetes-client/python
# Source tar - https://pypi.org/project/kubernetes/#files
- update to 4.0.0: - api change V1PersistentVolumeSpec to V1ScaleIOPersistentVolumeSource #397. - Make sure PyPI source distribution is complete with all files from the root directory - Update to Kubernetes 1.8 cluster - IntOrString is now object thus it can be int or string. #18 #359 - Adding stream package to support calls like exec. The old way of calling them is deprecated. See README.md#why-execattach-calls-doesnt-work. - config.http_proxy_url is deprecated. use configuration.proxy instead. - Configuration is not a singleton object anymore. Please use Configuraion.set_default to change default configuration. - Configuration class does not support `ws_streaming_protocol` anymore. In ApiClient.set_default_header set `sec-websocket-protocol` to the preferred websocket protocol. - Fix Operation names for subresources kubernetes/kubernetes#49357 - Add proper GCP config loader and refresher kubernetes-client/python-base#22 - Add ws_streaming_protocol and use v4 by default kubernetes-client/python-base#20 - Respect the KUBECONFIG environment variable if set kubernetes-client/python-base#19 - Allow setting maxsize for PoolManager kubernetes-client/python-base#18 - Restricting the websocket-client to <=0.40 #299 - Update client to kubernetes 1.7 - Support ThirdPartyResources (TPR) and CustomResourceDefinitions (CRD). Note that TPR is deprecated in kubernetes #251 #201 - Better dependency management #136 - Add support for python3.6 #244 - Adjust Requires and BuildRequires - Fix Source url OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=3
2018-02-13 09:51:20 +00:00
Source: https://files.pythonhosted.org/packages/source/k/kubernetes/kubernetes-%{version}.tar.gz
# PATCH-FIX-UPSTREAM kubernetes-client-python-pr2178-assertEqual-py312.patch gh#kubernetes-client/python#2178
Patch0: kubernetes-client-python-pr2178-assertEqual-py312.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 oauthlib >= 3.2.2}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module python-dateutil >= 2.5.3}
BuildRequires: %{python_module requests-oauthlib}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools >= 21.0.0}
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: %{python_module urllib3 >= 1.24.2}
BuildRequires: %{python_module websocket-client >= 0.32.0}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
# SECTION test requirements
BuildRequires: %{python_module Sphinx >= 1.4}
BuildRequires: %{python_module pluggy >= 0.3.1}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module recommonmark}
# /SECTION
Requires: python-PyYAML >= 5.4.1
Requires: python-certifi >= 14.05.14
Requires: python-google-auth >= 1.0.1
Requires: python-oauthlib >= 3.2.2
Requires: python-python-dateutil >= 2.5.3
- update to 4.0.0: - api change V1PersistentVolumeSpec to V1ScaleIOPersistentVolumeSource #397. - Make sure PyPI source distribution is complete with all files from the root directory - Update to Kubernetes 1.8 cluster - IntOrString is now object thus it can be int or string. #18 #359 - Adding stream package to support calls like exec. The old way of calling them is deprecated. See README.md#why-execattach-calls-doesnt-work. - config.http_proxy_url is deprecated. use configuration.proxy instead. - Configuration is not a singleton object anymore. Please use Configuraion.set_default to change default configuration. - Configuration class does not support `ws_streaming_protocol` anymore. In ApiClient.set_default_header set `sec-websocket-protocol` to the preferred websocket protocol. - Fix Operation names for subresources kubernetes/kubernetes#49357 - Add proper GCP config loader and refresher kubernetes-client/python-base#22 - Add ws_streaming_protocol and use v4 by default kubernetes-client/python-base#20 - Respect the KUBECONFIG environment variable if set kubernetes-client/python-base#19 - Allow setting maxsize for PoolManager kubernetes-client/python-base#18 - Restricting the websocket-client to <=0.40 #299 - Update client to kubernetes 1.7 - Support ThirdPartyResources (TPR) and CustomResourceDefinitions (CRD). Note that TPR is deprecated in kubernetes #251 #201 - Better dependency management #136 - Add support for python3.6 #244 - Adjust Requires and BuildRequires - Fix Source url OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=3
2018-02-13 09:51:20 +00:00
Requires: python-requests
Requires: python-requests-oauthlib
Requires: python-six >= 1.9.0
Requires: python-urllib3 >= 1.24.2
Requires: python-websocket-client >= 0.32.0
BuildArch: noarch
%python_subpackages
%description
Python client for kubernetes http://kubernetes.io/
%prep
%autosetup -p1 -n kubernetes-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
Accepting request 794468 from home:pgajdos:python - version update to 11.0.0 Kubernetes API Version: 1.15.10 **API Change:** - Deleting CustomObjects doesn't require passing in the body anymore [kubernetes-client/gen#142](https://github.com/kubernetes-client/gen/pull/142) **New Feature:** - Add ability to the client to be used as Context Manager [kubernetes-client/python#1073](https://github.com/kubernetes-client/python/pull/1073) - Enable the use of dynamic client [kubernetes-client/python#1035](https://github.com/kubernetes-client/python/pull/1035) - Add option to refresh gcp token when config is cmd-path [kubernetes-client/python-base#175](https://github.com/kubernetes-client/python-base/pull/175) **Bug Fix:** - Add kubernetes.dynamic to setup.py pkg list [kubernetes-client/python#1096](https://github.com/kubernetes-client/python/pull/1096) - Fixed issue in `__del__` method of the `ApiClient` that caused an indefinite hang during garbage collection. [kubernetes-client/python#1073](https://github.com/kubernetes-client/python/pull/1073) - Fix custom object API example [kubernetes-client/python#1049](https://github.com/kubernetes-client/python/pull/1049) - Fix deprecation warning in E2E tests [kubernetes-client/python#1036](https://github.com/kubernetes-client/python/pull/1036) - Use `==/!=` to compare str, bytes, and int literals [kubernetes-client/python#1007](https://github.com/kubernetes-client/python/pull/1007) - Fix apiserver_id 'get' method [kubernetes-client/python-base#184](https://github.com/kubernetes-client/python-base/pull/184) - Fix persist_config flag and function calls [kubernetes-client/python-base#169](https://github.com/kubernetes-client/python-base/pull/169) - Fix memory inneficiencies in the WebSocket client [kubernetes-client/python-base#178](https://github.com/kubernetes-client/python-base/pull/178) - Fix functionality to watch logs when log line is not a JSON-serialized object [kubernetes-client/python-base#171](https://github.com/kubernetes-client/python-base/pull/171) - Detect binary payloads and send the correct opcode [kubernetes-client/python-base#152](https://github.com/kubernetes-client/python-base/pull/152) **Deprecation Notice** v11.0.0 of the client follows the Kubernetes [deprecation policy](https://github.com/kubernetes/community/blob/master/contributors/design-proposals/release/versioning.md#supported-releases-and-component-skew) and will be deprecated as and when Kubernetes version v1.15 gets deprecated. **API Change:** - Introduce `ExtensionsV1beta1RuntimeClassStrategyOptions` and `PolicyV1beta1RuntimeClassStrategyOptions`. Add RuntimeClass restrictions & defaulting to PodSecurityPolicy [kubernetes/kubernetes#73795](https://github.com/kubernetes/kubernetes/pull/73795) - Introduce `V1WindowsSecurityContextOptions`. Add Windows specific options in Pod Security Context and Container Security Context [kubernetes/kubernetes#77147](https://github.com/kubernetes/kubernetes/pull/77147) - Split `V1beta1Webhook` into `V1beta1MutatingWebhook` and `V1beta1ValidatingWebhook` [kubernetes/kubernetes#78491](https://github.com/kubernetes/kubernetes/pull/78491) - Introduce parameter `allow_watch_bookmarks` in list options for requesting watch bookmarks from apiserver. The implementation in apiserver is hidden behind feature gate `WatchBookmark` (currently in Alpha stage) [kubernetes/kubernetes#74074](https://github.com/kubernetes/kubernetes/pull/74074) - Add `V1DeleteOptions` parameters (`dry_run`, `grace_period_seconds`, `orphan_dependents`, `propagation_policy`) to delete collection APIs [kubernetes/kubernetes#77843](https://github.com/kubernetes/kubernetes/pull/77843) - Add ListMeta.RemainingItemCount. When responding a LIST request, if the server has more data available, and if the request does not contain label selectors or field selectors, the server sets the ListOptions.RemainingItemCount to the number of remaining objects [kubernetes/kubernetes#75993](https://github.com/kubernetes/kubernetes/pull/75993) - Add `controller_expand_secret_ref` in `V1SecretReference` to store CSI volume expansion secrets [kubernetes/kubernetes#77516](https://github.com/kubernetes/kubernetes/pull/77516) OBS-URL: https://build.opensuse.org/request/show/794468 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-kubernetes?expand=0&rev=27
2020-04-16 09:02:29 +00:00
# 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}
%license LICENSE
%doc README.md CHANGELOG.md
%{python_sitelib}/kubernetes
%{python_sitelib}/kubernetes-%{version}.dist-info
%changelog