./devel/py-dialog, Python wrapper for the dialog utility

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 3.5.2, Package name: py38-dialog-3.5.2, Maintainer: pkgsrc-users

pythondialog is a Python wrapper for the dialog utility originally
written by Savio Lam, and later rewritten by Thomas E. Dickey. Its
purpose is to provide an easy to use, pythonic and comprehensive Python
interface to dialog. This allows one to make simple text-mode user
interfaces on Unix-like systems (including Linux).

This package is the officially maintained version of pythondialog. It
supports Python 3.x only.


Required to run:
[misc/dialog] [devel/py-setuptools] [lang/python37]

Required to build:
[pkgtools/cwrappers]

Master sites:

SHA1: 25d6dc406057e1df3a00ad15f0dd75c8bcae45ba
RMD160: 055d749cc3ffb72c228076a9df64515d2c03d946
Filesize: 1475.07 KB

Version history: (Expand)


CVS history: (Expand)


   2021-09-15 10:19:47 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dialog: updated to 3.5.2

Release 3.5.2

Update ChangeLog.init (improve some log messages)

demo: add example of an msgbox with timeout

* examples/demo.py: add method MyApp.timeout_demo(), which shows how to
detect a timeout when an msgbox has been presented to the user.

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.
   2020-03-20 12:58:37 by Nia Alarie | Files touched by this commit (640)
Log message:
*: Convert broken sourceforge HOMEPAGEs back to http
   2020-02-04 18:17:07 by Adam Ciarcinski | Files touched by this commit (6) | Package updated
Log message:
py-dialog{2}: updated to 3.5.1

Main changes in version 3.5.1

The main changes in version 3.5.1 are:

The default used when the PATH environment variable is unset is now \ 
"/bin:/usr/bin" instead of ":/bin:/usr/bin". This is \ 
relevant when the dialog argument of the Dialog constructor contains no slash \ 
(/), which is the case by default. The benefit of this change is that in such a \ 
situation (PATH unset and dialog argument containing no slash), the dialog-like \ 
program will not be searched in the current directory anymore (unless of course \ 
the current directory is /bin or /usr/bin). This is a much safer behavior; \ 
fortunately, the risky behavior only ever existed on bogus setups where the PATH \ 
environment variable is unset.

Note that in this respect, we have been following what the GNU C Library (glibc) \ 
does for its execvp() function—the corresponding change in glibc happened in \ 
version 2.24, released in 2016.

When a Dialog instance is created, it now immediately stores the result of \ 
calling os.path.realpath() on the specified executable (which is searched using \ 
the PATH if the dialog argument passed to the constructor contains no \ 
slash—cf. documentation of the Dialog constructor). This way, a \ 
pythondialog-based program can change its current directory after creating a \ 
Dialog instance without fearing that this might cause subsequent Dialog method \ 
calls to fail or to invoke an executable from a different directory \ 
(additionally, os.path.realpath() resolves symbolic links).

The Python 2 backport of pythondialog has been released for this version and \ 
should be on par with pythondialog 3.5.1 (this is why version 3.5.0 of the \ 
backport has been skipped). The packaging of the backport has been switched from \ 
distutils to setuptools too, just as was done in pythondialog 3.5.0 (see below). \ 
As a consequence, it is now available in wheel format. However, as said above, \ 
Python 2 is deprecated and the Python 2 backport of pythondialog is not \ 
supported anymore. Don't expect any further updates to it.

Main changes in version 3.5.0

The main change in version 3.5.0 is:

pythondialog's packaging has been switched from distutils to setuptools (this is \ 
the modern way, see the Python Packaging User Guide). Thanks to this change, \ 
pythondialog is now available in wheel format. The normal installation method \ 
using pip didn't change (see the INSTALL file for details).

The Python 2 backport of pythondialog has not been released for this version \ 
(version 3.5.1 will be the last one).
   2020-01-19 00:36:14 by Roland Illig | Files touched by this commit (3046)
Log message:
all: migrate several HOMEPAGEs to https

pkglint --only "https instead of http" -r -F

With manual adjustments afterwards since pkglint 19.4.4 fixed a few
indentations in unrelated lines.

This mainly affects projects hosted at SourceForce, as well as
freedesktop.org, CTAN and GNU.
   2016-11-13 11:52:28 by Makoto Fujiwara | Files touched by this commit (2) | Package updated
Log message:
Updated devel/py-dialog to 3.4.0
--------------------------------
2016-05-07  Florent Rougon  <f.rougon@free.fr>

        Release 3.4.0

        README.rst: link to the blessings library, add link to ncurses home page

2016-05-07  Florent Rougon  <f.rougon@free.fr>

        Add 'week_start' common option, mapped to dialog's --week-start option

        * The value may be an integer or a string (cf. dialog's man page for
        more details).

        * Using this requires dialog 1.3-20160126 or later.

2016-05-07  Florent Rougon  <f.rougon@free.fr>

        Update copyright notices and demo version

        Fix typo

2016-05-07  Florent Rougon  <f.rougon@free.fr>

        Doc build: suppress warnings about :option:`--unknown-option` references

        * The documentation contains many references to dialog options. These
        are not defined in the pythondialog Manual, which with recent Sphinx
        (>= 1.3 or something like that) causes a lot of warnings. Fortunately,
        these can be suppressed (specifically for unknown option references)
        with 'suppress_warnings' in conf.py starting from Sphinx 1.4.0.

        * This is what this commit does. Alternatively, the option references
        could be replaced with dumb markup such as ``--unknown-option``.

2016-05-07  Florent Rougon  <f.rougon@free.fr>

        Add demo example for Dialog.editbox_str()

2016-05-06  Florent Rougon  <f.rougon@free.fr>

        Add Dialog.editbox_str()

        * dialog.py (Dialog.editbox_str): new method. It is a convenience
        wrapper around Dialog.editbox() that automatically creates and deletes a
        temporary file containing the initial box contents which is passed as a
        string (Dialog.editbox() needs it in a file).

2016-01-28  Florent Rougon  <f.rougon@free.fr>

        Fix bug in demo.py when /etc/passwd is inexistent

        * examples/demo.py (MyApp.editbox_demo): display a message when
        /etc/passwd is inexistent instead of raising an exception (trying to
        display the result, which doesn't exist).
   2015-12-01 09:32:51 by Filip Hajny | Files touched by this commit (4) | Package updated
Log message:
Update devel/py-dialog and devel/py-dialog2 to 3.3.0.

Main changes in version 3.3.0
- Allow passing dialog arguments via a temporary file.
- Bug fix in Dialog._dialog_version_check().

Main changes in version 3.2.2
- Fix backend version check for buildlist, programbox, rangebox
  and treeview.
- Bug fixes related to old versions of dialog (e.g., 1.1-20100428)
  and Python.
   2015-11-03 04:29:40 by Alistair G. Crooks | Files touched by this commit (1995)
Log message:
Add SHA512 digests for distfiles for devel category

Issues found with existing distfiles:
	distfiles/eclipse-sourceBuild-srcIncluded-3.0.1.zip
	distfiles/fortran-utils-1.1.tar.gz
	distfiles/ivykis-0.39.tar.gz
	distfiles/enum-1.11.tar.gz
	distfiles/pvs-3.2-libraries.tgz
	distfiles/pvs-3.2-linux.tgz
	distfiles/pvs-3.2-solaris.tgz
	distfiles/pvs-3.2-system.tgz
No changes made to these distinfo files.

Otherwise, existing SHA1 digests verified and found to be the same on
the machine holding the existing distfiles (morden).  All existing
SHA1 digests retained for now as an audit trail.
   2015-04-14 01:12:44 by Blue Rats | Files touched by this commit (94)
Log message:
Removing python26. EOL'd quite some ago and discussed a couple times on
tech-pkg@ and pkgsrc-users@.