Sync from SUSE:SLFO:Main python-aiounittest revision 98a6a81e9d95969ef14cb8411af67d80

This commit is contained in:
Adrian Schröter 2024-05-03 20:03:02 +02:00
commit cc50b861c9
4 changed files with 123 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
aiounittest-1.4.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,33 @@
-------------------------------------------------------------------
Thu Aug 4 08:27:19 UTC 2022 - Otto Hollmann <otto.hollmann@suse.com>
- Update to 1.4.2:
* test_sync_async_add: After closing the default event loop, set a new one
* Don't run @asyncio.coroutine tests with Python 3.11
-------------------------------------------------------------------
Sat Jan 15 16:42:20 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update to 1.4.1:
* declare python 3.9+ as supported
-------------------------------------------------------------------
Sat Nov 28 03:04:34 UTC 2020 - John Vandenberg <jayvdb@gmail.com>
- Fix URL
- Activate test suite
- Update to v1.4.0
-------------------------------------------------------------------
Fri Dec 6 17:35:56 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>
- update to version 1.3.1
+ RuntimeError was thrown the decorator trying to get the default event.
Issue #10
- update to version 1.3.0
+ feature: added py.typed
-------------------------------------------------------------------
Tue Jul 2 16:21:35 UTC 2019 - Matthias Fehring <buschmann23@opensuse.org>
- initial package version 1.2.1

64
python-aiounittest.spec Normal file
View File

@ -0,0 +1,64 @@
#
# spec file for package python-aiounittest
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2019 Matthias Fehring <buschmann23@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-aiounittest
Version: 1.4.2
Release: 0
Summary: Test AyncIO Python Code Easily
License: MIT
Group: Development/Languages/Python
URL: https://github.com/kwarunek/aiounittest
Source: https://github.com/kwarunek/aiounittest/archive/%{version}.tar.gz#/aiounittest-%{version}.tar.gz
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wrapt}
BuildRequires: python-rpm-macros
Requires: python-wrapt
BuildArch: noarch
%python_subpackages
%description
This is a helper library to ease of your pain (and boilerplate), when writing a
test of the asynchronous code (asyncio). You can test:
* synchronous code (same as the unittest.TestCase)
* asynchronous code, it supports syntax with async/await (Python 3.5+) and
asyncio.coroutine/yield from (Python 3.4)
%prep
%setup -q -n aiounittest-%{version}
%build
%python_build
%install
%python_install
%check
%pytest
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/aiounittest-%{version}-*.egg-info/
%{python_sitelib}/aiounittest/
%changelog