diff options
author | wiz <wiz@pkgsrc.org> | 2022-07-03 12:45:17 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2022-07-03 12:45:17 +0000 |
commit | 9834071136e768975c2e32f2a22a73def17f7cad (patch) | |
tree | 94533421a13d798759acaf4a13b540f0c8abaf09 /converters/py-chardet | |
parent | e19e7011654b22b681aca07665beaf3ac4561367 (diff) | |
download | pkgsrc-9834071136e768975c2e32f2a22a73def17f7cad.tar.gz |
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 (limited to 'converters/py-chardet')
-rw-r--r-- | converters/py-chardet/Makefile | 16 | ||||
-rw-r--r-- | converters/py-chardet/PLIST | 14 | ||||
-rw-r--r-- | converters/py-chardet/distinfo | 8 |
3 files changed, 24 insertions, 14 deletions
diff --git a/converters/py-chardet/Makefile b/converters/py-chardet/Makefile index 4aaef8de6cb..3f8f95419bf 100644 --- a/converters/py-chardet/Makefile +++ b/converters/py-chardet/Makefile @@ -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 @@ COMMENT= Character encoding auto-detection in Python 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 @@ post-install: 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 --git a/converters/py-chardet/PLIST b/converters/py-chardet/PLIST index d590f2d0294..bd145f79599 100644 --- a/converters/py-chardet/PLIST +++ b/converters/py-chardet/PLIST @@ -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/cli/chardetect.pyo ${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/hebrewprober.pyo ${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/sjisprober.pyo ${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 --git a/converters/py-chardet/distinfo b/converters/py-chardet/distinfo index 2f24fdce2c3..94ebfb4ec91 100644 --- a/converters/py-chardet/distinfo +++ b/converters/py-chardet/distinfo @@ -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 |