summaryrefslogtreecommitdiff
path: root/dev-python/aiounittest
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/aiounittest
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip
Adding metadata
Diffstat (limited to 'dev-python/aiounittest')
-rw-r--r--dev-python/aiounittest/Manifest1
-rw-r--r--dev-python/aiounittest/aiounittest-1.5.0-r1.ebuild33
-rw-r--r--dev-python/aiounittest/files/aiounittest-1.5.0-py314.patch41
-rw-r--r--dev-python/aiounittest/metadata.xml9
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-python/aiounittest/Manifest b/dev-python/aiounittest/Manifest
new file mode 100644
index 000000000000..3a976a116e2e
--- /dev/null
+++ b/dev-python/aiounittest/Manifest
@@ -0,0 +1 @@
+DIST aiounittest-1.5.0.gh.tar.gz 15848 BLAKE2B 4ef88fa7f05694e9d5f9ec7f34043213b490056f5854c9b911195637d14251fe4fc72ce2d6fe94098a590fe6d9e33b9fff08a5b095644e603d8e561af8da5e65 SHA512 e17c5f939cff863de54a73c3aec3e5c80c037a53ee033ec8528665a6fe39bf004a2ce26a509c31e7bf6ba3e4abadb0ead908274147f010bbcd17b27c250f4ebf
diff --git a/dev-python/aiounittest/aiounittest-1.5.0-r1.ebuild b/dev-python/aiounittest/aiounittest-1.5.0-r1.ebuild
new file mode 100644
index 000000000000..b8d76c5942f1
--- /dev/null
+++ b/dev-python/aiounittest/aiounittest-1.5.0-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{13..14} )
+
+inherit distutils-r1
+
+DESCRIPTION="Test asyncio code more easily"
+HOMEPAGE="
+ https://github.com/kwarunek/aiounittest/
+ https://pypi.org/project/aiounittest/
+"
+SRC_URI="
+ https://github.com/kwarunek/aiounittest/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 ~sparc x86"
+
+RDEPEND="
+ dev-python/wrapt[${PYTHON_USEDEP}]
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-1.5.0-py314.patch
+)
+
+distutils_enable_tests pytest
diff --git a/dev-python/aiounittest/files/aiounittest-1.5.0-py314.patch b/dev-python/aiounittest/files/aiounittest-1.5.0-py314.patch
new file mode 100644
index 000000000000..0c80380c0afc
--- /dev/null
+++ b/dev-python/aiounittest/files/aiounittest-1.5.0-py314.patch
@@ -0,0 +1,41 @@
+https://github.com/kwarunek/aiounittest/issues/28
+https://github.com/kwarunek/aiounittest/pull/29
+
+From 603ca4f57ee2f580d59066600e0ca886efcf8700 Mon Sep 17 00:00:00 2001
+From: Karolina Surma <ksurma@redhat.com>
+Date: Wed, 28 May 2025 10:59:13 +0200
+Subject: [PATCH] asyncio.get_event_loop() doesn't create a new loop since
+ Python 3.14
+
+---
+ aiounittest/case.py | 2 +-
+ tests/test_asynctestcase_get_event_loop.py | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/aiounittest/case.py b/aiounittest/case.py
+index d4e302b..441eed0 100644
+--- a/aiounittest/case.py
++++ b/aiounittest/case.py
+@@ -70,7 +70,7 @@ def get_event_loop(self):
+ class MyTest(aiounittest.AsyncTestCase):
+
+ def get_event_loop(self):
+- self.my_loop = asyncio.get_event_loop()
++ self.my_loop = asyncio.new_event_loop()
+ return self.my_loop
+
+
+diff --git a/tests/test_asynctestcase_get_event_loop.py b/tests/test_asynctestcase_get_event_loop.py
+index 91736ef..5d5de9c 100644
+--- a/tests/test_asynctestcase_get_event_loop.py
++++ b/tests/test_asynctestcase_get_event_loop.py
+@@ -27,7 +27,7 @@ async def async_nested_exc():
+ class TestAsyncCaseWithCustomLoop(aiounittest.AsyncTestCase):
+
+ def get_event_loop(self):
+- self.my_loop = asyncio.get_event_loop()
++ self.my_loop = asyncio.new_event_loop()
+ return self.my_loop
+
+ async def test_await_async_add(self):
+
diff --git a/dev-python/aiounittest/metadata.xml b/dev-python/aiounittest/metadata.xml
new file mode 100644
index 000000000000..d34971a915e9
--- /dev/null
+++ b/dev-python/aiounittest/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>python@gentoo.org</email>
+ </maintainer>
+ <stabilize-allarches />
+ <origin>baldeagleos-repo</origin>
+</pkgmetadata>