Don't BuildRequire pyflakes

Linting code is extremely useful in upstream, but not so much in downstream.

When we update Python to 3.N+1, linters are often broken for a while and pycurl
is part of the initial Python bootstrap sequence.
Not linting the code in %check allows us to rebuild pycurl without functional
pyflakes. See https://bugzilla.redhat.com/show_bug.cgi?id=1831248
This commit is contained in:
Miro Hrončok 2020-05-11 13:22:07 +02:00
parent c0aa6c5c51
commit c91652fe05

View File

@ -75,7 +75,6 @@ Summary: Python interface to libcurl for Python 3
BuildRequires: python3-devel
BuildRequires: python3-bottle
BuildRequires: python3-nose
BuildRequires: python3-pyflakes
Requires: libcurl%{?_isa} >= %{libcurl_ver}
%description -n python3-%{modname}
@ -134,7 +133,7 @@ rm -rf %{buildroot}%{_datadir}/doc/pycurl
export PYTHONPATH=%{buildroot}%{python3_sitearch}
export PYCURL_SSL_LIBRARY=openssl
export PYCURL_VSFTPD_PATH=vsftpd
make test PYTHON=%{__python3} NOSETESTS="nosetests-%{python3_version} -v"
make test PYTHON=%{__python3} NOSETESTS="nosetests-%{python3_version} -v" PYFLAKES=true
rm -fv tests/fake-curl/libcurl/*.so
%endif