Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Aug 2022 10:30:49 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: e79182aa84d1 - main - textproc/py-untangle: Add py-untangle 1.2.1
Message-ID:  <202208271030.27RAUnqC047270@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e79182aa84d1daa9b27c4acb6790add737577654

commit e79182aa84d1daa9b27c4acb6790add737577654
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-08-27 10:10:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-08-27 10:10:36 +0000

    textproc/py-untangle: Add py-untangle 1.2.1
    
    untangle is a tiny Python library which converts an XML document to a Python
    object.
    
    Features:
    - Siblings with similar names are grouped into a list.
    - Children can be accessed with parent.child, attributes with
      element['attribute'].
    - You can call the parse() method with a filename, an URL or an XML string.
    - Substitutes -, . and : with _ <foobar><foo-bar/></foobar> can be accessed with
      foobar.foo_bar, <foo.bar.baz/> can be accessed with foo_bar_baz and
      <foo:bar><foo:baz/></foo:bar> can be accessed with foo_bar.foo_baz
    
    WWW: https://github.com/stchris/untangle
---
 textproc/Makefile              |  1 +
 textproc/py-untangle/Makefile  | 20 ++++++++++++++++++++
 textproc/py-untangle/distinfo  |  3 +++
 textproc/py-untangle/pkg-descr | 13 +++++++++++++
 4 files changed, 37 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 84007e05cff9..25be53921f8d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1555,6 +1555,7 @@
     SUBDIR += py-typogrify
     SUBDIR += py-ucl
     SUBDIR += py-ufal.udpipe
+    SUBDIR += py-untangle
     SUBDIR += py-wcmatch
     SUBDIR += py-whatthepatch
     SUBDIR += py-whoosh
diff --git a/textproc/py-untangle/Makefile b/textproc/py-untangle/Makefile
new file mode 100644
index 000000000000..be7ac2448f1b
--- /dev/null
+++ b/textproc/py-untangle/Makefile
@@ -0,0 +1,20 @@
+PORTNAME=	untangle
+PORTVERSION=	1.2.1
+CATEGORIES=	textproc python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Convert XML to Python objects
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}defusedxml>=0.7.1<0.8.0:devel/py-defusedxml@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-untangle/distinfo b/textproc/py-untangle/distinfo
new file mode 100644
index 000000000000..f016024af5a9
--- /dev/null
+++ b/textproc/py-untangle/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660576696
+SHA256 (untangle-1.2.1.tar.gz) = ae76522472722b31b303d5100c3c6f8b7dd4952b7b6c9d31e6d7b4a56f1a6d30
+SIZE (untangle-1.2.1.tar.gz) = 4809
diff --git a/textproc/py-untangle/pkg-descr b/textproc/py-untangle/pkg-descr
new file mode 100644
index 000000000000..11c451b507b3
--- /dev/null
+++ b/textproc/py-untangle/pkg-descr
@@ -0,0 +1,13 @@
+untangle is a tiny Python library which converts an XML document to a Python
+object.
+
+Features:
+- Siblings with similar names are grouped into a list.
+- Children can be accessed with parent.child, attributes with
+  element['attribute'].
+- You can call the parse() method with a filename, an URL or an XML string.
+- Substitutes -, . and : with _ <foobar><foo-bar/></foobar> can be accessed with
+  foobar.foo_bar, <foo.bar.baz/> can be accessed with foo_bar_baz and
+  <foo:bar><foo:baz/></foo:bar> can be accessed with foo_bar.foo_baz
+
+WWW: https://github.com/stchris/untangle



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202208271030.27RAUnqC047270>