Commit graph

32 commits

Author SHA1 Message Date
Stefan Eßer
a642f92e86 misc/py-pexpect: fix most of the test cases
A number of test cases included in the pexpect distribution failed on
FreeBSD. The patches included in the commit fix most of these tests.

One of the tests used /bin/bash and long options for the nl command.
Other tests assumed pipe buffers larger than provided by FreeBSD.

3 tests are still failing:

tests/test_replwrap.py::REPLWrapTestCase::test_existing_spawn FAILED

The text received contains bracketed paste escape characters when
a bash version 5.1 or newer is installed. There may be another problem
with this test, though, since it seems to depend on some bash rc file
of the account executing this test.

tests/test_socket.py::ExpectTestCase::test_interrupt FAILED
tests/test_socket.py::ExpectTestCase::test_multiple_interrupts FAILED

These two test seem to fail due to an early exit of the sending
process. It appears to be in Zombie state and cannot be signaled.
The "non-blocking read" seems to be blocking in this situation.

The real cause is unclear, it seems to be a mismatch between process
lifetime semantics in Linux and FreeBSD. I have removed an infinite
wait loop with these patches, which causes a test failure to be
detected (instead of preventing the execution of any further test
cases).

I have created a pull request on Github to get these patches into the
upstream, but it seems that the owner of the pexpect repository is not
very active.

Approved by:	sunpoet (maintainer)
2021-09-27 17:49:50 +02:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Antoine Brodin
aa7a6c429e Drop python 2.7 support from a few ports
With hat:	portmgr
2020-12-28 23:02:12 +00:00
Sunpoet Po-Chuan Hsieh
91e54b778c Update to 4.8.0
Changes:	https://github.com/pexpect/pexpect/blob/master/doc/history.rst
		https://pexpect.readthedocs.io/en/stable/history.html#releases
2020-01-23 04:21:59 +00:00
Sunpoet Po-Chuan Hsieh
0c6d3e5444 Update to 4.7.0
- Update COMMENT
- Add LICENSE_FILE
- Update pkg-descr
- Take maintainership

Changes:	https://github.com/pexpect/pexpect/blob/master/doc/history.rst
		https://pexpect.readthedocs.io/en/stable/history.html#releases
2019-04-07 20:06:23 +00:00
Sunpoet Po-Chuan Hsieh
1090bceed7 Add NO_ARCH 2019-04-06 14:45:27 +00:00
Ruslan Makhmatkhanov
20c05e6884 misc/py-pexpect: update to 4.6.0
async is the registered keyword since python 3.7, so current version of pexpect
fails to work with py37:

  File "/usr/local/lib/python3.7/site-packages/pexpect/spawnbase.py", line 224
    def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
                                                                   ^
SyntaxError: invalid syntax
*** Error code 1

Update to latest version solves the issue.

Also pass maintainership to python@ at maintainer's request

PR:		230188
Approved by:	wg (maintainer)
2018-07-30 12:16:55 +00:00
Mathieu Arnold
4376dbbb58 Use PY_FLAVOR for dependencies.
FLAVOR is the current port's flavor, it should not be used outside of
this scope.

Sponsored by:	Absolight
2018-06-20 17:05:41 +00:00
Mathieu Arnold
551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00
Ben Woods
ac61d6ebeb [NEW] misc/py3-pexpect: Create Python 3.x version of port
The latest www/py-requests update [1] unbundled its dependencies, now
requiring chardet, idna, urllib3 and certifi from ports.

www/py3-requests port was not tested during QA, which would have highlighted
the need for many new py3-* ports (and their dependencies).

This change creates one of those ports.

[1] https://svnweb.freebsd.org/changeset/ports/442565

PR:		219833
2017-06-07 15:43:29 +00:00
Li-Wen Hsu
e4fadaf581 - Update to 4.2.1
- Update WWW

PR:		217089
Submitted by:	lwhsu
Approved by:	wg (maintainer)
2017-02-14 16:27:38 +00:00
Marcus von Appen
273cb9ed49 - Convert ports of misc/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-20 17:59:37 +00:00
William Grzybowski
430e8aed3a misc/py-pexpect: update to 3.3 2014-06-27 15:47:26 +00:00
William Grzybowski
dca8d40633 misc/py-pexpect: update to 3.2
PR:		ports/189708
Submitted by:	Bartek Rutkowski <ports at robakdesign com>
2014-05-24 12:47:05 +00:00
William Grzybowski
27ea3674fa misc/py-pexpect: update to 3.1 2014-01-23 15:44:14 +00:00
William Grzybowski
b6fbbbc80c misc/py-pexpect: update to 3.0 and add license 2013-12-26 10:39:19 +00:00
William Grzybowski
b47d62dcad misc/py-pexpect: allow staging
- Allow staging
- Use auto python plist
- Take maintainership
2013-11-12 10:32:57 +00:00
Baptiste Daroussin
8ac99398e2 Add NO_STAGE all over the place in preparation for the staging support (cat: misc) 2013-09-20 20:50:57 +00:00
Eitan Adler
fbc06e4df6 Cleanup unmaintained ports in the misc category:
- Single space for WWW in pkg-descr
	- Ordering if of items in Makefile
	- Trim headers
	- Comment should not begin with leading article
	- Pet portlint
2013-03-25 18:44:20 +00:00
Emanuel Haupt
1afcdd5eb1 Remove trailing whitespaces.
Feature safe:	yes
2011-11-18 23:30:13 +00:00
Baptiste Daroussin
efb88eeea9 remove broken master_site from the list 2011-06-17 06:50:08 +00:00
Jung-uk Kim
0d248a13ba Remove a horrid hack to convert termios.TIOCSWINSZ to a signed integer.
All Python interpreters in the ports do not need this hack any more.
2010-07-19 22:05:22 +00:00
Dmitry Marakasov
a13d9a603d - Switch SourceForge ports to the new File Release System: categories starting with M 2009-08-22 00:28:34 +00:00
Mark Linimon
773850a8a6 Reassign ports maintained by dryice@ for now due to other commitments.
Hat:	portmgr
2008-12-18 02:24:04 +00:00
Pav Lucistnik
7294392e82 - Update to 2.4
PR:		ports/126641
Submitted by:	Wen heping <wenheping@gmail.com>
Approved by:	maintainer timeout (dryice; 4 months)
2008-12-17 15:14:42 +00:00
Dryice Dong Liu
5f39e58dfb - update to 2.3
- update my mail address
2008-01-14 02:45:28 +00:00
Martin Wilke
8bab1a3393 Update to 2.1
Take maintainership

PR:		ports/98927
Submitted by:	Dryice Liu
Approved by:	krion (mentor)
2006-06-14 15:23:30 +00:00
Mark Linimon
8a4b4d2c5c Update to 0.999 and work around buggy getpid() implementations in compiler.
PR:		ports/65846
Submitted by:	Marco Molteni <mmolteni@cisco.com>
2004-05-10 19:27:15 +00:00
Kirill Ponomarev
803dd5a0ab - Update to 0.99
PR:		61157
Submitted by:	Lars Erik Gullerud <lerik@nolink.net>
2004-01-10 09:32:25 +00:00
Daichi GOTO
e62607cbe9 update misc/py-pexpect: 0.95 -> 0.98
PR:		55799
Submitted by:	Marco Molteni <molter@tin.it>
2003-08-21 05:06:15 +00:00
Akinori MUSHA
2c41b9e5f3 De-pkg-comment. 2003-02-20 19:00:52 +00:00
Ying-Chieh Liao
e3e539b358 add py-pexpect 0.95
A Pure Python Expect-like module
2003-01-11 16:07:44 +00:00