gentoo-ebuilds/dev-python/elastic-transport/elastic-transport-9.2.0.ebuild
Sam James 378ea4d9bb
dev-python/elastic-transport: Stabilize 9.2.0 ALLARCHES, #966697
Signed-off-by: Sam James <sam@gentoo.org>
2025-11-27 14:08:27 +00:00

67 lines
1.9 KiB
Bash

# Copyright 2023-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1
MY_P=elastic-transport-python-${PV}
DESCRIPTION="Transport classes and utilities shared among Python Elastic client libraries"
HOMEPAGE="
https://github.com/elastic/elastic-transport-python/
https://pypi.org/project/elastic-transport/
"
SRC_URI="
https://github.com/elastic/elastic-transport-python/archive/v${PV}.tar.gz
-> ${MY_P}.gh.tar.gz
"
S=${WORKDIR}/${MY_P}
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 arm64 x86"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND="
dev-python/certifi[${PYTHON_USEDEP}]
dev-python/sniffio[${PYTHON_USEDEP}]
>=dev-python/urllib3-1.26.2[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/httpx[${PYTHON_USEDEP}]
dev-python/opentelemetry-api[${PYTHON_USEDEP}]
dev-python/opentelemetry-sdk[${PYTHON_USEDEP}]
dev-python/orjson[${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
dev-python/respx[${PYTHON_USEDEP}]
dev-python/trustme[${PYTHON_USEDEP}]
)
"
distutils_enable_sphinx docs/sphinx \
dev-python/furo \
dev-python/sphinx-autodoc-typehints
EPYTEST_PLUGINS=( anyio pytest-asyncio pytest-httpbin pytest-httpserver )
EPYTEST_XDIST=1
distutils_enable_tests pytest
EPYTEST_DESELECT=(
# fragile to random warnings
tests/node/test_http_aiohttp.py::TestAiohttpHttpNode::test_uses_https_if_verify_certs_is_off
tests/node/test_http_aiohttp.py::test_ssl_assert_fingerprint
tests/node/test_urllib3_chain_certs.py::test_assert_fingerprint_in_cert_chain
# hardcodes supported Accept-Encoding
# https://github.com/elastic/elastic-transport-python/issues/269
tests/async_/test_async_transport.py::test_async_transport_httpbin
tests/async_/test_httpbin.py::test_node
)
python_test() {
epytest -o addopts= # avoid coverage
}