b1f29f9
%global pypi_name aresponses
b1f29f9
%bcond_with network
b1f29f9
b1f29f9
Name:           python-%{pypi_name}
8c6d94d
Version:        2.1.5
8c6d94d
Release:        1%{?dist}
b1f29f9
Summary:        Asyncio testing server
b1f29f9
b1f29f9
License:        MIT
b1f29f9
URL:            https://github.com/circleup/aresponses
b1f29f9
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
b1f29f9
BuildArch:      noarch
b1f29f9
b1f29f9
%description
b1f29f9
An asyncio testing server for mocking external services.
b1f29f9
b1f29f9
%package -n     python3-%{pypi_name}
b1f29f9
Summary:        %{summary}
b1f29f9
b1f29f9
BuildRequires:  python3-devel
b1f29f9
BuildRequires:  python3dist(setuptools)
b1f29f9
BuildRequires:  python3dist(aiohttp)
b1f29f9
BuildRequires:  python3dist(pytest)
b1f29f9
BuildRequires:  python3dist(pytest-asyncio)
b1f29f9
%{?python_provide:%python_provide python3-%{pypi_name}}
b1f29f9
b1f29f9
%description -n python3-%{pypi_name}
b1f29f9
An asyncio testing server for mocking external services.
b1f29f9
b1f29f9
%prep
b1f29f9
%autosetup -n %{pypi_name}-%{version}
b1f29f9
rm -rf %{pypi_name}.egg-info
b1f29f9
b1f29f9
%build
b1f29f9
%py3_build
b1f29f9
b1f29f9
%install
b1f29f9
%py3_install
b1f29f9
b1f29f9
%check
b1f29f9
%if %{with network}
b1f29f9
%pytest -v tests
b1f29f9
%endif
b1f29f9
%pytest -v tests -k "not test_foo and not test_passthrough"
b1f29f9
b1f29f9
%files -n python3-%{pypi_name}
b1f29f9
%doc README.md
b1f29f9
%license LICENSE
b1f29f9
%{python3_sitelib}/%{pypi_name}/
b1f29f9
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
b1f29f9
b1f29f9
%changelog
8c6d94d
* Tue Feb 22 2022 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.5-1
8c6d94d
- Update to new upstream version 2.1.5 (closes rhbz#2048030)
8c6d94d
14cddf8
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.4-5
14cddf8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
14cddf8
42ca864
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.4-4
42ca864
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
42ca864
b08228d
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 2.1.4-3
b08228d
- Rebuilt for Python 3.10
b08228d
ee4cd4f
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.4-2
ee4cd4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
ee4cd4f
ba6a599
* Fri Jan 22 08:26:21 CET 2021 Tomas Hrnciar <thrnciar@redhat.com> - 2.1.4-1
ba6a599
- Update to 2.1.4
ba6a599
79e82ac
* Wed Jan 20 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.3-1
79e82ac
- Update to latest upstream release 2.1.3 (#1917037)
79e82ac
3a5e90a
* Sun Jan 17 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.2-1
3a5e90a
- Update to latest upstream release 2.1.2 (#1917037)
3a5e90a
3a5e90a
* Mon Jan 11 2021 Fabian Affolter <mail@fabian-affolter.ch> - 2.1.0-1
bbd3f25
- Update to latest upstream release 2.1.0 (#1910316)
bbd3f25
fd5e587
* Wed Dec 23 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.2-1
fd5e587
- Update to latest upstream release 2.0.2 (#1910316)
fd5e587
b1f29f9
* Thu Sep 10 2020 Fabian Affolter <mail@fabian-affolter.ch> - 2.0.0-1
b1f29f9
- Initial package for Fedora