diff --git a/742.patch b/742.patch new file mode 100644 index 0000000..8ac0af8 --- /dev/null +++ b/742.patch @@ -0,0 +1,13 @@ +Index: pexpect-4.8.0/tests/fakessh/ssh +=================================================================== +--- pexpect-4.8.0.orig/tests/fakessh/ssh ++++ pexpect-4.8.0/tests/fakessh/ssh +@@ -62,7 +62,7 @@ prompt = "$" + while True: + cmd = input(prompt) + if cmd.startswith('PS1='): +- prompt = eval(cmd[4:]).replace('\$', '$') ++ prompt = eval(cmd[4:]).replace(r'\$', '$') + elif cmd == 'ping': + print('pong') + elif cmd.startswith('ls'): diff --git a/python-pexpect.changes b/python-pexpect.changes index eb51fe2..8c6bdd9 100644 --- a/python-pexpect.changes +++ b/python-pexpect.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Oct 17 08:08:38 UTC 2023 - Daniel Garcia Moreno + +- add 742.patch, gh#pexpect/pexpect#742 This makes it compatible with + python3.12 gh#pexpect/pexpect#736#issuecomment-1427273882 + ------------------------------------------------------------------- Tue Aug 15 08:29:26 UTC 2023 - Dirk Müller diff --git a/python-pexpect.spec b/python-pexpect.spec index e9625b4..9c5f0f0 100644 --- a/python-pexpect.spec +++ b/python-pexpect.spec @@ -32,6 +32,8 @@ Patch3: fix-fail-no-alias.patch # Python 3.12 tests Patch4: https://github.com/pexpect/pexpect/commit/dae602d37493bae239e0e8db5b3dabafebfd59db.patch Patch5: https://github.com/pexpect/pexpect/commit/31fab7b0edbe9b3401507b5dfa4db6aaf3fabca5.patch +# PATCH-FIX-UPSTREAM 742.patch gh#pexpect/pexpect#742 +Patch6: 742.patch BuildRequires: %{python_module pip} BuildRequires: %{python_module ptyprocess} BuildRequires: %{python_module pytest}