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

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


Branch: CURRENT, Version: 3.5.3nb1, Package name: py310-dialog-3.5.3nb1, 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:

Filesize: 1474.467 KB

Version history: (Expand)


CVS history: (Expand)


   2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595)
Log message:
*: bump PKGREVISION for egg.mk users

They now have a tool dependency on py-setuptools instead of a DEPENDS
   2021-11-27 17:44:22 by Adam Ciarcinski | Files touched by this commit (2) | Package updated
Log message:
py-dialog: updated to 3.5.3

3.5.3:
Home page: switch to the new https-based URL
   2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016)
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums

All checksums have been double-checked against existing RMD160 and
SHA512 hashes

Could not be committed due to merge conflict:
devel/py-traitlets/distinfo

The following distfiles were unfetchable (note: some may be only fetched
conditionally):

./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
   2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017)
Log message:
devel: Remove SHA1 hashes for distfiles
   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.