commit cc50b861c91a658110762545886878068690c1d81166dca65fc7bc785f2d0aa1 Author: Adrian Schröter Date: Fri May 3 20:03:02 2024 +0200 Sync from SUSE:SLFO:Main python-aiounittest revision 98a6a81e9d95969ef14cb8411af67d80 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/aiounittest-1.4.2.tar.gz b/aiounittest-1.4.2.tar.gz new file mode 100644 index 0000000..4eb39c3 --- /dev/null +++ b/aiounittest-1.4.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e641cfede2dc43155b396fbb4e5cc69d4a582d3b7321c3539b676a5aa1888c98 +size 15791 diff --git a/python-aiounittest.changes b/python-aiounittest.changes new file mode 100644 index 0000000..5deea57 --- /dev/null +++ b/python-aiounittest.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Thu Aug 4 08:27:19 UTC 2022 - Otto Hollmann + +- 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 + +- update to 1.4.1: + * declare python 3.9+ as supported + +------------------------------------------------------------------- +Sat Nov 28 03:04:34 UTC 2020 - John Vandenberg + +- Fix URL +- Activate test suite +- Update to v1.4.0 + +------------------------------------------------------------------- +Fri Dec 6 17:35:56 UTC 2019 - Matthias Fehring + +- 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 + +- initial package version 1.2.1 diff --git a/python-aiounittest.spec b/python-aiounittest.spec new file mode 100644 index 0000000..79a718c --- /dev/null +++ b/python-aiounittest.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-aiounittest +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2019 Matthias Fehring +# +# 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