py-ftfy: updated to 6.1.3
Version 6.1.3 (November 21, 2023) - Updated wcwidth. - Switched to the Apache 2.0 license. - Dropped support for Python 3.7. Version 6.1.2 (February 17, 2022) - Added type information for `guess_bytes`. Version 6.1.1 (February 9, 2022) - Updated the heuristic to fix the letter ß in UTF-8/MacRoman mojibake, which had regressed since version 5.6. - Packaging fixes to pyproject.toml. Version 6.1 (February 9, 2022) - Updated the heuristic to fix the letter Ñ with more confidence. - Fixed type annotations and added py.typed. - ftfy is packaged using Poetry now, and wheels are created and uploaded to PyPI. Version 6.0.3 (May 14, 2021) - Allow the keyword argument `fix_entities` as a deprecated alias for `unescape_html`, raising a warning. - `ftfy.formatting` functions now disregard ANSI terminal escapes when calculating text width. Version 6.0.2 (May 4, 2021) This version is purely a cosmetic change, updating the maintainer's e-mail address and the project's canonical location on GitHub. Version 6.0.1 (April 12, 2021) - The `remove_terminal_escapes` step was accidentally not being used. This version restores it. - Specified in setup.py that ftfy 6 requires Python 3.6 or later. - Use a lighter link color when the docs are viewed in dark mode. Version 6.0 (April 2, 2021) - New function: `ftfy.fix_and_explain()` can describe all the transformations that happen when fixing a string. This is similar to what `ftfy.fixes.fix_encoding_and_explain()` did in previous versions, but it can fix more than the encoding. - `fix_and_explain()` and `fix_encoding_and_explain()` are now in the top-level ftfy module. - Changed the heuristic entirely. ftfy no longer needs to categorize every Unicode character, but only characters that are expected to appear in mojibake. - Because of the new heuristic, ftfy will no longer have to release a new version for every new version of Unicode. It should also run faster and use less RAM when imported. - The heuristic `ftfy.badness.is_bad(text)` can be used to determine whether there appears to be mojibake in a string. Some users were already using the old function `sequence_weirdness()` for that, but this one is actually designed for that purpose. - Instead of a pile of named keyword arguments, ftfy functions now take in a TextFixerConfig object. The keyword arguments still work, and become settings that override the defaults in TextFixerConfig. - Added support for UTF-8 mixups with Windows-1253 and Windows-1254. - Overhauled the documentation: https://ftfy.readthedocs.org
This commit is contained in:
parent
0156489743
commit
2e448e5536
|
@ -1 +1 @@
|
|||
bin/ftfy @PREFIX@/bin/ftfy@PYVERSSUFFIX@
|
||||
bin/ftfy @PREFIX@/bin/ftfy-@PYVERSSUFFIX@
|
||||
|
|
|
@ -1,26 +1,25 @@
|
|||
# $NetBSD: Makefile,v 1.10 2022/01/05 15:41:24 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.11 2024/01/06 19:51:02 adam Exp $
|
||||
|
||||
DISTNAME= ftfy-4.2.0
|
||||
DISTNAME= ftfy-6.1.3
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
||||
PKGREVISION= 2
|
||||
CATEGORIES= python textproc
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= ${MASTER_SITE_PYPI:=f/ftfy/}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://github.com/LuminosoInsight/python-ftfy
|
||||
COMMENT= Fixes some problems with Unicode text after the fact
|
||||
LICENSE= mit
|
||||
LICENSE= apache-2.0
|
||||
|
||||
DEPENDS+= ${PYPKGPREFIX}-html5lib-[0-9]*:../../textproc/py-html5lib
|
||||
DEPENDS+= ${PYPKGPREFIX}-wcwidth-[0-9]*:../../devel/py-wcwidth
|
||||
TOOL_DEPENDS+= ${PYPKGPREFIX}-poetry-core>=1.0.0:../../devel/py-poetry-core
|
||||
DEPENDS+= ${PYPKGPREFIX}-wcwidth>=0.2.12:../../devel/py-wcwidth
|
||||
|
||||
USE_LANGUAGES= # none
|
||||
|
||||
USE_PKG_RESOURCES= yes
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
||||
|
||||
post-install:
|
||||
${MV} ${DESTDIR}${PREFIX}/bin/ftfy \
|
||||
${DESTDIR}${PREFIX}/bin/ftfy${PYVERSSUFFIX} || ${TRUE}
|
||||
cd ${DESTDIR}${PREFIX}/bin && \
|
||||
${MV} ftfy ftfy-${PYVERSSUFFIX} || ${TRUE}
|
||||
|
||||
.include "../../lang/python/egg.mk"
|
||||
.include "../../lang/python/wheel.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
@comment $NetBSD: PLIST,v 1.2 2017/01/12 00:45:43 rodent Exp $
|
||||
bin/ftfy${PYVERSSUFFIX}
|
||||
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
||||
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
|
||||
@comment $NetBSD: PLIST,v 1.3 2024/01/06 19:51:02 adam Exp $
|
||||
bin/ftfy-${PYVERSSUFFIX}
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
|
||||
${PYSITELIB}/CHANGELOG.md
|
||||
${PYSITELIB}/README.md
|
||||
${PYSITELIB}/ftfy/__init__.py
|
||||
${PYSITELIB}/ftfy/__init__.pyc
|
||||
${PYSITELIB}/ftfy/__init__.pyo
|
||||
|
@ -20,22 +22,16 @@ ${PYSITELIB}/ftfy/bad_codecs/utf8_variants.pyo
|
|||
${PYSITELIB}/ftfy/badness.py
|
||||
${PYSITELIB}/ftfy/badness.pyc
|
||||
${PYSITELIB}/ftfy/badness.pyo
|
||||
${PYSITELIB}/ftfy/build_data.py
|
||||
${PYSITELIB}/ftfy/build_data.pyc
|
||||
${PYSITELIB}/ftfy/build_data.pyo
|
||||
${PYSITELIB}/ftfy/char_classes.dat
|
||||
${PYSITELIB}/ftfy/chardata.py
|
||||
${PYSITELIB}/ftfy/chardata.pyc
|
||||
${PYSITELIB}/ftfy/chardata.pyo
|
||||
${PYSITELIB}/ftfy/cli.py
|
||||
${PYSITELIB}/ftfy/cli.pyc
|
||||
${PYSITELIB}/ftfy/cli.pyo
|
||||
${PYSITELIB}/ftfy/compatibility.py
|
||||
${PYSITELIB}/ftfy/compatibility.pyc
|
||||
${PYSITELIB}/ftfy/compatibility.pyo
|
||||
${PYSITELIB}/ftfy/fixes.py
|
||||
${PYSITELIB}/ftfy/fixes.pyc
|
||||
${PYSITELIB}/ftfy/fixes.pyo
|
||||
${PYSITELIB}/ftfy/formatting.py
|
||||
${PYSITELIB}/ftfy/formatting.pyc
|
||||
${PYSITELIB}/ftfy/formatting.pyo
|
||||
${PYSITELIB}/ftfy/py.typed
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.5 2021/10/26 11:23:03 nia Exp $
|
||||
$NetBSD: distinfo,v 1.6 2024/01/06 19:51:02 adam Exp $
|
||||
|
||||
BLAKE2s (ftfy-4.2.0.tar.gz) = 76a8f713138e6088c5dc8bb56c081b20e9335e295b257593892dbf87f8da10b0
|
||||
SHA512 (ftfy-4.2.0.tar.gz) = db46f865ec69ca28d2795b9f1dafc45c8968a4eda8d5aafc468f6fd027f37f81c417494ce289a636b80b9f055a7ea61dbf908c504717a56316bdab7a82b1d8a4
|
||||
Size (ftfy-4.2.0.tar.gz) = 35139 bytes
|
||||
BLAKE2s (ftfy-6.1.3.tar.gz) = 12da768b37ae7f0d5782a01e0a384a6e0b8984d00fbdd22e3bfc358d413c0eef
|
||||
SHA512 (ftfy-6.1.3.tar.gz) = 2c2a8ec537895f70183b39db80ba163053745afe9ffe9d9d51334debc29808c0fc48193edeca397d4e3a9566d885ac222b08f3b0472ff35b3450c882647cde2f
|
||||
Size (ftfy-6.1.3.tar.gz) = 62661 bytes
|
||||
|
|
Loading…
Reference in New Issue