misc/py-pexpect: Convert to USE_PYTHON=pep517 - Bump PORTREVISION for package change4cb9596f47
Port details
misc/py-pexpect 4.9.0_1
Python module for controlling interactive programs in pseudo-terminal
Port info
- Maintainer
- sunpoet@FreeBSD.org
- Packages
- latest: 4.9.0_1
- Upstream
- up to date
- Last update
- to 4.9.0_1 · 4cb9596f47
- Quarterly
- 2026Q4: 4.9.0_1
- Formerly
- misc/py3-pexpect until 2017-11-30
- WWW
- https://pexpect.readthedocs.io/en/stable/
- Links
- cgit · VuXML
Install
- Package
# pkg install py312-pexpectinstalls 4.9.0_1 fromlatest; fromquarterly(2026Q4) 4.9.0_1- Port
# cd /usr/ports/misc/py-pexpect && make install clean- Size
- 99 KiB download · 620 KiB installed
- Depends on
- lang/python312 3.12.15, sysutils/py-ptyprocess 0.7.0_1
- License
- ISCL
Packages by version and architecture
latest
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 16 | 4.9.0_1 | 4.9.0_1 | – |
| FreeBSD 15 | 4.9.0_1 | 4.9.0_1 | – |
| FreeBSD 14 | 4.9.0_1 | 4.9.0_1 | 4.9.0_1 |
quarterly (2026Q4)
| FreeBSD version | amd64 | aarch64 | i386 |
|---|---|---|---|
| FreeBSD 15 | 4.9.0_1 | 4.9.0_1 | – |
| FreeBSD 14 | 4.9.0_1 | 4.9.0_1 | 4.9.0_1 |
version as in the ports tree (latest) or the most common one (quarterly) · different version · ✗ not built · – no packages for this platform. Package sets that have not been rebuilt for 60 days are left out.
Unaddressed and VuXML only (0)
No unaddressed CVE and nothing reported by
pkg audit for the packaged version 4.9.0_1.Fixed (0)
No VuXML entries for this package.
Problem reports (0) · open in Bugzilla, most recently changed first
None.
Commits (47)
misc/py-pexpect: Convert to USE_PYTHON=unittest53ad6deb54
misc/py-pexpect: Update to 4.9.0 - Update WWW Changes: https://github.com/pexpect/pexpect/releases https://pexpect.readthedocs.io/en/stable/history.html5ca0f1b40b
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>3d9a815d9c*/*: rename CHEESESHOP to PYPI in MASTER_SITES PR: 267994 Differential revision: D37518 Approved by: bapt77d68471ad
Remove WWW entries moved into port Makefiles Commit b7f05445c00f has added WWW entries to port Makefiles based on WWW: lines in pkg-descr files. This commit removes the WWW: lines of moved-over URLs from these pkg-descr files. Approved by: portmgr (tcberner)fb16dfecae
Add WWW entries to port Makefiles It has been common practice to have one or more URLs at the end of the ports' pkg-descr files, one per line and prefixed with "WWW:". These URLs should point at a project website or other relevant resources. Access to these URLs required processing of the pkg-descr files, and they have often become stale over time. If more than one such URL was present in a pkg-descr file, only the first one was tarnsfered into the port INDEX, but for many ports only the last line did contain the port specific URL to further information. There have been several proposals to make a project URL available as a macro in the ports' Makefiles, over time. This commit implements such a proposal and moves one of the WWW: entries of each pkg-descr file into the respective port's Makefile. A heuristic attempts to identify the most relevant URL in case there is more than one WWW: entry in some pkg-descr file. URLs that are not moved into the Makefile are prefixed with "See also:" instead of "WWW:" in the pkg-descr files in order to preserve them. There are 1256 ports that had no WWW: entries in pkg-descr files. These ports will not be touched in this commit. The portlint port has been adjusted to expect a WWW entry in each port Makefile, and to flag any remaining "WWW:" lines in pkg-descr files as deprecated. Approved by: portmgr (tcberner)b7f05445c0
misc: remove 'Created by' lines A big Thank You to the original contributors of these ports: * Aaron Dalton <aaron@FreeBSD.org> * Adam Weinberger <adam@vectors.cx> * Adam Weinberger <adamw@FreeBSD.org> * Akinori MUSHA aka knu <knu@idaemons.org> * Alan E <alane@FreeBSD.org> * Alex Semenyaka <alex@rinet.ru> * Alex Stangl <alex@stangl.us> * Alexander Logvinov <avl@FreeBSD.org> * Alexander Logvinov <ports@logvinov.com> * Alexander Nusov <alexander.nusov@nfvexpress.com> * Alexander Timoshenko <gonzo@univ.kiev.ua> * Alexander Vereeken <Alexander88207@protonmail.com> * Alexey Dokuchaev <danfe@FreeBSD.org> * Alexey Dokuchaev <danfe@regency.nsu.ru> * Alexey Zelkin <phantom@FreeBSD.org> * Andreas Kohout <shanee@rabbit.augusta.de> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Andrew Stuart <elitetek@tekrealm.net> * Andrey Simonenko * Andrey Zakhvatov * Andy Kosela <akosela@andykosela.com> * Andy Pavlo <amp0928@rit.edu> * Anton Berezin <tobez@FreeBSD.org> * Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>) * Attila Nagy <bra@fsn.hu> * Bjorn Lindstrom <bkhl@elektrubadur.se> * Brendan Molloy <brendan+freebsd@bbqsrc.net> * Brent J. Nordquist <bjn@visi.com> * Cheng-Lung Sung <clsung@FreeBSD.org> * Chris Costello <chris@FreeBSD.org> * Chris D. Faulhaber <jedgar@fxp.org> * Chris Piazza <cpiazza@FreeBSD.org> * Chris Stuart <firewolf@lightningfire.net> * Conrad Sabatier <conrads@home.com> * Dan Moschuk <dan@FreeBSD.org> * Daniel B. Hemmerich <dan@spot.org> * David Johnson <david@usermode.org> * David O'Brien (obrien@cs.ucdavis.edu) * Dean Hollister <dean@odyssey.apana.org.au> * Denis Shaposhnikov <dsh@vlink.ru> * Dereckson <dereckson@gmail.com> * Dima Dorfman <dima@unixfreak.org> * Dima Sivachenko * Dima Sivachenko <dima@chg.ru> * Dmitry Morozovsky <marck@FreeBSD.org> * Dmitry Sivachenko <dima@Chg.RU> * Edwin Groothuis <edwin@mavetju.org> * Emanuel Haupt <ehaupt@FreeBSD.org> * Emanuel Haupt <ehaupt@critical.ch> * Eric Turgeon <ericbsd@FreeBSD.org> * Evaldas Auryla <ea@zaib.as> * Filippo Natali <filippo@widestore.net> * Frank Steinborn <steinex@nognu.de> * Frederic Culot <culot@FreeBSD.org> * G. Adam Stanislav <adam@whizkidtech.net> * Garrett Wollman <wollman@FreeBSD.org> * Gea-Suan Lin <gslin@gslin.org> * Greg Lehey <grog@FreeBSD.org> * Guangyuan Yang <ygy@FreeBSD.org> * Gustau Perez i Querol <gustau.perez@gmail.com> * Harald Schmalzbauer <freebsd@omnilan.de> * Harald Wille <harald.wille@students.jku.at> * Hye-Shik Chang <perky@python.or.kr> * Igor Pokrovsky <ip@unixway.org> * J Han <hjh@best.com> * James Earl <jdearl@telus.net> * James FitzGibbon <jfitz@FreeBSD.org> * James Howard <howardj@wam.umd.edu> * Jeremy Shaffner <jeremy@external.org> * Jim Mock <jim@FreeBSD.org> * Joao Carlos Mendes Luis <jonny@jonny.eng.br> * Joe Marcus Clarke <marcus@FreeBSD.org> * Johann Visagie <wjv@FreeBSD.org> * John Marino <marino@FreeBSD.org> * Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> * Jose Rodriguez <king@v2project.com> * Julian Stacey <jhs@FreeBSD.org> * KIRIYAMA Kazuhiko <kiri@kiri.toba-cmt.ac.jp> * Kelly Yancey <kbyanc@posi.net> * Kim Scarborough <user@unknown.nu> * Kimura Fuyuki <fuyuki@nigredo.org> * Kirill Ponomarew <ponomarew@oberon.net> * Koop Mast <kwm@FreeBSD.org> * Kubilay Kocak <koobs@FreeBSD.org> * Lars Engels <lars.engels@0x20.net> * Leland Wang <llwang@infor.org> * Machiel Mastenbroek <machiel_mastenbroek@hotmail.com> * Maksym Sobolyev <sobomax@pbxpress.it> * Marc Fonvieille <blackend@FreeBSD.org> * Marcus Alves Grando <mnag@FreeBSD.org> * Marie Loise Nolden <loise@kde.org> * Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> * Martin Blapp <mb@imp.ch> * Martin Neubauer <m.ne@gmx.net> * Martin Wilke <miwi@FreeBSD.org> * Mathieu Arnold <m@absolight.net> * Matt Emmerton <matt@gsicomp.on.ca> * Matt Mills <matt_mills@btopenworld.com> * Matthew Seaman * Matthias Andree <matthias.andree@gmx.de> * Max Khon <fjoe@FreeBSD.org> * Maxim Khon <fjoe@FreeBSD.org> * Maxim Sobolev <sobomax@FreeBSD.org> * Michael A. Kohn <mike@mikekohn.net> * Michael Elbel (me) * Michael Haro <mharo@FreeBSD.org> * Michael Johnson <ahze@FreeBSD.org> * Michael L. Hostbaek (mich@freebsdcluster.org) * Michael L. Hostbaek <mich@freebsdcluster.org> * Mikael Urankar <mikael.urankar@gmail.com> * Mike Smith <msmith@FreeBSD.org> * Miklos Niedermayer <mico@bsd.hu> * NECDET COKYAZICI <cokyazici@yahoo.co.uk> * Naito Yuichiro <naito.yuichiro@gmail.com> * Neil Blakey-Milner <nbm@rucus.ru.ac.za> * Niek Bergboer <niek@bergboer.net> * Oleh Hushchenkov <gor@clogic.com.ua> * Oliver Lehmann <oliver@FreeBSD.org> * Patrick Li <pat@databits.net> * Patrick Seal <patseal@hyperhost.net> * Pav Lucistnik <pav@oook.cz> * Pete Fritchman <petef@databits.net> * Peter Pentchev <roam@FreeBSD.org> * Philip Paeps <philip@FreeBSD.org> * Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Rainer Hurling <rhurlin@gwdg.de> * Ralf S. Engelschall <rse@engelschall.com> * Robert Withrow <witr@rwwa.com> * Roman Bogorodskiy <novel@FreeBSD.org> * Rong-En Fan <rafan@FreeBSD.org> * Ryan Steinmetz <zi@FreeBSD.org> * Sander Vesik <sander@haldjas.folklore.ee> * Scot W. Hetzel * Seamus Venasse <svenasse@polaris.ca> * Sebastien gioria <gioria@FreeBSD.org> * Serge Gagnon <gagnon__s@videotron.ca> * Sergei Kolobov <sergei@kolobov.com> * Sergey Skvortsov <skv@protey.ru> * SimaMoto,RyoTa <liangtai.s4@gmail.com> * Simon 'corecode' Schubert <corecode@corecode.ath.cx> * Slaven Rezic <slaven@rezic.de> * Stefan Walter <swalter@lettermax.de> * Stephen Farrell <steve@farrell.org> * Stephen Hurd <shurd@FreeBSD.org> * Steve Wills <swills@FreeBSD.org> * Steven Enderle <enderle@mdn.de> * Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> * TAKATSU Tomonari <tota@FreeBSD.org> * Thierry Thomas (<thierry@FreeBSD.org>) * Thomas Gellekum <tg@FreeBSD.org> * Timothy Bourke <timbob@bigpond.com> * Ting-Wei Lan <lantw44@gmail.com> * Tobias Roth <ports@fsck.ch> * Tom Rhodes <trhodes@FreeBSD.org> * Tomoyuki Sakurai <cherry@trombik.org> * Torsten Blum <torstenb@FreeBSD.org> * Vladimir Kondratyev <wulf@FreeBSD.org> * Wei-chun Chao * Wen Heping <wen@FreeBSD.org> * Willem van Engen <wvengen@stack.nl> * Wojciech A. Koszek <wkoszek@FreeBSD.org> * Xavier Beaudouin <kiwi@oav.net> * Yen-Ming Lee <leeym@FreeBSD.org> * Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw> * Ying-Chieh Liao <ijliao@FreeBSD.org> * Yoichi NAKAYAMA <yoichi@FreeBSD.org> * Yonatan@Xpert.com * Yukihiro Nakai <nakai@mlab.t.u-tokyo.ac.jp> * Yuri Victorovich <yuri@rawbw.com> * Zach Thompson <hideo@lastamericanempire.com> * Zeus Panchenko <zeus@gnu.org.ua> * alfred@FreeBSD.org * bmc@WillsCreek.COM * chinsan * cracauer@cons.org "Martin Cracauer" * dbaker * dd * dikshie <dikshie@lapi.itb.ac.id> * djp * globalpanic@gmx.net * gmarco@giovannelli.it * gpalmer * hrs, lesi * igor@zynaps.ru * ijliao * itojun@itojun.org * jmacd * joerg * jsellens * kaz * king@v2project.com * marcus * marcus@FreeBSD.org * markm * milki <milki@rescomp.berkeley.edu> * mnag * moeding * mp39590@gmail.com * mstowe@chicago.us.mensa.org * olgeni@FreeBSD.org * osa * pfg * ports@c0decafe.net <ports@c0decafe.net> * roam@FreeBSD.org * roam@orbitel.bg * sahne * sanpei@FreeBSD.org * sec@42.org * sf * shanee@augusta.de * shipley@dis.org * stolz@i2.informatik.rwth-aachen.de * sumikawa@FreeBSD.org * vanilla * wosch With hat: portmgrb832da1849
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)a642f92e86
Remove # $FreeBSD$ from Makefiles.305f148f48
Drop python 2.7 support from a few ports With hat: portmgraa7a6c429e
Update to 4.8.0 Changes: https://github.com/pexpect/pexpect/blob/master/doc/history.rst https://pexpect.readthedocs.io/en/stable/history.html#releases91e54b778c
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#releases0c6d3e5444
Add NO_ARCH1090bceed7
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)20c05e6884Use PY_FLAVOR for dependencies. FLAVOR is the current port's flavor, it should not be used outside of this scope. Sponsored by: Absolight4376dbbb58
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/D12464551be3c723misc/py3-pexpect: Correct supported versions of python33f5eded358
[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: 219833ac61d6ebeb
- Update to 4.2.1 - Update WWW PR: 217089 Submitted by: lwhsu Approved by: wg (maintainer)e4fadaf581
- Convert ports of misc/ to new USES=python Approved by: portmgr (implicit)273cb9ed49
misc/py-pexpect: update to 3.3430e8aed3a
misc/py-pexpect: update to 3.2 PR: ports/189708 Submitted by: Bartek Rutkowski <ports at robakdesign com>dca8d40633
Fix for python3: all integers are "long". With python2, if a number does not fit into "short int", it is automatically promoted to "long". No objection from: wg (maintainer)31a3bf7cad
misc/py-pexpect: update to 3.127ea3674fa
misc/py-pexpect: update to 3.0 and add licenseb6fbbbc80c
misc/py-pexpect: allow staging - Allow staging - Use auto python plist - Take maintainershipb47d62dcad
Add NO_STAGE all over the place in preparation for the staging support (cat: misc)8ac99398e2
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 portlintfbc06e4df6
Remove trailing whitespaces. Feature safe: yes1afcdd5eb1
remove broken master_site from the listefb88eeea9
- Get Rid MD5 supporta9481afc8a
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.0d248a13ba
- Switch SourceForge ports to the new File Release System: categories starting with Ma13d9a603d
Reassign ports maintained by dryice@ for now due to other commitments. Hat: portmgr773850a8a6
- Update to 2.4 PR: ports/126641 Submitted by: Wen heping <wenheping@gmail.com> Approved by: maintainer timeout (dryice; 4 months)7294392e82
Fix plist. Thanks pav@ for the notice19125f3b5d
- update to 2.3 - update my mail address5f39e58dfb
Remove useless patches Approved by: krion (mentor), maintainerd362a7b018
Update to 2.1 Take maintainership PR: ports/98927 Submitted by: Dryice Liu Approved by: krion (mentor)8bab1a3393
- Add SHA25670231c0b10
Update to 0.999 and work around buggy getpid() implementations in compiler. PR: ports/65846 Submitted by: Marco Molteni <mmolteni@cisco.com>8a4b4d2c5c
SIZEify.f15b845ebe
- Update to 0.99 PR: 61157 Submitted by: Lars Erik Gullerud <lerik@nolink.net>803dd5a0ab
update misc/py-pexpect: 0.95 -> 0.98 PR: 55799 Submitted by: Marco Molteni <molter@tin.it>e62607cbe9
De-pkg-comment.2c41b9e5f3
add py-pexpect 0.95 A Pure Python Expect-like modulee3e539b358