From 09afe63af74a542320ae9fdc3df0fe277ba4870725535d93ac66d6a85bdbabb1 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Fri, 7 Oct 2022 07:54:18 +0000 Subject: [PATCH] Accepting request 1008623 from home:yarunachalam:branches:devel:languages:python - Update to version 3.5.3 Fix related to the 'timeout' option (--timeout for dialog) * dialog.py (Dialog._perform): ignore the dialog output when a timeout occurred, which we know thanks to the exit code. Without this change, output parsing or checking (e.g., in Dialog._widget_with_no_output()) would be broken by the '\ntimeout\n' string printed by dialog in such cases (seen with msgbox, at least). It might be that parsing is still disturbed for some widgets when a timeout occurs, if they never produce an empty output in a no-timeout situation: this remains to be checked. Also, it appears that the --timeout option doesn't work with all widgets in the dialog backend (tested with dialog 1.3-20201126: 'msgbox', 'checklist' and 'menu' support --timeout; 'inputbox' and 'mixedform' don't; other widgets untested with this option). Show use of d.add_persistent_args(["--no-nl-expand"]) in examples * Using this option is quite relevant when using pythondialog. Thanks to ChristianTacke for the report. Closes: . Improve support for the --timeout dialog option * Set DIALOG_TIMEOUT in the environment when invoking dialog; this allows us to distinguish between DIALOG_TIMEOUT and DIALOG_ESC. Add the corresponding TIMEOUT attribute to the Dialog class. Thanks to Rolf for the report. Closes: . - Update to version 3.5.1 README.rst: update the latest version of the Python 2 backport * README.rst: the latest version of the Python 2 backport is now 3.5.1. This will also be the last version, unless metadata needs to be updated (e.g., if the home page or Git repository were to move, we would probably have to make a new upload in order to update the data published OBS-URL: https://build.opensuse.org/request/show/1008623 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pythondialog?expand=0&rev=3 --- python-pythondialog.changes | 59 +++++++++++++++++++++++++++++++++++++ python-pythondialog.spec | 4 +-- pythondialog-3.5.1.tar.gz | 3 -- pythondialog-3.5.3.tar.gz | 3 ++ 4 files changed, 64 insertions(+), 5 deletions(-) delete mode 100644 pythondialog-3.5.1.tar.gz create mode 100644 pythondialog-3.5.3.tar.gz diff --git a/python-pythondialog.changes b/python-pythondialog.changes index f332649..5b51959 100644 --- a/python-pythondialog.changes +++ b/python-pythondialog.changes @@ -1,3 +1,62 @@ +------------------------------------------------------------------- +Thu Oct 6 22:56:24 UTC 2022 - Yogalakshmi Arunachalam + +- Update to version 3.5.3 + + Fix related to the 'timeout' option (--timeout for dialog) + + * dialog.py (Dialog._perform): ignore the dialog output when a timeout + occurred, which we know thanks to the exit code. Without this change, + output parsing or checking (e.g., in Dialog._widget_with_no_output()) + would be broken by the '\ntimeout\n' string printed by dialog in such + cases (seen with msgbox, at least). + + It might be that parsing is still disturbed for some widgets when a + timeout occurs, if they never produce an empty output in a no-timeout + situation: this remains to be checked. Also, it appears that the + --timeout option doesn't work with all widgets in the dialog + backend (tested with dialog 1.3-20201126: 'msgbox', 'checklist' and + 'menu' support --timeout; 'inputbox' and 'mixedform' don't; other + widgets untested with this option). + + Show use of d.add_persistent_args(["--no-nl-expand"]) in examples + + * Using this option is quite relevant when using pythondialog. Thanks to + ChristianTacke for the report. Closes: + . + + Improve support for the --timeout dialog option + + * Set DIALOG_TIMEOUT in the environment when invoking dialog; this + allows us to distinguish between DIALOG_TIMEOUT and DIALOG_ESC. Add + the corresponding TIMEOUT attribute to the Dialog class. Thanks to + Rolf for the report. Closes: + . + +- Update to version 3.5.1 + + README.rst: update the latest version of the Python 2 backport + + * README.rst: the latest version of the Python 2 backport is now 3.5.1. + This will also be the last version, unless metadata needs to be updated + (e.g., if the home page or Git repository were to move, we would + probably have to make a new upload in order to update the data published + on PyPI). + + Safer instruction when using easy_install + + * INSTALL: when easy_install is mentioned (deprecated method!), + explicitly use /bin/easy_install to ensure it comes from the + right Python installation. + + demo: remove invalid escape sequence from sample string + + * examples/with-autowidgetsize/demo.py: same change as in commit + 94f0dc952f7cfe7cecc7865dd3febf4a457072c0, since the file is essentially + a copy of examples/demo.py. The escape sequence \/ is invalid in normal + strings; use a raw string here, since the goal was to display both + characters. + ------------------------------------------------------------------- Tue Jan 21 14:08:27 UTC 2020 - Ondřej Súkup diff --git a/python-pythondialog.spec b/python-pythondialog.spec index b03be9d..0067e29 100644 --- a/python-pythondialog.spec +++ b/python-pythondialog.spec @@ -1,7 +1,7 @@ # # spec file for package python-pythondialog # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,7 +19,7 @@ %define skip_python2 1 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pythondialog -Version: 3.5.1 +Version: 3.5.3 Release: 0 Summary: A Python interface to the UNIX dialog utility and mostly-compatible programs License: LGPL-2.1-only diff --git a/pythondialog-3.5.1.tar.gz b/pythondialog-3.5.1.tar.gz deleted file mode 100644 index bb09ba3..0000000 --- a/pythondialog-3.5.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34a0687290571f37d7d297514cc36bd4cd044a3a4355271549f91490d3e7ece8 -size 1485873 diff --git a/pythondialog-3.5.3.tar.gz b/pythondialog-3.5.3.tar.gz new file mode 100644 index 0000000..b2d2081 --- /dev/null +++ b/pythondialog-3.5.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2a34a8af0a6625ccbdf45cd343b854fc6c1a85231dadc80b8805db836756323 +size 1509854