# Copyright 2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 DISTUTILS_USE_PEP517=setuptools PYTHON_COMPAT=( python3_{12..14} ) inherit distutils-r1 DESCRIPTION="Kubernetes python client" HOMEPAGE=" https://github.com/kubernetes-client/python https://pypi.org/project/kubernetes/ " SRC_URI="https://github.com/kubernetes-client/python/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" S="${WORKDIR}"/python-${PV} LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64" RDEPEND=" >=dev-python/certifi-14.5.14[${PYTHON_USEDEP}] >=dev-python/six-1.9.0[${PYTHON_USEDEP}] >=dev-python/python-dateutil-2.5.3[${PYTHON_USEDEP}] >=dev-python/pyyaml-6.0.3[${PYTHON_USEDEP}] >=dev-python/websocket-client-0.32.0[${PYTHON_USEDEP}] dev-python/requests[${PYTHON_USEDEP}] dev-python/requests-oauthlib[${PYTHON_USEDEP}] >=dev-python/urllib3-1.24.2[${PYTHON_USEDEP}] !~dev-python/urllib3-2.6.0[${PYTHON_USEDEP}] >=dev-python/durationpy-0.7[${PYTHON_USEDEP}] =dev-python/aiohttp-3.13.5[${PYTHON_USEDEP}] " EPYTEST_PLUGINS=() EPYTEST_IGNORE=( # too long kubernetes/base/leaderelection/leaderelection_test.py kubernetes/leaderelection/leaderelection_test.py ) EPYTEST_DESELECT=( # too many open files, the ulimit must be changed by hand 'kubernetes/stream/ws_client_test.py::test_rest_call_ignores_env' 'kubernetes/stream/ws_client_test.py::test_websocket_call_honors_env' 'kubernetes/test/test_api_client.py::TestApiClient::test_atexit_closes_threadpool' 'kubernetes/test/test_api_client.py::TestApiClient::test_context_manager_closes_threadpool' ) distutils_enable_tests pytest # need more packages to work, but they are not in gentoo nor pentoo, TBD # distutils_enable_sphinx doc/source dev-python/recommonmark