diff --git a/textproc/py-pyphen/Makefile b/textproc/py-pyphen/Makefile index 90a403d66ab..b05e3e35904 100644 --- a/textproc/py-pyphen/Makefile +++ b/textproc/py-pyphen/Makefile @@ -1,9 +1,8 @@ -COMMENT = pure-python hyphenation library +COMMENT = pure-Python hyphenation library -MODPY_EGG_VERSION = 0.13.0 +MODPY_EGG_VERSION = 0.13.2 DISTNAME = pyphen-${MODPY_EGG_VERSION} PKGNAME = py-pyphen-${MODPY_EGG_VERSION} -REVISION = 0 CATEGORIES = textproc @@ -17,7 +16,7 @@ MODPY_PI = Yes FLAVORS = python3 FLAVOR = python3 -TEST_DEPENDS += devel/py-test-flake8${MODPY_FLAVOR} \ +TEST_DEPENDS += devel/py-test-cov${MODPY_FLAVOR} \ devel/py-test-isort${MODPY_FLAVOR} \ devel/py-test-xdist${MODPY_FLAVOR} diff --git a/textproc/py-pyphen/distinfo b/textproc/py-pyphen/distinfo index fbc9268bff4..99cb4312980 100644 --- a/textproc/py-pyphen/distinfo +++ b/textproc/py-pyphen/distinfo @@ -1,2 +1,2 @@ -SHA256 (pyphen-0.13.0.tar.gz) = Boc86//WWo/KfCDA49wDJlXH7o3g9VIgXK07V0JlwpM= -SIZE (pyphen-0.13.0.tar.gz) = 1967026 +SHA256 (pyphen-0.13.2.tar.gz) = hH9XoEOlhAjyRnCuAYT/bt+1/VcxdDIIIowCjdxRRDg= +SIZE (pyphen-0.13.2.tar.gz) = 1986911 diff --git a/textproc/py-pyphen/patches/patch-pyproject_toml b/textproc/py-pyphen/patches/patch-pyproject_toml new file mode 100644 index 00000000000..4e109e88e4d --- /dev/null +++ b/textproc/py-pyphen/patches/patch-pyproject_toml @@ -0,0 +1,23 @@ +disable pytest-flake8 use, it isn't keeping up with flake8 api +see https://github.com/tholo/pytest-flake8/issues/91 etc. + +Index: pyproject.toml +--- pyproject.toml.orig ++++ pyproject.toml +@@ -40,14 +40,13 @@ Donation = 'https://opencollective.com/courtbouillon' + + [project.optional-dependencies] + doc = ['sphinx', 'sphinx_rtd_theme'] +-# TODO: remove the flake8 dependency when https://github.com/tholo/pytest-flake8/issues/87 is fixed +-test = ['pytest', 'pytest-xdist', 'pytest-flake8', 'pytest-isort', 'pytest-cov', 'coverage[toml]', 'flake8 <5'] ++test = ['pytest', 'pytest-xdist', 'pytest-flake8', 'pytest-isort', 'pytest-cov', 'coverage[toml]'] + + [tool.flit.sdist] + exclude = ['.*'] + + [tool.pytest.ini_options] +-addopts = '--isort --flake8 --numprocesses=auto' ++addopts = '--isort --numprocesses=auto' + + [tool.coverage.run] + branch = true diff --git a/textproc/py-pyphen/pkg/PLIST b/textproc/py-pyphen/pkg/PLIST index 46b8b08e920..530915b3aac 100644 --- a/textproc/py-pyphen/pkg/PLIST +++ b/textproc/py-pyphen/pkg/PLIST @@ -52,6 +52,7 @@ lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_sr.dic lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_sr_Latn.dic lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_sv.dic lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_te_IN.dic +lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_th_TH.dic lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_uk_UA.dic lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/hyph_zu_ZA.dic lib/python${MODPY_VERSION}/site-packages/pyphen/dictionaries/update.sh