pkgsrc/converters/py-chardet/Makefile
wiz b668da7f8f py-chardet: update to 4.0.0.
This will be the last release of chardet to support Python 2.7.
chardet 5.0 will only support 3.6+

Major Changes

This release is multiple years in the making, and provides some
quality of life improvements to chardet. The primary user-facing
changes are:

    Single-byte charset probers now use nested dictionaries under
    the hood, so they are usually a little faster than before. (See
    #121 for details)

    The CharsetGroupProber class now properly short-circuits when
    one of the probers in the group is considered a definite match.
    This lead to a substantial speedup.

    There is now a chardet.detect_all function that returns a list
    of possible encodings for the input with associated confidences.

    We have dropped support for Python 2.6, 3.4, and 3.5 as they
    are all past end-of-life.

The changes in this release have also laid the groundwork for
retraining the models to make them more accurate, and to support
some more encodings/languages (see #99 for progress). This is our
main focus for chardet 5.0 (beyond dropping Python 2 support).
2021-01-04 11:53:14 +00:00

24 lines
764 B
Makefile

# $NetBSD: Makefile,v 1.27 2021/01/04 11:53:14 wiz Exp $
DISTNAME= chardet-4.0.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= converters python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/chardet/}
MAINTAINER= bartosz.kuzma@gmail.com
HOMEPAGE= https://pypi.python.org/pypi/chardet
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}-py-[0-9]*:../../devel/py-py
PYTHON_VERSIONED_DEPENDENCIES= hypothesis:test
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} chardetect chardetect-${PYVERSSUFFIX} || ${TRUE}
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"