diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-29 19:13:18 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-29 19:13:18 +0000 |
commit | 62090949b4fde34bbcbb4bd770a9635c6ac0c55e (patch) | |
tree | 2af5001a82f05c858f1e80e2231929c173a8bb55 /dev-python/opentelemetry-sdk | |
parent | 04a447f4f2679e9687093f49d8a9ea911fac9a9b (diff) |
gentoo auto-resync : 29:03:2024 - 19:13:18
Diffstat (limited to 'dev-python/opentelemetry-sdk')
-rw-r--r-- | dev-python/opentelemetry-sdk/Manifest | 3 | ||||
-rw-r--r-- | dev-python/opentelemetry-sdk/metadata.xml | 20 | ||||
-rw-r--r-- | dev-python/opentelemetry-sdk/opentelemetry-sdk-1.23.0.ebuild | 79 |
3 files changed, 102 insertions, 0 deletions
diff --git a/dev-python/opentelemetry-sdk/Manifest b/dev-python/opentelemetry-sdk/Manifest new file mode 100644 index 000000000000..bbeae0076873 --- /dev/null +++ b/dev-python/opentelemetry-sdk/Manifest @@ -0,0 +1,3 @@ +DIST opentelemetry-python-1.23.0.gh.tar.gz 523456 BLAKE2B 94047e0d806ce17f0116fd6343daeecbf738c41e3e1cc1cbf8af9a0b1c44b29cecbc597011a7ffe15ffc656f2744750d9117d63bdaa77c7971248f58f9580c8e SHA512 8a2cb94d774db15eb6bb7fd97d5b761d35066779072c0ce0cf51b6d1083d115120b932598c0da2efb20060e8a4c65415a74f508011ccca7242e2d79705f0c246 +EBUILD opentelemetry-sdk-1.23.0.ebuild 2010 BLAKE2B 00960c70b6a6621212e402fbf7cefb179cc89f15d2da1ddb95056d053a3b0adb21e62842bf060da58fa9655c8bbfe33ac90700c905ec581fe2eb6bb7999510fc SHA512 2ab4955c6f5a3789bb214c34b31d252e26827ee66205ac214bbaabedca0b9635486fb0360411662b3de9f1d7689ea3ed4bbdec03329322f87aa7921fc4f895a0 +MISC metadata.xml 643 BLAKE2B 76dfef2a0bbc6ca40385189ccbb4dc8284b807dc873c3d7a02e171dd35fde051289bdb673b5f445c0b080e3b310b8e0d99311db283a6645c4f8ff8bff856d474 SHA512 8899744243bcbed9b286104609532c281d04febbb7a9da4f7c71aad177f6dcf728f008355fa6c0c1d201701360b3430084fe223d5cffa9af09adbbbde7292595 diff --git a/dev-python/opentelemetry-sdk/metadata.xml b/dev-python/opentelemetry-sdk/metadata.xml new file mode 100644 index 000000000000..a1109c9c4db7 --- /dev/null +++ b/dev-python/opentelemetry-sdk/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>parona@protonmail.com</email> + <name>Alfred Wingate</name> + </maintainer> + <maintainer type="project" proxied="proxy"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <stabilize-allarches/> + <upstream> + <remote-id type="pypi">opentelemetry-sdk</remote-id> + <remote-id type="github">open-telemetry/opentelemetry-python</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-python/opentelemetry-sdk/opentelemetry-sdk-1.23.0.ebuild b/dev-python/opentelemetry-sdk/opentelemetry-sdk-1.23.0.ebuild new file mode 100644 index 000000000000..03fc6082d363 --- /dev/null +++ b/dev-python/opentelemetry-sdk/opentelemetry-sdk-1.23.0.ebuild @@ -0,0 +1,79 @@ +# 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 + +DESCRIPTION="OpenTelemetry Python SDK" +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" + +RDEPEND=" + ~dev-python/opentelemetry-api-${PV}[${PYTHON_USEDEP}] + ~dev-python/opentelemetry-semantic-conventions-${PV}[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" +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/wrapt[${PYTHON_USEDEP}] + dev-python/zipp[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +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/\"\(opentelemetry-semantic-conventions == \).*\"/\"\1 ${PV}\"/" pyproject.toml || die +} + +python_test() { + cp -a "${BUILD_DIR}"/{install,test} || die + local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH} + + for dep in tests/opentelemetry-test-utils; do + pushd "${WORKDIR}/${MY_P}/${dep}" >/dev/null || die + distutils_pep517_install "${BUILD_DIR}"/test + popd >/dev/null || die + done + + local -x EPYTEST_IGNORE=( + tests/performance/benchmarks/ + ) + + epytest +} |