diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/elastic-transport/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/elastic-transport/elastic-transport-9.2.0.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-python/elastic-transport/Manifest b/dev-python/elastic-transport/Manifest index 12c083da7b59..b6c3239a6660 100644 --- a/dev-python/elastic-transport/Manifest +++ b/dev-python/elastic-transport/Manifest @@ -1,2 +1,3 @@ DIST elastic-transport-python-8.17.1.gh.tar.gz 77401 BLAKE2B 1660de0e941c2b387d97a1c3ce5f95b27c6219e46bf63a2cfa770a2c728b7d735c4289dbb0b758b06a9df54000fcc6b89afb906b3828e4b671a0e932884bc85d SHA512 631a9dd65ea0ea5d42de258d97b5b9582eb68a73712f6c1bcc2948c3d6198808ec68ef8a81f08dbe62b7ae1947440ea01c7303ee6e1d5dc6cd00b42373191e4d DIST elastic-transport-python-9.1.0.gh.tar.gz 77490 BLAKE2B 018daeaf7b9e5b89bf05cdf263b5d5fcdb6cfa9dc857fbb13c6536309a8957b5cfed64a835bd6f1d06f75629899decdb6abc0fac9ef20c36e4576de1eaa3ba6e SHA512 70a7301376d8e19d3d29d118a46efe52c74bb32758572eaf007cb6018363294c3c559298c54f0a483907daac0ff8ab60fd9e5704088658d5f4955922cb998615 +DIST elastic-transport-python-9.2.0.gh.tar.gz 78196 BLAKE2B bbd44d8495f217386f85d3841237cd16b07cd9c5b1d06870f0a600e10e1275e58a76868dc62c1b9431b201b993b0d0adf9aefd2f8a2c05cdbf02026128a7c189 SHA512 f99f6890bdd7d60e2af0d01f201b55fb24477cbe47579437416d4c439ae3f61fe0968ca14c9a1720a470983a02b03c9e84869facdf3398a824f29be11242bcb5 diff --git a/dev-python/elastic-transport/elastic-transport-9.2.0.ebuild b/dev-python/elastic-transport/elastic-transport-9.2.0.ebuild new file mode 100644 index 000000000000..a9dc91ca7d42 --- /dev/null +++ b/dev-python/elastic-transport/elastic-transport-9.2.0.ebuild @@ -0,0 +1,67 @@ +# 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 +} |
