forked from pool/python-nest-asyncio
Compare commits
4 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 8c8c717985 | |||
| 6dcfb858fd | |||
| fdf52b8629 | |||
| e91d21ef2f |
10
py314-skip-timeout-test.patch
Normal file
10
py314-skip-timeout-test.patch
Normal file
@@ -0,0 +1,10 @@
|
||||
--- nest_asyncio-1.6.0/tests/nest_test.py
|
||||
+++ nest_asyncio-1.6.0/tests/nest_test.py
|
||||
@@ -62,6 +62,7 @@ class NestTest(unittest.TestCase):
|
||||
result = self.loop.run_until_complete(f())
|
||||
self.assertEqual(result, 42)
|
||||
|
||||
+ @unittest.skipIf(sys.version_info >= (3, 14), "Fails due to stricter asyncio timeout checks in Python 3.14+")
|
||||
def test_timeout(self):
|
||||
|
||||
async def f1():
|
||||
@@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 16 07:31:04 UTC 2025 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- add py314-skip-timeout-test.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 2 14:37:25 UTC 2025 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
- Convert to pip-based build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 30 18:04:45 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-nest-asyncio
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2025 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -24,7 +24,10 @@ Summary: Patch asyncio to allow nested event loops
|
||||
License: BSD-2-Clause
|
||||
URL: https://github.com/erdewit/nest_asyncio
|
||||
Source: https://files.pythonhosted.org/packages/source/n/nest_asyncio/nest_asyncio-%{version}.tar.gz
|
||||
Patch1: py314-skip-timeout-test.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
@@ -45,13 +48,13 @@ This module patches asyncio to allow nested use of ``asyncio.run`` and
|
||||
``loop.run_until_complete``.
|
||||
|
||||
%prep
|
||||
%setup -q -n nest_asyncio-%{version}
|
||||
%autosetup -p1 -n nest_asyncio-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%pyproject_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
|
||||
Reference in New Issue
Block a user