Date: Sat, 18 Apr 2026 22:00:50 +0000 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: bae38c823d12 - main - devel/py-parsy: Add py-parsy 2.2 Message-ID: <69e3ff12.33c45.489138ba@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=bae38c823d12a147296743928494e39d1d9da01e commit bae38c823d12a147296743928494e39d1d9da01e Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2026-04-18 21:18:23 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2026-04-18 21:18:23 +0000 devel/py-parsy: Add py-parsy 2.2 Parsy is an easy and elegant way to parse text in Python by combining small parsers into complex, larger parsers. If it means anything to you, it's a monadic parser combinator library for LL(infinity) grammars in the spirit of Parsec, Parsnip, and Parsimmon. But don't worry, it has really good documentation and it doesn't say things like that! For a good example of the kind of clear, declarative code you can create using parsy, see the SQL SELECT statement example or JSON parser. The project: - has zero dependencies outside stdlib. - is highly mature and stable, with few-to-none backwards incompatibilities over the past 10 years. - is essentially complete, with no rewrites planned. Widely useful improvements that don't break compatibility will still be considered, however. - is implemented in a single module with less than 800LOC, which you could vendor easily if required. --- devel/Makefile | 1 + devel/py-parsy/Makefile | 23 +++++++++++++++++++++++ devel/py-parsy/distinfo | 3 +++ devel/py-parsy/pkg-descr | 17 +++++++++++++++++ 4 files changed, 44 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 5f67c83683ff..34c484dbc553 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -5517,6 +5517,7 @@ SUBDIR += py-parameterized SUBDIR += py-parsedatetime SUBDIR += py-parsley + SUBDIR += py-parsy SUBDIR += py-parver SUBDIR += py-pastel SUBDIR += py-patch diff --git a/devel/py-parsy/Makefile b/devel/py-parsy/Makefile new file mode 100644 index 000000000000..dd5974e9d2d5 --- /dev/null +++ b/devel/py-parsy/Makefile @@ -0,0 +1,23 @@ +PORTNAME= parsy +PORTVERSION= 2.2 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Easy-to-use parser combinators, for parsing in pure Python +WWW= https://parsy.readthedocs.io/en/latest/ \ + https://github.com/python-parsy/parsy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.2:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent pep517 + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-parsy/distinfo b/devel/py-parsy/distinfo new file mode 100644 index 000000000000..38d26985322b --- /dev/null +++ b/devel/py-parsy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1775587106 +SHA256 (parsy-2.2.tar.gz) = e943147644a8cf0d82d1bcb5c5867dd517495254cea3e3eb058b1e421cb7561f +SIZE (parsy-2.2.tar.gz) = 47296 diff --git a/devel/py-parsy/pkg-descr b/devel/py-parsy/pkg-descr new file mode 100644 index 000000000000..1c1f418d4de2 --- /dev/null +++ b/devel/py-parsy/pkg-descr @@ -0,0 +1,17 @@ +Parsy is an easy and elegant way to parse text in Python by combining small +parsers into complex, larger parsers. If it means anything to you, it's a +monadic parser combinator library for LL(infinity) grammars in the spirit of +Parsec, Parsnip, and Parsimmon. But don't worry, it has really good +documentation and it doesn't say things like that! + +For a good example of the kind of clear, declarative code you can create using +parsy, see the SQL SELECT statement example or JSON parser. + +The project: +- has zero dependencies outside stdlib. +- is highly mature and stable, with few-to-none backwards incompatibilities over + the past 10 years. +- is essentially complete, with no rewrites planned. Widely useful improvements + that don't break compatibility will still be considered, however. +- is implemented in a single module with less than 800LOC, which you could + vendor easily if required.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69e3ff12.33c45.489138ba>
