From 0f7e5a39ca0e914b455d0a8a95fe5b92a29ab9be Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Jan 29 2020 15:37:15 +0000 Subject: * Mon Jan 06 2020 Fabian Affolter - 1.3.1-2 - Fix description (rhbz#1786953) * Sun Dec 29 2019 Fabian Affolter - 1.3.1-1 - Initial package for Fedora --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/.gitignore diff --git a/python-aiounittest.spec b/python-aiounittest.spec new file mode 100644 index 0000000..888457a --- /dev/null +++ b/python-aiounittest.spec @@ -0,0 +1,62 @@ +%global pypi_name aiounittest + +Name: python-%{pypi_name} +Version: 1.3.1 +Release: 2%{?dist} +Summary: Test asyncio code more easily + +License: MIT +URL: https://github.com/kwarunek/aiounittest +Source0: https://github.com/kwarunek/aiounittest/archive/%{version}/%{pypi_name}-%{version}.tar.gz +BuildArch: noarch + +%description +The aiounittest is a helper library to ease your pain (and boilerplate), +when writing tests of asynchronous code (:code:asyncio). You can test: + +- synchronous code (same as the :code:unittest.TestCase) +- asynchronous code, it supports syntax with async/await (Python 3.5+) and + asyncio.coroutine/yield from (Python 3.4) + +%package -n python3-%{pypi_name} +Summary: %{summary} + +BuildRequires: python3-devel +BuildRequires: python3-coverage +BuildRequires: python3-nose +BuildRequires: python3-setuptools +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +The aiounittest is a helper library to ease your pain (and boilerplate), +when writing tests of asynchronous code (:code:asyncio). You can test: + +- synchronous code (same as the :code:unittest.TestCase) +- asynchronous code, it supports syntax with async/await (Python 3.5+) and + asyncio.coroutine/yield from Python 3.4 + +%prep +%autosetup -n %{pypi_name}-%{version} +rm -rf %{pypi_name}.egg-info + +%build +%py3_build + +%install +%py3_install + +%check +PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests-%{python3_version} -v + +%files -n python3-%{pypi_name} +%license LICENSE +%doc README.rst +%{python3_sitelib}/%{pypi_name} +%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info + +%changelog +* Mon Jan 06 2020 Fabian Affolter - 1.3.1-2 +- Fix description (rhbz#1786953) + +* Sun Dec 29 2019 Fabian Affolter - 1.3.1-1 +- Initial package for Fedora diff --git a/sources b/sources new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/sources