From d9ec8de250ddc362ca4726cd6c055216b529177a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 30 Mar 2024 01:13:30 +0000 Subject: gentoo auto-resync : 30:03:2024 - 01:13:30 --- .../opentelemetry-semantic-conventions/Manifest | 2 + ...pentelemetry-semantic-conventions-1.24.0.ebuild | 69 ++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 dev-python/opentelemetry-semantic-conventions/opentelemetry-semantic-conventions-1.24.0.ebuild (limited to 'dev-python/opentelemetry-semantic-conventions') diff --git a/dev-python/opentelemetry-semantic-conventions/Manifest b/dev-python/opentelemetry-semantic-conventions/Manifest index 2bc72834da5f..8d6541b055a1 100644 --- a/dev-python/opentelemetry-semantic-conventions/Manifest +++ b/dev-python/opentelemetry-semantic-conventions/Manifest @@ -1,3 +1,5 @@ DIST opentelemetry-python-1.23.0.gh.tar.gz 523456 BLAKE2B 94047e0d806ce17f0116fd6343daeecbf738c41e3e1cc1cbf8af9a0b1c44b29cecbc597011a7ffe15ffc656f2744750d9117d63bdaa77c7971248f58f9580c8e SHA512 8a2cb94d774db15eb6bb7fd97d5b761d35066779072c0ce0cf51b6d1083d115120b932598c0da2efb20060e8a4c65415a74f508011ccca7242e2d79705f0c246 +DIST opentelemetry-python-1.24.0.gh.tar.gz 532064 BLAKE2B 3dc13658293d1651d8e441b0c43f539a4e5e9d49d633786cb3f3dbab667b016c88777e0691bac24ca43e7df5f04c8e41a67e9f6991787947d743b1b30b5953cd SHA512 dbae1db127e2aed0a90bb01db6e2865162f945a9e6713f5048c7f56660231a14c3707474f9f65db8759f2f03334c3126d0542c3c8c2e0998d0f7f98ae6e84ef8 EBUILD opentelemetry-semantic-conventions-1.23.0.ebuild 1836 BLAKE2B bcae4dfd701cba14e6e65ee03aebc1ef3b941973b06173f3d614397f3d3f4eff59eaaa325656d704c709ef86fdf2605e86c349fad6badd6e7feecb46f93a428d SHA512 bcd6c6624638b79ae2c217d2329aa22a1c7d98293245c11b906e85991149a4986a4980b32f51a73bba548c0ec78d4242354560dfcb64c54db460c55af44b2fc8 +EBUILD opentelemetry-semantic-conventions-1.24.0.ebuild 1836 BLAKE2B bcae4dfd701cba14e6e65ee03aebc1ef3b941973b06173f3d614397f3d3f4eff59eaaa325656d704c709ef86fdf2605e86c349fad6badd6e7feecb46f93a428d SHA512 bcd6c6624638b79ae2c217d2329aa22a1c7d98293245c11b906e85991149a4986a4980b32f51a73bba548c0ec78d4242354560dfcb64c54db460c55af44b2fc8 MISC metadata.xml 660 BLAKE2B b231081049a3c5830c7d3d5494261d24ade30de731cf7b4186273af4521db9d1e56c6811ef90b6b763354e67d198c3edefb055bb76f23fb14097df57709546da SHA512 1b6869a2b3918e48f376261d70bcaa9789511ba06cb988e9484a64dcfb57b1494300b29fd6316e39dc23e0d295d6c087e5a07dedf268ca62cd9d555b356379b7 diff --git a/dev-python/opentelemetry-semantic-conventions/opentelemetry-semantic-conventions-1.24.0.ebuild b/dev-python/opentelemetry-semantic-conventions/opentelemetry-semantic-conventions-1.24.0.ebuild new file mode 100644 index 000000000000..321404550b34 --- /dev/null +++ b/dev-python/opentelemetry-semantic-conventions/opentelemetry-semantic-conventions-1.24.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_P="opentelemetry-python-${PV}" + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{11..12} ) + +inherit distutils-r1 pypi + +DESCRIPTION="OpenTelemetry Semantic Conventions" +HOMEPAGE=" + https://opentelemetry.io/ + https://pypi.org/project/opentelemetry-sdk/ + https://github.com/open-telemetry/opentelemetry-python/ +" +SRC_URI=" + https://github.com/open-telemetry/opentelemetry-python/archive/refs/tags/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/${PN}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND=" + test? ( + dev-python/asgiref[${PYTHON_USEDEP}] + dev-python/attrs[${PYTHON_USEDEP}] + dev-python/deprecated[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/importlib-metadata[${PYTHON_USEDEP}] + dev-python/iniconfig[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + dev-python/pluggy[${PYTHON_USEDEP}] + dev-python/py-cpuinfo[${PYTHON_USEDEP}] + dev-python/py[${PYTHON_USEDEP}] + dev-python/tomli[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] + dev-python/wrapt[${PYTHON_USEDEP}] + dev-python/zipp[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + default + + # Use the same version with all opentelemetry components + # https://github.com/gentoo/gentoo/pull/35962#issuecomment-2025466313 + sed -i -e "s/\(__version__ =\) .*/\1 \"${PV}\"/" src/opentelemetry/semconv/version.py || die +} + +python_test() { + cp -a "${BUILD_DIR}"/{install,test} || die + local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH} + + for dep in opentelemetry-api opentelemetry-sdk tests/opentelemetry-test-utils ; do + pushd "${WORKDIR}/${MY_P}/${dep}" >/dev/null || die + distutils_pep517_install "${BUILD_DIR}"/test + popd >/dev/null || die + done + + epytest +} -- cgit v1.2.3