Date: Tue, 13 Oct 2020 18:41:38 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r552247 - in head/textproc: . py-parse-type Message-ID: <202010131841.09DIfcve062595@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Tue Oct 13 18:41:37 2020 New Revision: 552247 URL: https://svnweb.freebsd.org/changeset/ports/552247 Log: Add py-parse-type 0.5.6 parse_type extends the parse module (opposite of string.format()) with the following features: - build type converters for common use cases (enum/mapping, choice) - build a type converter with a cardinality constraint (0..1, 0..*, 1..*) from the type converter with cardinality=1. - compose a type converter from other type converters - an extended parser that supports the CardinalityField naming schema and creates missing type variants (0..1, 0..*, 1..*) from the primary type converter WWW: https://github.com/jenisys/parse_type Added: head/textproc/py-parse-type/ head/textproc/py-parse-type/Makefile (contents, props changed) head/textproc/py-parse-type/distinfo (contents, props changed) head/textproc/py-parse-type/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Tue Oct 13 18:41:32 2020 (r552246) +++ head/textproc/Makefile Tue Oct 13 18:41:37 2020 (r552247) @@ -1313,6 +1313,7 @@ SUBDIR += py-pandocfilters SUBDIR += py-paragrep SUBDIR += py-parse + SUBDIR += py-parse-type SUBDIR += py-parsel SUBDIR += py-parsimonious SUBDIR += py-parso Added: head/textproc/py-parse-type/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-parse-type/Makefile Tue Oct 13 18:41:37 2020 (r552247) @@ -0,0 +1,28 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= parse-type +PORTVERSION= 0.5.6 +DISTVERSIONPREFIX= v +CATEGORIES= textproc python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Simplify to build parse types based on the parse module + +LICENSE= BSD2CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}parse>=1.18.0:textproc/py-parse@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=1.11:devel/py-six@${PY_FLAVOR} + +USES= python:3.4+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +GH_ACCOUNT= jenisys +GH_PROJECT= parse_type +USE_GITHUB= yes + +.include <bsd.port.mk> Added: head/textproc/py-parse-type/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-parse-type/distinfo Tue Oct 13 18:41:37 2020 (r552247) @@ -0,0 +1,3 @@ +TIMESTAMP = 1602524151 +SHA256 (jenisys-parse_type-v0.5.6_GH0.tar.gz) = 12b75aa048595457fa5d15558c1a49a688ad4a585d5d1378b1aff4d99fb532ae +SIZE (jenisys-parse_type-v0.5.6_GH0.tar.gz) = 270970 Added: head/textproc/py-parse-type/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-parse-type/pkg-descr Tue Oct 13 18:41:37 2020 (r552247) @@ -0,0 +1,11 @@ +parse_type extends the parse module (opposite of string.format()) with the +following features: +- build type converters for common use cases (enum/mapping, choice) +- build a type converter with a cardinality constraint (0..1, 0..*, 1..*) + from the type converter with cardinality=1. +- compose a type converter from other type converters +- an extended parser that supports the CardinalityField naming schema + and creates missing type variants (0..1, 0..*, 1..*) from the primary type + converter + +WWW: https://github.com/jenisys/parse_type
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202010131841.09DIfcve062595>