From c91652fe0525d9290d1f534f4d5c86f4ea600b6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 11 May 2020 13:22:07 +0200 Subject: [PATCH] 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 --- python-pycurl.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python-pycurl.spec b/python-pycurl.spec index 5803673..ff49833 100644 --- a/python-pycurl.spec +++ b/python-pycurl.spec @@ -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