dev-python/opentelemetry-api: add 1.35.0

Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/42966
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Alfred Wingate 2025-07-12 00:58:16 +03:00 committed by Michał Górny
parent a748330ee5
commit fd9575a59e
No known key found for this signature in database
GPG Key ID: 639ADAE2329E240E
2 changed files with 62 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST opentelemetry-python-1.34.1.gh.tar.gz 1225347 BLAKE2B 3694b7370494ed8fcc43559d130c6b6b27faef74b6ff90792525663e0c7a9434ddb9fa9c4693d197e8ed707554694089f8d5f3a72ba7b6188cc8f2c45583848c SHA512 7d2ed9828c7c156fb6444e560af8f9e9df25cba09262e7d9f23ba2f77aaaa90545d2083639c9d8400a269f7d266a94df8849ce32e3cfc5172c3389f13c30411c
DIST opentelemetry-python-1.35.0.gh.tar.gz 1248960 BLAKE2B ecb5a671300f60657a77d9b86a9dd673c23ee916020f5fbd658d373b0e6b25a1b448cb5ea5ec7ebcf8ca662f87c728316f260d2809c74e193fab5a2f0762ef4a SHA512 5f530f651df307476af5e364f1a0ae20c0b9600e3ce6dd78e66fddaa012fd398a2ff9539c75d8970e162d969809655478604666e79f88a00918421e186cdfb37

View File

@ -0,0 +1,61 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=hatchling
PYTHON_COMPAT=( python3_{11..13} )
inherit distutils-r1
MY_P="opentelemetry-python-${PV}"
DESCRIPTION="OpenTelemetry Python API"
HOMEPAGE="
https://opentelemetry.io/
https://pypi.org/project/opentelemetry-api/
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 ~arm64 ~x86"
RDEPEND="
>=dev-python/importlib-metadata-6.0[${PYTHON_USEDEP}]
>=dev-python/typing-extensions-4.5.0[${PYTHON_USEDEP}]
"
BDEPEND="
test? (
dev-python/typing-extensions[${PYTHON_USEDEP}]
)
"
EPYTEST_PLUGINS=()
distutils_enable_tests pytest
src_prepare() {
default
# Unnecessary restriction
sed -i -e '/importlib-metadata/s:, < [0-9.]*::' pyproject.toml || die
}
python_test() {
cp -a "${BUILD_DIR}"/{install,test} || die
local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH}
for dep in opentelemetry-semantic-conventions 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
}