azure-core-1.41.0ha-bleeding-edge
download
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{11..14} )
inherit distutils-r1 pypi
DESCRIPTION="Microsoft Azure Core Library for Python"
HOMEPAGE="https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="aio examples doc tracing"
PROPERTIES="test_network"
RESTRICT="test"
RDEPEND=">=dev-python/requests-2.21.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.6.0[${PYTHON_USEDEP}]
aio? ( >=dev-python/aiohttp-3.0[${PYTHON_USEDEP}] )
tracing? ( dev-python/opentelemetry-api[${PYTHON_USEDEP}] )
"
BDEPEND="test? (
dev-python/aiohttp[${PYTHON_USEDEP}]
dev-python/isodate[${PYTHON_USEDEP}]
dev-python/opentelemetry-sdk[${PYTHON_USEDEP}]
)
"
DOCS=( {CHANGELOG,CLIENT_LIBRARY_DEVELOPER,README}.md )
EPYTEST_PLUGINS=( pytest-{asyncio,trio} )
distutils_enable_tests pytest
EPYTEST_IGNORE=(
# E ModuleNotFoundError: No module named 'azure.storage'
# E ModuleNotFoundError: No module named 'opentelemetry.instrumentation'
tests/test_tracing_live.py
tests/test_tracing_policy.py
tests/async_tests/test_tracing_live_async.py
)
python_install_all() {
use doc && DOCS+=( doc/* )
if use examples; then
docompress -x "/usr/share/doc/${PF}/samples"
docinto samples
dodoc -r samples/.
fi
distutils-r1_python_install_all
}
python_test() {
PYTHONPATH="${S}"/tests/specs_sdk/modeltypes epytest
}