As we discussed in the last meeting, we reset the ports tree and began from scratch, even though this change involves porting all the packages. Starting small and growing gradually, this approach will reduce build times and consequently lower energy consumption in a world affected by climate change. We will add new ports as users needs arise; ok h3artbl33d@

This commit is contained in:
purplerain 2024-05-26 03:08:12 +00:00
parent 83a0aaf92c
commit 9a3af55370
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
59377 changed files with 98673 additions and 4712155 deletions

View file

@ -1,48 +1,34 @@
COMMENT= pure Python Expect-like module
COMMENT= pure Python Expect-like module
MODPY_EGG_VERSION= 4.8.0
DISTNAME= pexpect-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
REVISION= 0
MODPY_EGG_VERSION= 4.9.0
DISTNAME= pexpect-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
REVISION= 0
HOMEPAGE= https://pexpect.readthedocs.io/
HOMEPAGE= https://pexpect.readthedocs.io/
# ISC
PERMIT_PACKAGE= Yes
MODPY_PI = Yes
MODPY_PYTEST = Yes
# verbose to identify hanging tests, see patch-tests_test_expect_py
MODPY_PYTEST_ARGS = -v
MODPY_PI= Yes
MODPY_PYBUILD= setuptools
MODULES= lang/python
MODULES= lang/python
RUN_DEPENDS = devel/py-ptyprocess${MODPY_FLAVOR}
BUILD_DEPENDS = ${RUN_DEPENDS}
TEST_DEPENDS = shells/bash \
sysutils/coreutils
RUN_DEPENDS= devel/py-ptyprocess${MODPY_FLAVOR}
BUILD_DEPENDS= ${RUN_DEPENDS}
TEST_DEPENDS= shells/bash \
sysutils/coreutils
TEST_LOG=
FLAVORS= python3
FLAVOR= python3
FLAVORS = python3
FLAVOR = python3
MODPY_ADJ_FILES = tests/fakessh/ssh
EXAMPLESDIR= ${PREFIX}/share/examples/${MODPY_PY_PREFIX}pexpect
DOCDIR= ${PREFIX}/share/doc/${MODPY_PY_PREFIX}pexpect
pre-build:
${SUBST_CMD} ${WRKSRC}/pexpect/replwrap.py
${SUBST_CMD} ${WRKSRC}/tests/test_ctrl_chars.py
${SUBST_CMD} ${WRKSRC}/tests/test_performance.py
${SUBST_CMD} ${WRKSRC}/tests/test_replwrap.py
${SUBST_CMD} ${WRKSRC}/tests/test_run.py
#MODPY_ADJ_FILES= tests/fakessh/ssh
post-install:
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-pexpect
${INSTALL_DATA} ${WRKSRC}/examples/* ${PREFIX}/share/examples/py-pexpect
pre-test:
ln -fs ${MODPY_BIN} ${WRKDIR}/bin/python

View file

@ -1,2 +1,2 @@
SHA256 (pexpect-4.8.0.tar.gz) = /GWkOVnRU9ARSv4TmX1DnCKCOifO/Otf81wheMZ4TAw=
SIZE (pexpect-4.8.0.tar.gz) = 157037
SHA256 (pexpect-4.9.0.tar.gz) = 7n1BEj88mREFDqLC2sEHVo3EOy07DHVXozISw5jq0w8=
SIZE (pexpect-4.9.0.tar.gz) = 166450

View file

@ -1,11 +0,0 @@
--- doc/conf.py.orig Wed Dec 30 15:08:22 2015
+++ doc/conf.py Wed Dec 30 15:08:30 2015
@@ -25,7 +25,7 @@ sys.path.insert(0, os.path.abspath('sphinxext'))
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.intersphinx',
+extensions = ['sphinx.ext.autodoc',
'sphinx.ext.viewcode', 'github', # for easy GitHub links
]

View file

@ -1,13 +0,0 @@
newer Sphinx removes sphinx.info()
Index: doc/sphinxext/github.py
--- doc/sphinxext/github.py.orig
+++ doc/sphinxext/github.py
@@ -146,7 +146,6 @@ def setup(app):
:param app: Sphinx application context.
"""
- app.info('Initializing GitHub plugin')
app.add_role('ghissue', ghissue_role)
app.add_role('ghpull', ghissue_role)
app.add_role('ghuser', ghuser_role)

View file

@ -1,12 +0,0 @@
Index: pexpect/replwrap.py
--- pexpect/replwrap.py.orig
+++ pexpect/replwrap.py
@@ -108,7 +108,7 @@ class REPLWrapper(object):
+ command)
return u''.join(res + [self.child.before])
-def python(command="python"):
+def python(command="${MODPY_BIN}"):
"""Start a Python shell and return a :class:`REPLWrapper` object."""
return REPLWrapper(command, u">>> ", u"import sys; sys.ps1={0!r}; sys.ps2={1!r}")

View file

@ -1,90 +1,12 @@
#1, hardcoded /bin/bash, needs nl
#2, disable tests new in 4.8 which hangs
Index: tests/test_expect.py
--- tests/test_expect.py.orig
+++ tests/test_expect.py
@@ -411,7 +411,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase)
@@ -485,7 +485,7 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase)
def test_before_across_chunks(self):
# https://github.com/pexpect/pexpect/issues/478
child = pexpect.spawn(
- '''/bin/bash -c "openssl rand -base64 {} 2>/dev/null | head -500 | nl --number-format=rz --number-width=5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
+ '''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | gnl --number-format=rz --number-width=5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
- '''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | nl -n rz -w 5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
+ '''/bin/sh -c "openssl rand -base64 {} 2>/dev/null | head -500 | gnl -n rz -w 5 2>&1 ; echo 'PATTERN!!!'"'''.format(1024 * 1024 * 2),
searchwindowsize=128
)
child.expect(['PATTERN'])
@@ -451,40 +451,40 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase)
p.expect = p.expect_exact
self._before_after(p)
- def test_before_after_timeout(self):
- '''Tests that timeouts do not truncate before, a bug in 4.4-4.7.'''
- child = pexpect.spawn('cat', echo=False)
- child.sendline('BEGIN')
- for i in range(100):
- child.sendline('foo' * 100)
- e = child.expect([b'xyzzy', pexpect.TIMEOUT],
- searchwindowsize=10, timeout=0.001)
- self.assertEqual(e, 1)
- child.sendline('xyzzy')
- e = child.expect([b'xyzzy', pexpect.TIMEOUT],
- searchwindowsize=10, timeout=30)
- self.assertEqual(e, 0)
- self.assertEqual(child.before[0:5], b'BEGIN')
- child.sendeof()
- child.expect(pexpect.EOF)
-
- def test_increasing_searchwindowsize(self):
- '''Tests that the search window can be expanded, a bug in 4.4-4.7.'''
- child = pexpect.spawn('cat', echo=False)
- child.sendline('BEGIN')
- for i in range(100):
- child.sendline('foo' * 100)
- e = child.expect([b'xyzzy', pexpect.TIMEOUT],
- searchwindowsize=10, timeout=0.5)
- self.assertEqual(e, 1)
- e = child.expect([b'BEGIN', pexpect.TIMEOUT],
- searchwindowsize=10, timeout=0.5)
- self.assertEqual(e, 1)
- e = child.expect([b'BEGIN', pexpect.TIMEOUT],
- searchwindowsize=40000, timeout=30.0)
- self.assertEqual(e, 0)
- child.sendeof()
- child.expect(pexpect.EOF)
+# def test_before_after_timeout(self):
+# '''Tests that timeouts do not truncate before, a bug in 4.4-4.7.'''
+# child = pexpect.spawn('cat', echo=False)
+# child.sendline('BEGIN')
+# for i in range(100):
+# child.sendline('foo' * 100)
+# e = child.expect([b'xyzzy', pexpect.TIMEOUT],
+# searchwindowsize=10, timeout=0.001)
+# self.assertEqual(e, 1)
+# child.sendline('xyzzy')
+# e = child.expect([b'xyzzy', pexpect.TIMEOUT],
+# searchwindowsize=10, timeout=30)
+# self.assertEqual(e, 0)
+# self.assertEqual(child.before[0:5], b'BEGIN')
+# child.sendeof()
+# child.expect(pexpect.EOF)
+#
+# def test_increasing_searchwindowsize(self):
+# '''Tests that the search window can be expanded, a bug in 4.4-4.7.'''
+# child = pexpect.spawn('cat', echo=False)
+# child.sendline('BEGIN')
+# for i in range(100):
+# child.sendline('foo' * 100)
+# e = child.expect([b'xyzzy', pexpect.TIMEOUT],
+# searchwindowsize=10, timeout=0.5)
+# self.assertEqual(e, 1)
+# e = child.expect([b'BEGIN', pexpect.TIMEOUT],
+# searchwindowsize=10, timeout=0.5)
+# self.assertEqual(e, 1)
+# e = child.expect([b'BEGIN', pexpect.TIMEOUT],
+# searchwindowsize=40000, timeout=30.0)
+# self.assertEqual(e, 0)
+# child.sendeof()
+# child.expect(pexpect.EOF)
def test_searchwindowsize(self):
'''Tests that we don't match outside the window, a bug in 4.4-4.7.'''

View file

@ -1,25 +1,53 @@
lib/python${MODPY_VERSION}/site-packages/pexpect/
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}.dist-info/
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}.dist-info/LICENSE
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}.dist-info/METADATA
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}.dist-info/RECORD
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}.dist-info/WHEEL
lib/python${MODPY_VERSION}/site-packages/pexpect-${MODPY_EGG_VERSION}.dist-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/pexpect/ANSI.py
lib/python${MODPY_VERSION}/site-packages/pexpect/FSM.py
lib/python${MODPY_VERSION}/site-packages/pexpect/__init__.py
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}/
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}ANSI.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}ANSI.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}FSM.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}FSM.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}_async.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
${MODPY_COMMENT}lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}_async.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}_async_pre_await.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}_async_pre_await.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}_async_w_await.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}_async_w_await.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}exceptions.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}exceptions.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}expect.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}expect.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}fdpexpect.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}fdpexpect.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}popen_spawn.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}popen_spawn.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}pty_spawn.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}pty_spawn.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}pxssh.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}pxssh.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}replwrap.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}replwrap.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}run.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}run.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}screen.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}screen.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}socket_pexpect.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}socket_pexpect.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}spawnbase.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}spawnbase.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/pexpect/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/pexpect/_async.py
lib/python${MODPY_VERSION}/site-packages/pexpect/_async_pre_await.py
lib/python${MODPY_VERSION}/site-packages/pexpect/_async_w_await.py
lib/python${MODPY_VERSION}/site-packages/pexpect/bashrc.sh
lib/python${MODPY_VERSION}/site-packages/pexpect/exceptions.py
lib/python${MODPY_VERSION}/site-packages/pexpect/expect.py
@ -30,23 +58,25 @@ lib/python${MODPY_VERSION}/site-packages/pexpect/pxssh.py
lib/python${MODPY_VERSION}/site-packages/pexpect/replwrap.py
lib/python${MODPY_VERSION}/site-packages/pexpect/run.py
lib/python${MODPY_VERSION}/site-packages/pexpect/screen.py
lib/python${MODPY_VERSION}/site-packages/pexpect/socket_pexpect.py
lib/python${MODPY_VERSION}/site-packages/pexpect/spawnbase.py
lib/python${MODPY_VERSION}/site-packages/pexpect/utils.py
share/examples/${MODPY_PY_PREFIX}pexpect/
share/examples/${MODPY_PY_PREFIX}pexpect/README
share/examples/${MODPY_PY_PREFIX}pexpect/astat.py
share/examples/${MODPY_PY_PREFIX}pexpect/cgishell.cgi
share/examples/${MODPY_PY_PREFIX}pexpect/chess.py
share/examples/${MODPY_PY_PREFIX}pexpect/chess2.py
share/examples/${MODPY_PY_PREFIX}pexpect/chess3.py
share/examples/${MODPY_PY_PREFIX}pexpect/df.py
share/examples/${MODPY_PY_PREFIX}pexpect/ftp.py
share/examples/${MODPY_PY_PREFIX}pexpect/hive.py
share/examples/${MODPY_PY_PREFIX}pexpect/monitor.py
share/examples/${MODPY_PY_PREFIX}pexpect/passmass.py
share/examples/${MODPY_PY_PREFIX}pexpect/python.py
share/examples/${MODPY_PY_PREFIX}pexpect/script.py
share/examples/${MODPY_PY_PREFIX}pexpect/ssh_tunnel.py
share/examples/${MODPY_PY_PREFIX}pexpect/table_test.html
share/examples/${MODPY_PY_PREFIX}pexpect/topip.py
share/examples/${MODPY_PY_PREFIX}pexpect/uptime.py
share/examples/py-pexpect/
share/examples/py-pexpect/README
share/examples/py-pexpect/astat.py
share/examples/py-pexpect/cgishell.cgi
share/examples/py-pexpect/chess.py
share/examples/py-pexpect/chess2.py
share/examples/py-pexpect/chess3.py
share/examples/py-pexpect/df.py
share/examples/py-pexpect/ftp.py
share/examples/py-pexpect/hive.py
share/examples/py-pexpect/monitor.py
share/examples/py-pexpect/passmass.py
share/examples/py-pexpect/python.py
share/examples/py-pexpect/script.py
share/examples/py-pexpect/ssh_tunnel.py
share/examples/py-pexpect/table_test.html
share/examples/py-pexpect/terminal_emulation.py
share/examples/py-pexpect/topip.py
share/examples/py-pexpect/uptime.py