diff --git a/textproc/Makefile b/textproc/Makefile index c46f75d7eccf..17c40c0ff9cd 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1368,6 +1368,7 @@ SUBDIR += py-elasticsearch5 SUBDIR += py-elasticsearch6 SUBDIR += py-elementpath + SUBDIR += py-emeraldtree SUBDIR += py-empy SUBDIR += py-enchant SUBDIR += py-enrich diff --git a/textproc/py-emeraldtree/Makefile b/textproc/py-emeraldtree/Makefile new file mode 100644 index 000000000000..8967e1bb2e6e --- /dev/null +++ b/textproc/py-emeraldtree/Makefile @@ -0,0 +1,23 @@ +PORTNAME= emeraldtree +DISTVERSION= 0.11.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= bofh@FreeBSD.org +COMMENT= Light-weight toolkit for XML processing +WWW= https://github.com/moinwiki/emeraldtree + +LICENSE= MIT + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}setuptools-scm>0:devel/py-setuptools-scm@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 pytest + +NO_ARCH= yes + +.include diff --git a/textproc/py-emeraldtree/distinfo b/textproc/py-emeraldtree/distinfo new file mode 100644 index 000000000000..5d0a21c999d4 --- /dev/null +++ b/textproc/py-emeraldtree/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1726667839 +SHA256 (emeraldtree-0.11.0.tar.gz) = 10e9f826430aadb4afaa5cf830dd8298cae9b11c3023578fe8f0aca3b141a434 +SIZE (emeraldtree-0.11.0.tar.gz) = 23991 diff --git a/textproc/py-emeraldtree/pkg-descr b/textproc/py-emeraldtree/pkg-descr new file mode 100644 index 000000000000..9ed5336bf2b6 --- /dev/null +++ b/textproc/py-emeraldtree/pkg-descr @@ -0,0 +1,8 @@ +EmeraldTree is a fork of ElementTree - the main differences are: + +- It has a slightly different API for handling of text: it uses unicode objects + as children (not as "tail" attributes of the elements) +- API cleanups, removing backward compatibility +- Better unicode support +- PolyglotWriter (for writing html5 that is also well-formed xml) +- Other improvements / optimizations