2020-01-21 14:12:35 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-pythondialog
|
|
|
|
#
|
2025-06-11 06:26:22 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2020-01-21 14:12:35 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define skip_python2 1
|
|
|
|
Name: python-pythondialog
|
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:
<https://github.com/frougon/pythondialog/issues/8>.
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:
<https://sourceforge.net/p/pythondialog/bugs/11/>.
- 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
2022-10-07 07:54:18 +00:00
|
|
|
Version: 3.5.3
|
2020-01-21 14:12:35 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A Python interface to the UNIX dialog utility and mostly-compatible programs
|
|
|
|
License: LGPL-2.1-only
|
|
|
|
Group: Development/Languages/Python
|
|
|
|
URL: http://pythondialog.sourceforge.net/
|
|
|
|
Source: https://files.pythonhosted.org/packages/source/p/pythondialog/pythondialog-%{version}.tar.gz
|
2025-06-11 06:26:22 +00:00
|
|
|
BuildRequires: %{python_module pip}
|
2020-01-21 14:12:35 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2025-06-11 06:26:22 +00:00
|
|
|
BuildRequires: %{python_module wheel}
|
2020-01-21 14:12:35 +00:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
Requires: dialog
|
|
|
|
BuildArch: noarch
|
|
|
|
%python_subpackages
|
|
|
|
|
|
|
|
%description
|
|
|
|
Python wrapper for the UNIX "dialog" utility
|
|
|
|
Easy writing of graphical interfaces for terminal-based applications
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pythondialog-%{version}
|
|
|
|
|
|
|
|
%build
|
2025-06-11 06:26:22 +00:00
|
|
|
%pyproject_wheel
|
2020-01-21 14:12:35 +00:00
|
|
|
|
|
|
|
%install
|
2025-06-11 06:26:22 +00:00
|
|
|
%pyproject_install
|
2020-01-21 14:12:35 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%files %{python_files}
|
2025-06-30 05:35:01 +00:00
|
|
|
%{python_sitelib}/dialog.py
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/dialog.*.pyc
|
2025-06-11 06:26:22 +00:00
|
|
|
%{python_sitelib}/pythondialog-%{version}.dist-info
|
2020-01-21 14:12:35 +00:00
|
|
|
%license COPYING
|
|
|
|
%doc README.rst ChangeLog AUTHORS
|
|
|
|
|
|
|
|
%changelog
|