Skip to content

Commit

Permalink
py-chardet: update to 5.0.0.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
0-wiz-0 committed Jul 3, 2022
1 parent e19e701 commit 9834071
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 14 deletions.
16 changes: 10 additions & 6 deletions converters/py-chardet/Makefile
Original file line number Diff line number Diff line change
@@ -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/}

Expand All @@ -12,16 +11,21 @@ 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

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"
14 changes: 10 additions & 4 deletions converters/py-chardet/PLIST
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions converters/py-chardet/distinfo
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9834071

Please sign in to comment.