Blame python-aresponses.spec

b1f29f9
%global pypi_name aresponses
b1f29f9
%bcond_with network
b1f29f9
b1f29f9
Name:           python-%{pypi_name}
bbd3f25
Version:        2.1.0
b1f29f9
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
bbd3f25
* Wed Dec 23 2020 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