From 2b8e50c0b3b0df0a2dbb71964f158a475608d422568fcea27a89e93da14360f7 Mon Sep 17 00:00:00 2001 From: Daniel Garcia Date: Tue, 17 Oct 2023 08:11:46 +0000 Subject: [PATCH] - add 742.patch, gh#pexpect/pexpect#742 This makes it compatible with python3.12 gh#pexpect/pexpect#736#issuecomment-1427273882 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pexpect?expand=0&rev=78 --- 742.patch | 13 +++++++++++++ python-pexpect.changes | 6 ++++++ python-pexpect.spec | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 742.patch 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}