[packages/python-pexpect] - updated to 4.6.0 - added tests patch (fix one failure due to openssl pipe error message)
qboosh
qboosh at pld-linux.org
Wed Aug 1 17:21:22 CEST 2018
commit 4403ea8e297be7851a7ac8f12933eac71a412c93
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Wed Aug 1 17:23:26 2018 +0200
- updated to 4.6.0
- added tests patch (fix one failure due to openssl pipe error message)
python-pexpect-tests.patch | 13 +++++++++++++
python-pexpect.spec | 15 +++++++++------
2 files changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/python-pexpect.spec b/python-pexpect.spec
index dd8904a..8398991 100644
--- a/python-pexpect.spec
+++ b/python-pexpect.spec
@@ -1,3 +1,4 @@
+#
# Conditional build:
%bcond_without python2 # CPython 2.x module
%bcond_without python3 # CPython 3.x module
@@ -8,15 +9,16 @@
Summary: Pure Python Expect-like module
Summary(pl.UTF-8): Moduł podobny do narzędzia Expect napisany w czystym Pythonie
Name: python-%{module}
-Version: 4.2.1
-Release: 3
+Version: 4.6.0
+Release: 1
License: ISC
Group: Development/Languages/Python
-#Source0Download: https://pypi.python.org/simple/pexpect
-Source0: https://pypi.python.org/packages/e8/13/d0b0599099d6cd23663043a2a0bb7c61e58c6ba359b2656e6fb000ef5b98/pexpect-%{version}.tar.gz
-# Source0-md5: 3694410001a99dff83f0b500a1ca1c95
+#Source0Download: https://pypi.org/simple/pexpect/
+Source0: https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
+# Source0-md5: d4f3372965a996238d57d19b95d2e03a
+Patch0: %{name}-tests.patch
URL: http://pexpect.readthedocs.io/
-%if %{with tests} && %(locale -a | grep -q '^C\.UTF-8$'; echo $?)
+%if %{with tests} && %(locale -a | grep -q '^C\.utf8$'; echo $?)
BuildRequires: glibc-localedb-all
%endif
%if %{with python2}
@@ -90,6 +92,7 @@ Dokumentacja do modułu Pythona pexpect.
%prep
%setup -q -n %{module}-%{version}
+%patch0 -p1
%build
%if %{with python2}
diff --git a/python-pexpect-tests.patch b/python-pexpect-tests.patch
new file mode 100644
index 0000000..2d7c772
--- /dev/null
+++ b/python-pexpect-tests.patch
@@ -0,0 +1,13 @@
+Don't include openssl EPIPE complaints in input.
+
+--- pexpect-4.6.0/tests/test_expect.py.orig 2018-04-11 21:03:57.000000000 +0200
++++ pexpect-4.6.0/tests/test_expect.py 2018-08-01 16:18:13.739732629 +0200
+@@ -411,7 +411,7 @@
+ def test_before_across_chunks(self):
+ # https://github.com/pexpect/pexpect/issues/478
+ child = pexpect.spawn(
+- '''/bin/bash -c "openssl rand -base64 {} | head -500 | nl --number-format=rz --number-width=5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
++ '''/bin/bash -c "openssl rand -base64 {} 2>/dev/null| head -500 | nl --number-format=rz --number-width=5 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
+ searchwindowsize=128
+ )
+ child.expect(['PATTERN'])
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pexpect.git/commitdiff/4403ea8e297be7851a7ac8f12933eac71a412c93
More information about the pld-cvs-commit
mailing list