summaryrefslogtreecommitdiff
path: root/dev-python/opentelemetry-api
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/opentelemetry-api')
-rw-r--r--dev-python/opentelemetry-api/Manifest2
-rw-r--r--dev-python/opentelemetry-api/opentelemetry-api-1.29.0.ebuild61
2 files changed, 63 insertions, 0 deletions
diff --git a/dev-python/opentelemetry-api/Manifest b/dev-python/opentelemetry-api/Manifest
index c1eaab355c79..dd237b9cf8a1 100644
--- a/dev-python/opentelemetry-api/Manifest
+++ b/dev-python/opentelemetry-api/Manifest
@@ -1,3 +1,5 @@
DIST opentelemetry-python-1.28.2.gh.tar.gz 639603 BLAKE2B 6c185c91cd3f31c58f8f1f73edfbe1b5b242bf8ac855e573a40b6f3ea73dc558b40d89785a9e24d61c2b4950a008c5bc51f319013f955877d14028f9b88101b7 SHA512 49f97ffb1bec390eaa9181bfc16eb0c5b1f7b50602a5edbcf4851fb7077685eff3f261738143be59184e6a01c283fac4f766602eebd9b6daea74005cf3e0c4d9
+DIST opentelemetry-python-1.29.0.gh.tar.gz 1178849 BLAKE2B f26914c14025e77486df0c587318f96c4b27bd2caeacc877091300fc054f4670a642ca6fcafa909b986a97168ab004d4a969a05571ee38ab7797b3b38f4cc91f SHA512 92c90e6a684d8cfab3bba4d72612ccf53ae54cdd9784e3434b25adc3730fe114f21fd7aa21da80edf6e0e7c80b39c64ee31fb16f68b04809289bbf5d49d4ca2e
EBUILD opentelemetry-api-1.28.2.ebuild 1367 BLAKE2B 8113642bd5823e8a038ab939d7d7b55b03d0e0135b10e5235ae5dab1482055c00db58c4f56b1f6886b2571a056ccf5880e71f9240f7da54a3ad3991f3c9184ce SHA512 3f8b2c4545a011d30697de9ec6da84c958ce12bec44bfdee65b4fd3ff9a3453ef28bd13f69ee7477c6490227eafbaf9c49013fa98446a36a7c8a20aab1159abe
+EBUILD opentelemetry-api-1.29.0.ebuild 1370 BLAKE2B 41d672b026dd77854706febc78eeb9a4b0a2a6fdbc891c28b39043029e3c8260c22e7e6bf1ec4e9f2c31992ed14f97e181bd763f818d3e7f89666bf62ab7bd61 SHA512 f9f1d2a3e16a5178e3f8819e00af50add6eb6654c09767f80f07908428065897c732f78e48bdfed3a455643be2ba645a478e48496c3110f208c6c17d5a65ac22
MISC metadata.xml 643 BLAKE2B 47c86acb0093f5c596de91afcfaa9f2297f541327d008d33bbe6c542b98e8ae3cf7208c00b0d66d1050a14b5d68439ddcba5ed4449bbe05da3afb8433b95da59 SHA512 20439a62491c5e7a538bc6ec5c9f90cd9473b08d71813d19899fa538f033b164a9bf2fed01d7a90788ad4ce0768fb71bb9e00f6536ffe82da322a73a88459713
diff --git a/dev-python/opentelemetry-api/opentelemetry-api-1.29.0.ebuild b/dev-python/opentelemetry-api/opentelemetry-api-1.29.0.ebuild
new file mode 100644
index 000000000000..84b0e1b64f45
--- /dev/null
+++ b/dev-python/opentelemetry-api/opentelemetry-api-1.29.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2024 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/deprecated-1.2.6[${PYTHON_USEDEP}]
+ dev-python/importlib-metadata[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-python/typing-extensions[${PYTHON_USEDEP}]
+ )
+"
+
+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
+
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ epytest
+}