commit:     89c4ad432806c542602683f4dc9b516d66cfe8de
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 11 04:32:18 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Apr 11 04:43:49 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89c4ad43

dev-python/opentelemetry-sdk: Bump to 1.32.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/opentelemetry-sdk/Manifest              |  1 +
 .../opentelemetry-sdk-1.32.0.ebuild                | 62 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/opentelemetry-sdk/Manifest 
b/dev-python/opentelemetry-sdk/Manifest
index df540fa979b2..313022b4bc0a 100644
--- a/dev-python/opentelemetry-sdk/Manifest
+++ b/dev-python/opentelemetry-sdk/Manifest
@@ -1 +1,2 @@
 DIST opentelemetry-python-1.31.1.gh.tar.gz 1224970 BLAKE2B 
de3c81075fdfa3c005db7ab5ba2ba150983b205b6324ff99129389b65f8bdf8e90fe4cd3c11ff73f0782845aeef70a80cc9627c485cb9b5ba84133d2fc5110dd
 SHA512 
de26d96cf08b306b0f2cee860393a3baa333d2266b3a386d2c9947f6b1dc90d8fd1b36f229c0c92b240819fd71ebdac126a5c371f7d6c249fa2e791ecf5174aa
+DIST opentelemetry-python-1.32.0.gh.tar.gz 1227374 BLAKE2B 
193f502a925b659a2696746e0f0a2d39a859d4b58260ed27946b8dc27cfd4b7aad3f9ff8c626ceea93c71b7671a67b60ca44609adf4d41fcd76d021702c12835
 SHA512 
31e74e34d532ec23ce3797e0fc5cbeaabe60faa6b2cdc2ceeb9ec8f6451a718c819619c2a1fdad1619b1351b10eea39274a3a412f34d18eb661736d90901ae2d

diff --git a/dev-python/opentelemetry-sdk/opentelemetry-sdk-1.32.0.ebuild 
b/dev-python/opentelemetry-sdk/opentelemetry-sdk-1.32.0.ebuild
new file mode 100644
index 000000000000..9379c86dfac0
--- /dev/null
+++ b/dev-python/opentelemetry-sdk/opentelemetry-sdk-1.32.0.ebuild
@@ -0,0 +1,62 @@
+# 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 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 ~arm64 ~x86"
+
+RDEPEND="
+       ~dev-python/opentelemetry-api-${PV}[${PYTHON_USEDEP}]
+       ~dev-python/opentelemetry-semantic-conventions-${PV}[${PYTHON_USEDEP}]
+       >=dev-python/typing-extensions-3.7.4[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       test? (
+               dev-python/flaky[${PYTHON_USEDEP}]
+       )
+"
+
+# Tests cannot handle xdist with high makeopts
+# https://bugs.gentoo.org/928132
+distutils_enable_tests pytest
+
+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 EPYTEST_DESELECT=(
+               # TODO
+               
"${PN}"/tests/resources/test_resources.py::TestOTELResourceDetector::test_process_detector
+               
"${PN}"/tests/metrics/integration_test/test_console_exporter.py::TestConsoleExporter::test_console_exporter_with_exemplars
+       )
+
+       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+       epytest tests
+}

Reply via email to