./devel/py-pexpect, Pure Python Expect-like module

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 4.5.0, Package name: py27-pexpect-4.5.0, Maintainer: minskim

Pexpect makes Python a better glue for controlling child applications.

Pexpect is a pure Python module for spawning child applications;
controlling them; and responding to expected patterns in their
output. Pexpect works like Don Libes' Expect. Pexpect allows your
script to spawn a child application and control it as if a human were
typing commands.

Pexpect can be used for automating interactive applications such as
ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different
servers. It can be used for automated software testing. Pexpect is
in the spirit of Don Libes' Expect, but Pexpect is pure Python. The
Pexpect interface was designed to be easy to use.


Required to run:
[lang/python27] [sysutils/py-ptyprocess]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 9a02be77889668c6781e07f8655b5fb4e4dcafbe
RMD160: b001015b7068bb188d82d9b1d147e0a412e58830
Filesize: 144.772 KB

Version history: (Expand)


CVS history: (Expand)


   2018-04-14 07:20:25 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pexpect: updated to 4.5.0

Version 4.5
* :class:~.spawn and :class:~.fdspawn now have a use_poll parameter.
  If this is True, they will use :func:select.poll instead of :func:select.select.
  poll() allows file descriptors above 1024, but it must be explicitly
  enabled due to compatibility concerns
* The :meth:.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
  * :meth:~.pxssh.login now allows for setting up SSH tunnels to be requested once
    logged in to the remote server. This option is ssh_tunnels
    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
  * 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
  * If ssh_key=True is passed, the SSH client forces forwarding the authentication
    agent to the remote server instead of providing a key
   2018-02-14 09:09:00 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pexpect: updated to 4.4.0

Version 4.4
PopenSpawn now has a preexec_fn parameter, like spawn and subprocess.Popen, for \ 
a function to be called in the child process before executing the new command. \ 
Like in Popen, this works only in POSIX, and can cause issues if your \ 
application also uses threads.
Significant performance improvements when processing large amounts of data.
Ensure that spawn.closed gets set by close(), and improve an example for passing \ 
SIGWINCH through to a child process
   2017-12-13 08:36:23 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-pexpect: updated to 4.3.1

Version 4.3.1
* When launching bash for :mod:pexpect.replwrap, load the system bashrc
  from a couple of different common locations, and then unset
  the PROMPT_COMMAND environment variable, which can interfere with the
  prompt we're expecting
   2017-11-10 08:51:58 by Adam Ciarcinski | Files touched by this commit (3) | Package updated
Log message:
py-pexpect: updated to 4.3.0

Version 4.3
The async= parameter to integrate with asyncio has become async_= \ 
(:ghpull:`431`), as async is becoming a Python keyword from Python 3.6. Pexpect \ 
will still recognise async as an alternative spelling.
Similarly, the module pexpect.async became pexpect._async (:ghpull:`450`). This \ 
module is not part of the public API.
Fix problems with asyncio objects closing file descriptors during garbage \ 
collection (:ghissue:`347`, :ghpull:`376`).
Set the .pid attribute of a :class:`~.PopenSpawn` object (:ghpull:`417`).
Fix passing Windows paths to :class:`~.PopenSpawn` (:ghpull:`446`).
:class:`~.PopenSpawn` on Windows can pass string commands through to Popen \ 
without splitting them into a list (:ghpull:`447`).
Stop shlex trying to read from stdin when :class:`~.PopenSpawn` is passed \ 
cmd=None (:ghissue:`433`, :ghpull:`434`).
Ensure that an error closing a Pexpect spawn object raises a Pexpect error, \ 
rather than a Ptyprocess error (:ghissue:`383`, :ghpull:`386`).
Cleaned up invalid backslash escape sequences in strings (:ghpull:`430`, \ 
:ghpull:`445`).
The pattern for a password prompt in :mod:`pexpect.pxssh` changed from password \ 
to password: (:ghpull:`452`).
Correct docstring for using unicode with spawn (:ghpull:`395`).
Various other improvements to documentation.
   2017-05-04 12:43:28 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
Version 4.2.1
* Fix to allow running ``env`` in replwrap-ed bash.
* Raise more informative exception from pxssh if it fails to connect.
* Change ``passmass`` example to not log passwords entered.
   2016-06-08 19:43:49 by Thomas Klausner | Files touched by this commit (356)
Log message:
Switch to MASTER_SITES_PYPI.
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2014-01-17 15:50:52 by Thomas Klausner | Files touched by this commit (3) | Package updated
Log message:
Update to 3.0.

The new major version number doesn't indicate any deliberate API incompatibility.
We have endeavoured to avoid breaking existing APIs. However, pexpect is under
new maintenance after a long dormancy, so some caution is warranted.

* A new :ref:`unicode API <unicode>` was introduced.
* Python 3 is now supported, using a single codebase.
* Pexpect now requires at least Python 2.6 or 3.2.
* The modules other than pexpect, such as :mod:`pexpect.fdpexpect` and
  :mod:`pexpect.pxssh`, were moved into the pexpect package. For now, wrapper
  modules are installed to the old locations for backwards compatibility (e.g.
  ``import pxssh`` will still work), but these will be removed at some point in
  the future.
* Ignoring ``SIGHUP`` is now optional - thanks to Kimmo Parviainen-Jalanko for
  the patch.