py-enchant: updated to 3.2.2
3.2.2 (2021-10-05) * Add support for Python 3.10 3.2.1 (2021-06-24) * Fix ``Dict.__del__`` sometimes raising `TypeError` upon exit. Patch by @rr- * Default development branch is now called ``main`` * Bump ``black`` to 21.6b0 3.2.0 (2020-12-08) * Add support for Python 3.9 * Add trove classifiers for all supported Python versions * Run ``pyupgrade`` across the code base * Update documentation about MacPorts 3.1.1 (2020-05-31) * On Windows, set PATH instead of calling ``SetDllDirectory`` before loading the Enchant C library. This allows PyEnchant to co-exist with other libraries in the same program. 3.1.0 (2020-05-20) * Add ``enchant.get_user_config_dir()`` * Fix: ``enchant.get_enchant_version()`` now returns a ``str``, not some ``bytes`` 3.0.1 (2020-03-01) * Add missing LICENSE.txt in source distribution 3.0.0 (2020-03-01) Highlights * Uncouple PyEnchant version from the Enchant version. This release should be compatible with Enchant 1.6 to 2.2 * Fix using PyEnchant with Enchant >= 2.0 * Add support for pypy3, Python 3.7 and Python 3.8 * New website, hosted on https://pyenchant.github.io/pyenchant/ * Add `enchant.set_prefix_dir()` Breaking changes * Drop support for Python2 * **macOS**: The C enchant library is no longer embedded inside the wheel - you should install the C enchant library with ``brew`` or ``ports``. Clean ups * Port test suite to ``pytest``. * Add ``tbump`` configuration to simplify the release process * Format code with ``black``. * Remove compatibility layers with Python2 from ``enchant.utils`` * Use ``flake8`` to catch some errors during CI * Fix some PEP8 naming violations * Switch to GitHub Actions for CI
This commit is contained in:
parent
60bc3defc1
commit
4822ff475a
|
@ -1,33 +1,28 @@
|
|||
# $NetBSD: Makefile,v 1.18 2022/01/04 20:54:54 wiz Exp $
|
||||
# $NetBSD: Makefile,v 1.19 2024/01/22 13:28:38 adam Exp $
|
||||
|
||||
DISTNAME= pyenchant-2.0.0
|
||||
DISTNAME= pyenchant-3.2.2
|
||||
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/^py//}
|
||||
PKGREVISION= 1
|
||||
CATEGORIES= textproc python
|
||||
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pyenchant/}
|
||||
|
||||
MAINTAINER= pkgsrc-users@NetBSD.org
|
||||
HOMEPAGE= https://pythonhosted.org/pyenchant/
|
||||
HOMEPAGE= https://pyenchant.github.io/pyenchant/
|
||||
COMMENT= Spellchecking library for Python
|
||||
LICENSE= gnu-lgpl-v2.1
|
||||
|
||||
.include "../../lang/python/pyversion.mk"
|
||||
|
||||
TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
|
||||
TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
|
||||
DEPENDS+= enchant2-[0-9]*:../../textproc/enchant2
|
||||
|
||||
USE_LANGUAGES= # empty
|
||||
USE_LANGUAGES= # none
|
||||
|
||||
PYTHON_VERSIONS_INCOMPATIBLE= 27
|
||||
|
||||
.include "../../mk/bsd.prefs.mk"
|
||||
|
||||
DLEXT.dylib= dylib
|
||||
DLEXT= ${DLEXT.${SHLIB_TYPE}:Uso}
|
||||
PYENCHANT_LIBRARY_PATH= ${PREFIX}/lib/libenchant-2.${DLEXT}
|
||||
SOEXT.dylib= dylib
|
||||
SOEXT= ${SOEXT.${SHLIB_TYPE}:Uso}
|
||||
MAKE_ENV+= PYENCHANT_LIBRARY_PATH=${PREFIX}/lib/libenchant-2.${SOEXT}
|
||||
|
||||
# fix the path of libenchant with patch-ab.
|
||||
SUBST_CLASSES+= dlpath
|
||||
SUBST_STAGE.dlpath= pre-configure
|
||||
SUBST_FILES.dlpath= enchant/_enchant.py
|
||||
SUBST_VARS.dlpath= PYENCHANT_LIBRARY_PATH
|
||||
|
||||
.include "../../lang/python/egg.mk"
|
||||
.include "../../lang/python/wheel.mk"
|
||||
.include "../../mk/bsd.pkg.mk"
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
@comment $NetBSD: PLIST,v 1.4 2014/07/22 10:22:39 wiz Exp $
|
||||
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
|
||||
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/eager_resources.txt
|
||||
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
|
||||
@comment $NetBSD: PLIST,v 1.5 2024/01/22 13:28:38 adam Exp $
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/LICENSE.txt
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/METADATA
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/RECORD
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
|
||||
${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
|
||||
${PYSITELIB}/enchant/__init__.py
|
||||
${PYSITELIB}/enchant/__init__.pyc
|
||||
${PYSITELIB}/enchant/__init__.pyo
|
||||
|
@ -19,9 +19,6 @@ ${PYSITELIB}/enchant/checker/GtkSpellCheckerDialog.pyo
|
|||
${PYSITELIB}/enchant/checker/__init__.py
|
||||
${PYSITELIB}/enchant/checker/__init__.pyc
|
||||
${PYSITELIB}/enchant/checker/__init__.pyo
|
||||
${PYSITELIB}/enchant/checker/tests.py
|
||||
${PYSITELIB}/enchant/checker/tests.pyc
|
||||
${PYSITELIB}/enchant/checker/tests.pyo
|
||||
${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.py
|
||||
${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.pyc
|
||||
${PYSITELIB}/enchant/checker/wxSpellCheckerDialog.pyo
|
||||
|
@ -31,18 +28,12 @@ ${PYSITELIB}/enchant/errors.pyo
|
|||
${PYSITELIB}/enchant/pypwl.py
|
||||
${PYSITELIB}/enchant/pypwl.pyc
|
||||
${PYSITELIB}/enchant/pypwl.pyo
|
||||
${PYSITELIB}/enchant/tests.py
|
||||
${PYSITELIB}/enchant/tests.pyc
|
||||
${PYSITELIB}/enchant/tests.pyo
|
||||
${PYSITELIB}/enchant/tokenize/__init__.py
|
||||
${PYSITELIB}/enchant/tokenize/__init__.pyc
|
||||
${PYSITELIB}/enchant/tokenize/__init__.pyo
|
||||
${PYSITELIB}/enchant/tokenize/en.py
|
||||
${PYSITELIB}/enchant/tokenize/en.pyc
|
||||
${PYSITELIB}/enchant/tokenize/en.pyo
|
||||
${PYSITELIB}/enchant/tokenize/tests.py
|
||||
${PYSITELIB}/enchant/tokenize/tests.pyc
|
||||
${PYSITELIB}/enchant/tokenize/tests.pyo
|
||||
${PYSITELIB}/enchant/utils.py
|
||||
${PYSITELIB}/enchant/utils.pyc
|
||||
${PYSITELIB}/enchant/utils.pyo
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
$NetBSD: distinfo,v 1.11 2021/10/26 11:23:03 nia Exp $
|
||||
$NetBSD: distinfo,v 1.12 2024/01/22 13:28:38 adam Exp $
|
||||
|
||||
BLAKE2s (pyenchant-2.0.0.tar.gz) = c4b1b83232fa27ffb9c6bb8334e565a2184eac8b9222f6c8d5190c7970a7eaf6
|
||||
SHA512 (pyenchant-2.0.0.tar.gz) = c985714bc8ad69b6580fa1dd546243da5f3f92e8681d846ed265b086c486ae7ed33754fba303b450be4c0cb20e975a9a10efbeb700ea5213a11ed00612a93af0
|
||||
Size (pyenchant-2.0.0.tar.gz) = 64022 bytes
|
||||
SHA1 (patch-ab) = d01891618ef6fb9e7bafa43db1d2e7f46034c5c0
|
||||
BLAKE2s (pyenchant-3.2.2.tar.gz) = 9887a5ec697e378bab78692726c6a58b1d4f76faf585eef820ecfbf1b667f9ce
|
||||
SHA512 (pyenchant-3.2.2.tar.gz) = 65dd6abf51f7dd45d9879c63d9a1d34a4682ef37da961d0eb41849c6bbb707d94d079f5581b5f695a01fd9a9b68e9456d487b4423ed8382882f22eeeb6b080f8
|
||||
Size (pyenchant-3.2.2.tar.gz) = 49580 bytes
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
$NetBSD: patch-ab,v 1.5 2019/07/20 22:56:54 wiz Exp $
|
||||
|
||||
fix path of libenchant.
|
||||
|
||||
--- enchant/_enchant.py.orig 2017-07-18 04:39:34.000000000 +0000
|
||||
+++ enchant/_enchant.py
|
||||
@@ -64,6 +64,7 @@ e = None
|
||||
def _e_path_possibilities():
|
||||
"""Generator yielding possible locations of the enchant library."""
|
||||
# Allow it to be overridden using an environment variable.
|
||||
+ yield "@PYENCHANT_LIBRARY_PATH@"
|
||||
yield os.environ.get("PYENCHANT_LIBRARY_PATH")
|
||||
# For linuxish systems, allow default soname lookup a chance to succeed.
|
||||
if sys.platform not in ("win32", "darwin"):
|
Loading…
Reference in New Issue