Accepting request 598545 from devel:languages:python
- Fix typo and make sure the tests will pass - specfile: * enable tests - update to version 4.5.0: * spawn and fdspawn now have a use_poll parameter. If this is True, they will use select.poll() instead of select.select(). poll() allows file descriptors above 1024, but it must be explicitly enabled due to compatibility concerns (PR #474). * The pxssh.login() method has several new and changed options: + The option password_regex allows changing the password prompt regex, for servers that include password: in a banner before reaching a prompt (PR #468). + login() now allows for setting up SSH tunnels to be requested once logged in to the remote server. This option is ssh_tunnels (PR #473). The structure should be like this: { 'local': ['2424:localhost:22'], # Local SSH tunnels 'remote': ['2525:localhost:22'], # Remote SSH tunnels 'dynamic': [8888], # Dynamic/SOCKS tunnels } + The option spawn_local_ssh=False allows subsequent logins from the remote session and treats the session as if it was local (PR #472). + Setting sync_original_prompt=False will prevent changing the prompt to something unique, in case the remote server is sensitive to new lines at login (PR #468). + If ssh_key=True is passed, the SSH client forces forwarding the authentication agent to the remote server instead of providing a key (PR #473). OBS-URL: https://build.opensuse.org/request/show/598545 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pexpect?expand=0&rev=24
This commit is contained in:
commit
302da9a82f
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:67b85a1565968e3d5b5e7c9283caddc90c3947a2625bed1905be27bd5a03e47d
|
||||
size 145884
|
3
pexpect-4.5.0.tar.gz
Normal file
3
pexpect-4.5.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9f8eb3277716a01faafaba553d629d3d60a1a624c7cf45daa600d2148c30020c
|
||||
size 148247
|
@ -1,3 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 19 11:58:18 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
- Fix typo and make sure the tests will pass
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 14 17:14:36 UTC 2018 - arun@gmx.de
|
||||
|
||||
- specfile:
|
||||
* enable tests
|
||||
|
||||
- update to version 4.5.0:
|
||||
* spawn and fdspawn now have a use_poll parameter. If this is True,
|
||||
they will use select.poll() instead of select.select(). poll()
|
||||
allows file descriptors above 1024, but it must be explicitly
|
||||
enabled due to compatibility concerns (PR #474).
|
||||
* The pxssh.login() method has several new and changed options:
|
||||
+ The option password_regex allows changing the password prompt
|
||||
regex, for servers that include password: in a banner before
|
||||
reaching a prompt (PR #468).
|
||||
+ login() now allows for setting up SSH tunnels to be requested
|
||||
once logged in to the remote server. This option is ssh_tunnels
|
||||
(PR #473). The structure should be like this:
|
||||
{
|
||||
'local': ['2424:localhost:22'], # Local SSH tunnels
|
||||
'remote': ['2525:localhost:22'], # Remote SSH tunnels
|
||||
'dynamic': [8888], # Dynamic/SOCKS tunnels
|
||||
}
|
||||
|
||||
+ The option spawn_local_ssh=False allows subsequent logins from
|
||||
the remote session and treats the session as if it was local (PR
|
||||
#472).
|
||||
+ Setting sync_original_prompt=False will prevent changing the
|
||||
prompt to something unique, in case the remote server is
|
||||
sensitive to new lines at login (PR #468).
|
||||
+ If ssh_key=True is passed, the SSH client forces forwarding the
|
||||
authentication agent to the remote server instead of providing a
|
||||
key (PR #473).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 10 17:29:45 UTC 2018 - arun@gmx.de
|
||||
|
||||
|
@ -16,26 +16,25 @@
|
||||
#
|
||||
|
||||
|
||||
%bcond_with tests
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pexpect
|
||||
Version: 4.4.0
|
||||
Version: 4.5.0
|
||||
Release: 0
|
||||
Summary: Pure Python Expect-like module
|
||||
License: ISC
|
||||
Group: Development/Libraries/Python
|
||||
Url: http://pexpect.readthedocs.org/en/latest/
|
||||
URL: http://pexpect.readthedocs.org/en/latest/
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pexpect/pexpect-%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module ptyprocess}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
%if %{with tests}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
BuildRequires: fdupes
|
||||
# For man validation
|
||||
BuildRequires: man
|
||||
# For test command calls
|
||||
BuildRequires: openssl
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: python-ptyprocess
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
@ -44,11 +43,11 @@ Pexpect is a pure Python module for spawning child applications;
|
||||
controlling them; and responding to expected patterns in their output.
|
||||
|
||||
%prep
|
||||
%setup -n pexpect-%{version}
|
||||
%setup -q -n pexpect-%{version}
|
||||
|
||||
# Fix wrong-script-interpreter
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;
|
||||
find examples -type f -name "*.cgi" -exec sed -i "s|##!/usr/bin/env python|##!/usr/bin/python|" {} \;
|
||||
find examples -type f -name "*.py" -exec sed -i "s|#!%{_bindir}/env python||" {} \;
|
||||
find examples -type f -name "*.cgi" -exec sed -i "s|##!%{_bindir}/env python|##!%{_bindir}/python|" {} \;
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@ -57,15 +56,12 @@ find examples -type f -name "*.cgi" -exec sed -i "s|##!/usr/bin/env python|##!/u
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%if %{with tests}
|
||||
%check
|
||||
export LANG=en_US.UTF-8
|
||||
%python_expand py.test-%{$python_bun_suffix}
|
||||
%endif
|
||||
%python_expand py.test-%{$python_bin_suffix}
|
||||
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%license LICENSE
|
||||
%doc doc/
|
||||
%doc examples/
|
||||
%{python_sitelib}/pexpect/
|
||||
|
Loading…
Reference in New Issue
Block a user