pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/converters/py-chardet py-chardet: update to 5.0.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d7ed0fa7a016
branches:  trunk
changeset: 381273:d7ed0fa7a016
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Sun Jul 03 12:45:17 2022 +0000

description:
py-chardet: update to 5.0.0.

This release is the first release of chardet that no longer
supports Python < 3.6.

In addition to that change, it features the following user-facing
changes:

    Added a prober for Johab Korean (#207, @grizlupo)
    Added a prober for UTF-16/32 BE/LE (#109, #206, @jpz)
    Added test data for Croatian, Czech, Hungarian, Polish, Slovak,
    Slovene, Greek, and Turkish, which should help prevent future
    errors with those languages
    Improved XML tag filtering, which should improve accuracy for
    XML files (#208)
    Tweaked SingleByteCharSetProber confidence to match latest
    uchardet (#209)
    Made detect_all return child prober confidences (#210)
    Updated examples in docs (#223, @domdfcoding)
    Documentation fixes (#212, #224, #225, #226, #220, #221, #244
    from too many to mention)
    Minor performance improvements (#252, @deedy5)
    Add support for Python 3.10 when testing (#232, @jdufresne)
    Lots of little development cycle improvements, mostly thanks
    to @jdufresne

diffstat:

 converters/py-chardet/Makefile |  16 ++++++++++------
 converters/py-chardet/PLIST    |  14 ++++++++++----
 converters/py-chardet/distinfo |   8 ++++----
 3 files changed, 24 insertions(+), 14 deletions(-)

diffs (94 lines):

diff -r dba33a5057ef -r d7ed0fa7a016 converters/py-chardet/Makefile
--- a/converters/py-chardet/Makefile    Sun Jul 03 12:44:18 2022 +0000
+++ b/converters/py-chardet/Makefile    Sun Jul 03 12:45:17 2022 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.29 2022/01/05 15:40:59 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2022/07/03 12:45:17 wiz Exp $
 
-DISTNAME=      chardet-4.0.0
+DISTNAME=      chardet-5.0.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION=   2
 CATEGORIES=    converters python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=c/chardet/}
 
@@ -12,9 +11,10 @@
 LICENSE=       gnu-lgpl-v2.1
 
 TEST_DEPENDS+= ${PYPKGPREFIX}-test-runner-[0-9]*:../../devel/py-test-runner
+TEST_DEPENDS+= ${PYPKGPREFIX}-exceptiongroup-[0-9]*:../../devel/py-exceptiongroup
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
 TEST_DEPENDS+= ${PYPKGPREFIX}-py-[0-9]*:../../devel/py-py
-
-PYTHON_VERSIONED_DEPENDENCIES= hypothesis:test
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
 USE_PKG_RESOURCES=     yes
 
@@ -22,6 +22,10 @@
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} chardetect chardetect-${PYVERSSUFFIX} || ${TRUE}
 
+# as of 5.0.0
+# 1 failed, 375 passed, 6 xfailed, 1 xpassed
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
 .include "../../lang/python/egg.mk"
-.include "../../lang/python/versioned_dependencies.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r dba33a5057ef -r d7ed0fa7a016 converters/py-chardet/PLIST
--- a/converters/py-chardet/PLIST       Sun Jul 03 12:44:18 2022 +0000
+++ b/converters/py-chardet/PLIST       Sun Jul 03 12:45:17 2022 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.10 2021/01/04 11:53:14 wiz Exp $
+@comment $NetBSD: PLIST,v 1.11 2022/07/03 12:45:17 wiz Exp $
 bin/chardetect-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -32,9 +32,6 @@
 ${PYSITELIB}/chardet/codingstatemachine.py
 ${PYSITELIB}/chardet/codingstatemachine.pyc
 ${PYSITELIB}/chardet/codingstatemachine.pyo
-${PYSITELIB}/chardet/compat.py
-${PYSITELIB}/chardet/compat.pyc
-${PYSITELIB}/chardet/compat.pyo
 ${PYSITELIB}/chardet/cp949prober.py
 ${PYSITELIB}/chardet/cp949prober.pyc
 ${PYSITELIB}/chardet/cp949prober.pyo
@@ -74,6 +71,12 @@
 ${PYSITELIB}/chardet/jisfreq.py
 ${PYSITELIB}/chardet/jisfreq.pyc
 ${PYSITELIB}/chardet/jisfreq.pyo
+${PYSITELIB}/chardet/johabfreq.py
+${PYSITELIB}/chardet/johabfreq.pyc
+${PYSITELIB}/chardet/johabfreq.pyo
+${PYSITELIB}/chardet/johabprober.py
+${PYSITELIB}/chardet/johabprober.pyc
+${PYSITELIB}/chardet/johabprober.pyo
 ${PYSITELIB}/chardet/jpcntx.py
 ${PYSITELIB}/chardet/jpcntx.pyc
 ${PYSITELIB}/chardet/jpcntx.pyo
@@ -128,6 +131,9 @@
 ${PYSITELIB}/chardet/universaldetector.py
 ${PYSITELIB}/chardet/universaldetector.pyc
 ${PYSITELIB}/chardet/universaldetector.pyo
+${PYSITELIB}/chardet/utf1632prober.py
+${PYSITELIB}/chardet/utf1632prober.pyc
+${PYSITELIB}/chardet/utf1632prober.pyo
 ${PYSITELIB}/chardet/utf8prober.py
 ${PYSITELIB}/chardet/utf8prober.pyc
 ${PYSITELIB}/chardet/utf8prober.pyo
diff -r dba33a5057ef -r d7ed0fa7a016 converters/py-chardet/distinfo
--- a/converters/py-chardet/distinfo    Sun Jul 03 12:44:18 2022 +0000
+++ b/converters/py-chardet/distinfo    Sun Jul 03 12:45:17 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.12 2021/10/26 10:06:49 nia Exp $
+$NetBSD: distinfo,v 1.13 2022/07/03 12:45:17 wiz Exp $
 
-BLAKE2s (chardet-4.0.0.tar.gz) = 0d2dbdc34b5f86de8a94091931d4cb576e2d4ed7c6b1ac46276b7502ac2f5666
-SHA512 (chardet-4.0.0.tar.gz) = ebd7f420e1094445270db993f6373ffe7370419e002b0bb13299dc6c9b0f7c4e77b0f44f871fba6371e6869e7c86728514367db377e3137487a3acf50cb81e96
-Size (chardet-4.0.0.tar.gz) = 1907771 bytes
+BLAKE2s (chardet-5.0.0.tar.gz) = 4132ba79b99831e53fbf283bd1514ad4a97a282c44488767bbb5a19bb83d81ef
+SHA512 (chardet-5.0.0.tar.gz) = 3853248584d53d977abe0e6ab856e1526fd7360d9b94b4f08d03895da80ba9efac8882dbd3f919f0d52b0699c0d7fd68edb223c37512685976c6f2b212fbe0ff
+Size (chardet-5.0.0.tar.gz) = 2021116 bytes



Home | Main Index | Thread Index | Old Index