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>
|
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
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
License: BSD-2-Clause
|
||||||
URL: https://github.com/erdewit/nest_asyncio
|
URL: https://github.com/erdewit/nest_asyncio
|
||||||
Source: https://files.pythonhosted.org/packages/source/n/nest_asyncio/nest_asyncio-%{version}.tar.gz
|
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 setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@@ -45,13 +48,13 @@ This module patches asyncio to allow nested use of ``asyncio.run`` and
|
|||||||
``loop.run_until_complete``.
|
``loop.run_until_complete``.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n nest_asyncio-%{version}
|
%autosetup -p1 -n nest_asyncio-%{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
|
||||||
|
|||||||
Reference in New Issue
Block a user