pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/py-kaitaistruct py-kaitaistruct: updated to 0.10



details:   https://anonhg.NetBSD.org/pkgsrc/rev/14fe95579c98
branches:  trunk
changeset: 388993:14fe95579c98
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon Nov 28 18:42:09 2022 +0000

description:
py-kaitaistruct: updated to 0.10

0.10

read_bytes(): use previous implementation again for small reads
      For small reads, the new code that tries to avoid unnecessary reads is
noticeably slower than the previous code that reads unconditionally. In
the worst case (1-byte reads), the new code is 13 times as slow as the
previous implementation. The potential memory/IO savings only become
worth it for larger reads, where the performance difference disappears.

diffstat:

 devel/py-kaitaistruct/Makefile |  10 +++++++---
 devel/py-kaitaistruct/PLIST    |   3 ++-
 devel/py-kaitaistruct/distinfo |   8 ++++----
 3 files changed, 13 insertions(+), 8 deletions(-)

diffs (51 lines):

diff -r 83ac8b776b06 -r 14fe95579c98 devel/py-kaitaistruct/Makefile
--- a/devel/py-kaitaistruct/Makefile    Mon Nov 28 18:26:03 2022 +0000
+++ b/devel/py-kaitaistruct/Makefile    Mon Nov 28 18:42:09 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.5 2022/01/04 20:53:14 wiz Exp $
+# $NetBSD: Makefile,v 1.6 2022/11/28 18:42:09 adam Exp $
 
-DISTNAME=      kaitaistruct-0.9
+DISTNAME=      kaitaistruct-0.10
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   1
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=k/kaitaistruct/}
 
@@ -13,5 +12,10 @@
 
 USE_LANGUAGES= # none
 
+.include "../../lang/python/pyversion.mk"
+.if ${_PYTHON_VERSION} == 27
+DEPENDS+=      ${PYPKGPREFIX}-enum34-[0-9]*:../../devel/py-enum34
+.endif
+
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 83ac8b776b06 -r 14fe95579c98 devel/py-kaitaistruct/PLIST
--- a/devel/py-kaitaistruct/PLIST       Mon Nov 28 18:26:03 2022 +0000
+++ b/devel/py-kaitaistruct/PLIST       Mon Nov 28 18:42:09 2022 +0000
@@ -1,7 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2021/04/06 20:01:36 adam Exp $
+@comment $NetBSD: PLIST,v 1.3 2022/11/28 18:42:09 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
 ${PYSITELIB}/${EGG_INFODIR}/top_level.txt
 ${PYSITELIB}/${EGG_INFODIR}/zip-safe
 ${PYSITELIB}/kaitaistruct.py
diff -r 83ac8b776b06 -r 14fe95579c98 devel/py-kaitaistruct/distinfo
--- a/devel/py-kaitaistruct/distinfo    Mon Nov 28 18:26:03 2022 +0000
+++ b/devel/py-kaitaistruct/distinfo    Mon Nov 28 18:42:09 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 10:18:37 nia Exp $
+$NetBSD: distinfo,v 1.6 2022/11/28 18:42:09 adam Exp $
 
-BLAKE2s (kaitaistruct-0.9.tar.gz) = 67fa5a71e82c8da0b168a5b7f17163fd25ffe0bca9aa03829d66942e6368f445
-SHA512 (kaitaistruct-0.9.tar.gz) = 4654f18d72f31745f27eed035899231e69f9539a8e8322055b0dd99ad701dbd4d484357d0bc42f5a1953abc6947a90fc5ec9da80aeb862077c175c1295549682
-Size (kaitaistruct-0.9.tar.gz) = 5497 bytes
+BLAKE2s (kaitaistruct-0.10.tar.gz) = 7e8f87dc1a8ef32d01764b95c22d7b56904d2c2a07e84ca254c7b075d142592a
+SHA512 (kaitaistruct-0.10.tar.gz) = b4db8b67fe5dd310121ecfad6db79d424e2bd7308b5ae2cc1cdbcd73538533b5bbe4047b71e2ff65d8109b213ad0a5b88a96cd593b08f910ea6ae9bf3c4cbfac
+Size (kaitaistruct-0.10.tar.gz) = 7061 bytes



Home | Main Index | Thread Index | Old Index