summaryrefslogtreecommitdiff
path: root/dev-python/grpclib
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-21 19:01:21 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2025-06-21 19:01:21 +0000
commit00a6d1ff550f047a4aefe580f6d036c1d8564da7 (patch)
tree1e4207fd130e74bd3248b48ddc2062b46480a105 /dev-python/grpclib
parentae723eb1ef4f54cf34cd3235fe0f5e9d39b046cc (diff)
downloadbaldeagleos-repo-00a6d1ff550f047a4aefe580f6d036c1d8564da7.tar.gz
baldeagleos-repo-00a6d1ff550f047a4aefe580f6d036c1d8564da7.tar.xz
baldeagleos-repo-00a6d1ff550f047a4aefe580f6d036c1d8564da7.zip
Adding metadata
Diffstat (limited to 'dev-python/grpclib')
-rw-r--r--dev-python/grpclib/Manifest1
-rw-r--r--dev-python/grpclib/files/grpclib-0.4.8-pytest-asyncio-1.patch42
-rw-r--r--dev-python/grpclib/grpclib-0.4.7-r1.ebuild42
-rw-r--r--dev-python/grpclib/grpclib-0.4.8.ebuild7
4 files changed, 48 insertions, 44 deletions
diff --git a/dev-python/grpclib/Manifest b/dev-python/grpclib/Manifest
index 57966375e523..5d9a5cbdc1a0 100644
--- a/dev-python/grpclib/Manifest
+++ b/dev-python/grpclib/Manifest
@@ -1,2 +1 @@
-DIST grpclib-0.4.7.gh.tar.gz 106012 BLAKE2B 9eb351511c4bf5e0be3135734a1d2ce66187a1fef1b35c46cd518199c07cede6f88351b3b56fc211775666c333cafd0a67da2d281b314bc2a8fdb51f9def33bf SHA512 8148edcadb1140973ea54473939744810f156ff719c72e8485534097d7c0efc324f9b5df1c71e1477e624859d068d5ec0a44b22f80717fd7ca8f697d3dfc592a
DIST grpclib-0.4.8.gh.tar.gz 106522 BLAKE2B df4a4eadfdaece1bc65e27a2ef82562fd095e184c7118da078383afe8a8a03a2e389bdb2466c88079dfae6254c55bb9134eab35cb3c82b1c02e3da6c6a7e02e3 SHA512 f00e93e9371f68a86ce818b3c45e5c7319074163c404b36af3a183f0676fbe58722fa0cb3f119073f13f6d8b763a673e2ab292678868257f88cb834aa5bc2f71
diff --git a/dev-python/grpclib/files/grpclib-0.4.8-pytest-asyncio-1.patch b/dev-python/grpclib/files/grpclib-0.4.8-pytest-asyncio-1.patch
new file mode 100644
index 000000000000..4e5db2479e8e
--- /dev/null
+++ b/dev-python/grpclib/files/grpclib-0.4.8-pytest-asyncio-1.patch
@@ -0,0 +1,42 @@
+From 2008de510c76c40dca9c175febfe14200f1f5fb5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
+Date: Sat, 21 Jun 2025 07:14:42 +0200
+Subject: [PATCH] Fix tests with pytest-asyncio >= 1.0.0
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Update tests not to use the deprecated `event_loop` fixture that's
+been removed in pytest-asyncio >= 1.0.0. Instead, use
+`asyncio.get_running_loop()` as the recommended replacement. Make
+the fixture `async` as well to make things work correctly.
+
+This change is compatible both with `pytest-asyncio >= 1.0.0`
+and `== 0.23.6`.
+
+Signed-off-by: Michał Górny <mgorny@gentoo.org>
+---
+ tests/conftest.py | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/tests/conftest.py b/tests/conftest.py
+index 6aef1a1..21159de 100644
+--- a/tests/conftest.py
++++ b/tests/conftest.py
+@@ -1,12 +1,14 @@
++import asyncio
++
+ import pytest
+
+ from grpclib.config import Configuration
+
+
+ @pytest.fixture(name='loop')
+-def loop_fixture(event_loop):
++async def loop_fixture():
+ """ Shortcut """
+- return event_loop
++ return asyncio.get_running_loop()
+
+
+ @pytest.fixture(name='config')
diff --git a/dev-python/grpclib/grpclib-0.4.7-r1.ebuild b/dev-python/grpclib/grpclib-0.4.7-r1.ebuild
deleted file mode 100644
index 638de161826e..000000000000
--- a/dev-python/grpclib/grpclib-0.4.7-r1.ebuild
+++ /dev/null
@@ -1,42 +0,0 @@
-# Copyright 2024 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{9,10,11,12,13} )
-
-inherit distutils-r1
-
-DESCRIPTION="Pure-Python gRPC implementation for asyncio"
-HOMEPAGE="
- https://github.com/vmagamedov/grpclib/
- https://pypi.org/project/grpclib/
-"
-# no tests in sdist, as of 0.4.7
-SRC_URI="
- https://github.com/vmagamedov/grpclib/archive/v${PV}.tar.gz
- -> ${P}.gh.tar.gz
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64"
-
-# setup.txt + requirements/runtime.in
-RDEPEND="
- dev-python/certifi[${PYTHON_USEDEP}]
- dev-python/googleapis-common-protos[${PYTHON_USEDEP}]
- dev-python/h2[${PYTHON_USEDEP}]
- dev-python/multidict[${PYTHON_USEDEP}]
- dev-python/protobuf[${PYTHON_USEDEP}]
-"
-BDEPEND="
- test? (
- dev-python/async-timeout[${PYTHON_USEDEP}]
- dev-python/faker[${PYTHON_USEDEP}]
- dev-python/pytest-asyncio[${PYTHON_USEDEP}]
- )
-"
-
-distutils_enable_tests pytest
diff --git a/dev-python/grpclib/grpclib-0.4.8.ebuild b/dev-python/grpclib/grpclib-0.4.8.ebuild
index 3110bf025924..17bf0042afe6 100644
--- a/dev-python/grpclib/grpclib-0.4.8.ebuild
+++ b/dev-python/grpclib/grpclib-0.4.8.ebuild
@@ -21,7 +21,7 @@ SRC_URI="
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
# setup.txt + requirements/runtime.in
RDEPEND="
@@ -40,3 +40,8 @@ BDEPEND="
"
distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/vmagamedov/grpclib/pull/205
+ "${FILESDIR}/${P}-pytest-asyncio-1.patch"
+)