BuildRequires: python-charade
BuildRequires: python-urllib3 >= 1.9.1
%endif
+%{?with_tests:BuildRequires: python-pytest}
%endif
%if %{with python3}
BuildRequires: python3-modules >= 1:3.2
BuildRequires: python3-charade
BuildRequires: python3-urllib3 >= 1.9.1
%endif
+%{?with_tests:BuildRequires: python3-pytest}
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.219
%build
%if %{with python2}
%{__python} setup.py build -b py2 %{?with_tests:test}
+%{?with_tests:cp requirements.txt test_requests.py py2; cd py2; PYTHONPATH=$(pwd)/lib %{__python} test_requests.py; cd ..}
%endif
%if %{with python3}
%{__python3} setup.py build -b py3 %{?with_tests:test}
+%{?with_tests:cp requirements.txt test_requests.py py3; cd py3; PYTHONPATH=$(pwd)/lib %{__python3} test_requests.py; cd ..}
%endif
%install