git: a05d655abf0d - main - devel/py-configupdater: Add py-configupdater 3.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 May 2022 11:44:20 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a05d655abf0dce49f1b62f6193c18464873e4611 commit a05d655abf0dce49f1b62f6193c18464873e4611 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-05-13 11:27:17 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-05-13 11:39:09 +0000 devel/py-configupdater: Add py-configupdater 3.1 The sole purpose of ConfigUpdater is to easily update an INI config file with no changes to the original file except the intended ones. This means comments, the ordering of sections and key/value-pairs as wells as their cases are kept as in the original file. Thus ConfigUpdater provides complementary functionality to Python's ConfigParser which is primarily meant for reading config files and writing new ones. WWW: https://github.com/pyscaffold/configupdater --- devel/Makefile | 1 + devel/py-configupdater/Makefile | 29 +++++++++++++++++++++++++++++ devel/py-configupdater/distinfo | 3 +++ devel/py-configupdater/pkg-descr | 8 ++++++++ 4 files changed, 41 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index d4bf64cc27f8..7c75efa5c610 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4400,6 +4400,7 @@ SUBDIR += py-configargparse SUBDIR += py-configobj SUBDIR += py-configparser + SUBDIR += py-configupdater SUBDIR += py-confusable_homoglyphs SUBDIR += py-confuse SUBDIR += py-connection_pool diff --git a/devel/py-configupdater/Makefile b/devel/py-configupdater/Makefile new file mode 100644 index 000000000000..04f43aa4ed88 --- /dev/null +++ b/devel/py-configupdater/Makefile @@ -0,0 +1,29 @@ +# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> + +PORTNAME= configupdater +PORTVERSION= 3.1 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ConfigUpdater-${PORTVERSION} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Parser like ConfigParser but for updating configuration files + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=5:devel/py-setuptools_scm@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include <bsd.port.pre.mk> + +.if ${PYTHON_REL} < 30800 +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} +.endif + +.include <bsd.port.post.mk> diff --git a/devel/py-configupdater/distinfo b/devel/py-configupdater/distinfo new file mode 100644 index 000000000000..ddc03348a1d9 --- /dev/null +++ b/devel/py-configupdater/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1652122525 +SHA256 (ConfigUpdater-3.1.tar.gz) = ddcc5250f508b9131c45fd1dbceae3f112907ddd7597da1cff30c51bf7c87edb +SIZE (ConfigUpdater-3.1.tar.gz) = 139877 diff --git a/devel/py-configupdater/pkg-descr b/devel/py-configupdater/pkg-descr new file mode 100644 index 000000000000..33059540acda --- /dev/null +++ b/devel/py-configupdater/pkg-descr @@ -0,0 +1,8 @@ +The sole purpose of ConfigUpdater is to easily update an INI config file with no +changes to the original file except the intended ones. This means comments, the +ordering of sections and key/value-pairs as wells as their cases are kept as in +the original file. Thus ConfigUpdater provides complementary functionality to +Python's ConfigParser which is primarily meant for reading config files and +writing new ones. + +WWW: https://github.com/pyscaffold/configupdater