pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel py-dialog{2}: updated to 3.5.1



details:   https://anonhg.NetBSD.org/pkgsrc/rev/05e246f5658c
branches:  trunk
changeset: 411064:05e246f5658c
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Feb 04 17:17:06 2020 +0000

description:
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).

diffstat:

 devel/py-dialog/Makefile  |  11 ++++++-----
 devel/py-dialog/PLIST     |   9 ++++++---
 devel/py-dialog/distinfo  |  10 +++++-----
 devel/py-dialog2/Makefile |  11 ++++++-----
 devel/py-dialog2/PLIST    |   7 +++++--
 devel/py-dialog2/distinfo |  10 +++++-----
 6 files changed, 33 insertions(+), 25 deletions(-)

diffs (113 lines):

diff -r 346e5cd5a7ca -r 05e246f5658c devel/py-dialog/Makefile
--- a/devel/py-dialog/Makefile  Tue Feb 04 17:04:40 2020 +0000
+++ b/devel/py-dialog/Makefile  Tue Feb 04 17:17:06 2020 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2020/01/18 23:30:37 rillig Exp $
+# $NetBSD: Makefile,v 1.6 2020/02/04 17:17:06 adam Exp $
 
-VERSION=       3.4.0
-DISTNAME=      pythondialog-${VERSION}
-PKGNAME=       ${PYPKGPREFIX}-dialog-${VERSION}
+DISTNAME=      pythondialog-3.5.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^python//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pythondialog/}
 
@@ -11,8 +10,10 @@
 COMMENT=       Python wrapper for the dialog utility
 LICENSE=       gnu-lgpl-v2.1
 
+USE_LANGUAGES= # none
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
 .include "../../misc/dialog/buildlink3.mk"
-.include "../../lang/python/distutils.mk"
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 346e5cd5a7ca -r 05e246f5658c devel/py-dialog/PLIST
--- a/devel/py-dialog/PLIST     Tue Feb 04 17:04:40 2020 +0000
+++ b/devel/py-dialog/PLIST     Tue Feb 04 17:17:06 2020 +0000
@@ -1,5 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2015/01/11 20:14:58 bsiegert Exp $
+@comment $NetBSD: PLIST,v 1.2 2020/02/04 17:17:06 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/dialog.py
 ${PYSITELIB}/dialog.pyc
 ${PYSITELIB}/dialog.pyo
-${PYSITELIB}/dialog.py
-${PYSITELIB}/${EGG_FILE}
diff -r 346e5cd5a7ca -r 05e246f5658c devel/py-dialog/distinfo
--- a/devel/py-dialog/distinfo  Tue Feb 04 17:04:40 2020 +0000
+++ b/devel/py-dialog/distinfo  Tue Feb 04 17:17:06 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2016/11/13 10:52:28 mef Exp $
+$NetBSD: distinfo,v 1.5 2020/02/04 17:17:06 adam Exp $
 
-SHA1 (pythondialog-3.4.0.tar.gz) = 239e9a6eb0792c0cc0e7362dd7391f99dc940a80
-RMD160 (pythondialog-3.4.0.tar.gz) = a215e8a548551f2fd5794554001ca2fa67f5e842
-SHA512 (pythondialog-3.4.0.tar.gz) = 040c07f693b523a59a4e79eb3aacda63b6aad4dcfdb7d54e0727087b844d95d83505154ddbe5ddabebf7bcd520be97e4964abbccf79a10a86346abe44aeb09ae
-Size (pythondialog-3.4.0.tar.gz) = 1480640 bytes
+SHA1 (pythondialog-3.5.1.tar.gz) = f7ade8eeb56931037182fdbe6f63e58262cd327c
+RMD160 (pythondialog-3.5.1.tar.gz) = c4c98fcfe636c67007416f2cb7f81a4e5ba9b9a6
+SHA512 (pythondialog-3.5.1.tar.gz) = 20171e6af9aa397365b1666601a7b0bd630f9ac70ad785f330db06cff4d99abff949caddbf377dccf874aa8150fe9508e9aa149b98d7727d8d15ca1a81b96445
+Size (pythondialog-3.5.1.tar.gz) = 1485873 bytes
diff -r 346e5cd5a7ca -r 05e246f5658c devel/py-dialog2/Makefile
--- a/devel/py-dialog2/Makefile Tue Feb 04 17:04:40 2020 +0000
+++ b/devel/py-dialog2/Makefile Tue Feb 04 17:17:06 2020 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2020/01/18 23:30:37 rillig Exp $
+# $NetBSD: Makefile,v 1.12 2020/02/04 17:17:06 adam Exp $
 
-VERSION=       3.4.0
-DISTNAME=      python2-pythondialog-${VERSION}
-PKGNAME=       ${PYPKGPREFIX}-dialog-${VERSION}
+DISTNAME=      python2-pythondialog-3.5.1
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/^python2-python//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/python2-pythondialog/}
 
@@ -11,8 +10,10 @@
 COMMENT=       Python wrapper for the dialog utility
 LICENSE=       gnu-lgpl-v2.1
 
+USE_LANGUAGES= # none
+
 PYTHON_VERSIONS_ACCEPTED=      27
 
 .include "../../misc/dialog/buildlink3.mk"
-.include "../../lang/python/distutils.mk"
+.include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 346e5cd5a7ca -r 05e246f5658c devel/py-dialog2/PLIST
--- a/devel/py-dialog2/PLIST    Tue Feb 04 17:04:40 2020 +0000
+++ b/devel/py-dialog2/PLIST    Tue Feb 04 17:17:06 2020 +0000
@@ -1,5 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2015/01/13 12:17:20 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2020/02/04 17:17:06 adam Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/dialog.py
 ${PYSITELIB}/dialog.pyc
 ${PYSITELIB}/dialog.pyo
-${PYSITELIB}/${EGG_FILE}
diff -r 346e5cd5a7ca -r 05e246f5658c devel/py-dialog2/distinfo
--- a/devel/py-dialog2/distinfo Tue Feb 04 17:04:40 2020 +0000
+++ b/devel/py-dialog2/distinfo Tue Feb 04 17:17:06 2020 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.4 2016/11/11 10:11:07 fhajny Exp $
+$NetBSD: distinfo,v 1.5 2020/02/04 17:17:06 adam Exp $
 
-SHA1 (python2-pythondialog-3.4.0.tar.gz) = e5eb5671adb4ae9d7d32a42b6bb277568b905d63
-RMD160 (python2-pythondialog-3.4.0.tar.gz) = ca419d468d8d86f89c660573dddf7bd2e71fa844
-SHA512 (python2-pythondialog-3.4.0.tar.gz) = f4ec3e3eeab9ee00146b4604a8f72c765fcc164a24def0f1a9cbf083123e55dbe371ce6d4790ad4c0b5ee6905a1877f9b8e90ca3443a780fa0965c9bcf4bf629
-Size (python2-pythondialog-3.4.0.tar.gz) = 1487867 bytes
+SHA1 (python2-pythondialog-3.5.1.tar.gz) = bd2006638c579e015ae5ff23ec44463691187ae3
+RMD160 (python2-pythondialog-3.5.1.tar.gz) = ad6858359b27a6b65a14a40416dd909377210a7c
+SHA512 (python2-pythondialog-3.5.1.tar.gz) = 42d7ac58e44ee4c0a10f36f21f025f6d155b23d3a278b9fce46e49811f405af2dbf21a869230e80907713296a6d31109a97945d8992a3e870ba4e0a6eb514865
+Size (python2-pythondialog-3.5.1.tar.gz) = 1918879 bytes



Home | Main Index | Thread Index | Old Index