forked from pool/python-pexpect
- Update to 4.7.0:
* The :meth:`.pxssh.login` method now no longer requires a username if an ssh config is provided and will raise an error if neither are provided. (:ghpull:`562`). * The :meth:`.pxssh.login` method now supports providing your own ssh command via the cmd parameter. (:ghpull:`528`) (:ghpull:`563`). * :class:`.pxssh` now supports the use_poll parameter which is passed into :meth:`.pexpect.spawn` (:ghpull:`542`). * Minor bug fix with ssh_config. (:ghpull:`498`). * :meth:`.replwrap.run_command` now has async support via an async_ parameter. (:ghpull:`501`). * :meth:`.pexpect.spawn` will now read additional bytes if able up to a buffer limit. (:ghpull:`304`). - Drop merged patch fix-test.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=43
This commit is contained in:
committed by
Git OBS Bridge
parent
d0a4fdd905
commit
0658dde682
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pexpect
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,20 +18,21 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pexpect
|
||||
Version: 4.6.0
|
||||
Version: 4.7.0
|
||||
Release: 0
|
||||
Summary: Pure Python Expect-like module
|
||||
License: ISC
|
||||
Group: Development/Libraries/Python
|
||||
URL: http://pexpect.readthedocs.org/en/latest/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
|
||||
Patch0: fix-test.patch
|
||||
BuildRequires: %{python_module ptyprocess}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: fdupes
|
||||
# For man validation
|
||||
BuildRequires: man
|
||||
# For test command calls
|
||||
# For bash validation
|
||||
BuildRequires: bash
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-ptyprocess
|
||||
@@ -44,7 +45,6 @@ controlling them; and responding to expected patterns in their output.
|
||||
|
||||
%prep
|
||||
%setup -q -n pexpect-%{version}
|
||||
%patch0 -p1
|
||||
|
||||
# Fix wrong-script-interpreter
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \;
|
||||
@@ -59,7 +59,8 @@ find examples -type f -name "*.cgi" -exec sed -i "s|##!%{_bindir}/env python|##!
|
||||
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand py.test-%{$python_bin_suffix}
|
||||
# test_bash https://github.com/pexpect/pexpect/issues/568
|
||||
%pytest -k 'not test_bash'
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user