Blame python-aiounittest.spec

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