Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| c9226d8d19 | |||
| dcfe29a0e1 | |||
| 41f8b78b8a | |||
| bac13805a3 | |||
| a235dccdb1 | |||
| d152875ec1 |
BIN
aiounittest-1.4.2.tar.gz
LFS
BIN
aiounittest-1.4.2.tar.gz
LFS
Binary file not shown.
3
aiounittest-1.5.0.tar.gz
Normal file
3
aiounittest-1.5.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:88124a63de279953409a9c390b24af3747ccf45e028ea08c43dc408553fef640
|
||||||
|
size 15848
|
||||||
37
py314-wip.patch
Normal file
37
py314-wip.patch
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
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):
|
||||||
@@ -1,3 +1,24 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 8 12:22:04 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Add py314-wip.patch to fix build with Python 3.14
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Jul 12 11:42:38 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- update to 1.5.0:
|
||||||
|
* package: include the requirements and tests in the sdist
|
||||||
|
package
|
||||||
|
- update to 1.4.3:
|
||||||
|
* Drop travis in favor of gh actions
|
||||||
|
* Drop `nosetest`
|
||||||
|
* Add `DepracationWarning` for "old-python" tests
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue May 13 07:53:29 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||||
|
|
||||||
|
- Convert to pip-based build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed May 10 08:42:16 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
Wed May 10 08:42:16 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-aiounittest
|
# spec file for package python-aiounittest
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC and contributors
|
||||||
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
|
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
@@ -17,17 +17,20 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define skip_python2 1
|
|
||||||
Name: python-aiounittest
|
Name: python-aiounittest
|
||||||
Version: 1.4.2
|
Version: 1.5.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Test AyncIO Python Code Easily
|
Summary: Test AyncIO Python Code Easily
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
URL: https://github.com/kwarunek/aiounittest
|
URL: https://github.com/kwarunek/aiounittest
|
||||||
Source: https://github.com/kwarunek/aiounittest/archive/%{version}.tar.gz#/aiounittest-%{version}.tar.gz
|
Source: https://github.com/kwarunek/aiounittest/archive/%{version}.tar.gz#/aiounittest-%{version}.tar.gz
|
||||||
|
# PATCH-FIX-UPSTREAM https://github.com/kwarunek/aiounittest/pull/29 asyncio.get_event_loop() doesn't create a new loop since Python 3.14
|
||||||
|
Patch0: py314-wip.patch
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: %{python_module wrapt}
|
BuildRequires: %{python_module wrapt}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
@@ -44,13 +47,13 @@ test of the asynchronous code (asyncio). You can test:
|
|||||||
asyncio.coroutine/yield from (Python 3.4)
|
asyncio.coroutine/yield from (Python 3.4)
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n aiounittest-%{version}
|
%autosetup -p1 -n aiounittest-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -59,7 +62,7 @@ test of the asynchronous code (asyncio). You can test:
|
|||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
%{python_sitelib}/aiounittest-%{version}-*.egg-info/
|
%{python_sitelib}/aiounittest-%{version}*-info/
|
||||||
%{python_sitelib}/aiounittest
|
%{python_sitelib}/aiounittest
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user