|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
# cannot enable tests at the moment.
|
|
|
|
|
# Need to package requestes_download
|
|
|
|
|
%global with_test 0
|
|
|
|
|
# circular build dependency on requests-download and testpath
|
|
|
|
|
%bcond_with tests
|
|
|
|
|
|
|
|
|
|
%global srcname flit
|
|
|
|
|
|
|
|
|
@ -24,7 +23,7 @@ BuildRequires: python3-docutils
|
|
|
|
|
BuildRequires: python3-pygments
|
|
|
|
|
BuildRequires: python3-pytoml
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_test}
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
BuildRequires: /usr/bin/python
|
|
|
|
|
BuildRequires: python3-pytest
|
|
|
|
|
BuildRequires: python3-responses
|
|
|
|
@ -101,7 +100,7 @@ PYTHONPATH=$(pwd):$(pwd)/flit_core %{python3} -m flit build --format wheel
|
|
|
|
|
%py3_install_wheel flit-%{version}-py3-none-any.whl
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?with_test}
|
|
|
|
|
%if %{with tests}
|
|
|
|
|
%check
|
|
|
|
|
export PYTHONPATH=%{buildroot}%{python3_sitelib}
|
|
|
|
|
pytest-3
|
|
|
|
|