5e5de5e
%global pypi_name restfly
5e5de5e
5e5de5e
Name:           python-%{pypi_name}
4e88211
Version:        1.4.6
152bd13
Release:        %autorelease
dcbc36c
Summary:        Library to make API wrappers creation easier
5e5de5e
78fbfaf
License:        MIT4
5e5de5e
URL:            https://github.com/stevemcgrath/restfly
5e5de5e
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
5e5de5e
BuildArch:      noarch
5e5de5e
5e5de5e
%description
5e5de5e
RESTfly is a framework for building libraries to easily interact with RESTful
5e5de5e
APIs.
5e5de5e
5e5de5e
%package -n     python3-%{pypi_name}
5e5de5e
Summary:        %{summary}
5e5de5e
5e5de5e
BuildRequires:  python3-devel
bc634bf
BuildRequires:  %py3_dist setuptools
bc634bf
BuildRequires:  %py3_dist requests
4e88211
BuildRequires:  %py3_dist responses
bc634bf
BuildRequires:  %py3_dist pytest
bc634bf
BuildRequires:  %py3_dist pytest-cov
bc634bf
BuildRequires:  %py3_dist pytest-vcr
bc634bf
BuildRequires:  %py3_dist pytest-datafiles
fa761d6
BuildRequires:  %py3_dist python-box
dba518d
BuildRequires:  %py3_dist arrow
5e5de5e
%{?python_provide:%python_provide python3-%{pypi_name}}
5e5de5e
5e5de5e
%description -n python3-%{pypi_name}
5e5de5e
RESTfly is a framework for building libraries to easily interact with RESTful
5e5de5e
APIs.
5e5de5e
5e5de5e
%prep
5e5de5e
%autosetup -n %{pypi_name}-%{version}
5e5de5e
rm -rf %{pypi_name}.egg-info
5e5de5e
5e5de5e
%build
5e5de5e
%py3_build
5e5de5e
5e5de5e
%install
5e5de5e
%py3_install
5e5de5e
5e5de5e
%check
dba518d
%pytest -v tests -k "not test_session_ssl_error"
5e5de5e
5e5de5e
%files -n python3-%{pypi_name}
5e5de5e
%doc README.rst
5e5de5e
%license LICENSE
5e5de5e
%{python3_sitelib}/%{pypi_name}/
5e5de5e
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
5e5de5e
5e5de5e
%changelog
152bd13
%autochangelog
b52c09f