[packages/python-FormEncode] - disable also validator doctests due to DNS lookups
qboosh
qboosh at pld-linux.org
Tue Jun 9 20:57:43 CEST 2020
commit edc83feb93ae76ce97d5e19d9b455b9154852b31
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Jun 9 20:58:35 2020 +0200
- disable also validator doctests due to DNS lookups
python-FormEncode.spec | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/python-FormEncode.spec b/python-FormEncode.spec
index 2610e98..175222b 100644
--- a/python-FormEncode.spec
+++ b/python-FormEncode.spec
@@ -39,6 +39,7 @@ BuildRequires: python3-pycountry >= 16.10.23
%endif
BuildRequires: rpm-pythonprov
BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: sed >= 4.0
Requires: python-modules >= 1:2.6
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -86,6 +87,8 @@ Dokumentacja API modułu Pythona FormEncode.
# uses network to validate domains (with one no longer valid anyway)
%{__rm} formencode/tests/test_email.py
+# validator doctests cover Email and URL validators which include DNS lookups
+%{__sed} -i -e '/^modules / s/, validators//' formencode/tests/test_doctests.py
%build
%if %{with python2}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-FormEncode.git/commitdiff/edc83feb93ae76ce97d5e19d9b455b9154852b31
More information about the pld-cvs-commit
mailing list