Resolves: #1902181 Don't run tests on the centos and rhel because of missing required packages
This commit is contained in:
parent
4e21ec104b
commit
12d3a3c5c7
@ -14,8 +14,12 @@ Source0: %{url}/archive/v%{gitversion}.tar.gz#/%{modname}-%{version}.
|
|||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
# Tests
|
# Tests
|
||||||
|
%if !0%{?rhel}
|
||||||
|
%if !0%{?centos}
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
BuildRequires: python3-flake8
|
BuildRequires: python3-flake8
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -47,7 +51,11 @@ find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';'
|
|||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
|
%if !0%{?rhel}
|
||||||
|
%if !0%{?centos}
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%{!?_licensedir: %global license %doc}
|
%{!?_licensedir: %global license %doc}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user