py-configupdater: added version 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.
This commit is contained in:
adam 2022-04-05 07:12:47 +00:00
parent f5e10fdfdd
commit 42d6543766
5 changed files with 82 additions and 1 deletions

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.3707 2022/04/03 16:11:01 bsiegert Exp $
# $NetBSD: Makefile,v 1.3708 2022/04/05 07:12:47 adam Exp $
#
COMMENT= Development utilities
@ -2362,6 +2362,7 @@ SUBDIR+= py-compizconfig
SUBDIR+= py-configargparse
SUBDIR+= py-configobj
SUBDIR+= py-configparser
SUBDIR+= py-configupdater
SUBDIR+= py-confuse
SUBDIR+= py-constantly
SUBDIR+= py-constants

View file

@ -0,0 +1,6 @@
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.

View file

@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.1 2022/04/05 07:12:47 adam Exp $
DISTNAME= ConfigUpdater-3.1
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=c/configupdater/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= https://github.com/pyscaffold/configupdater
COMMENT= Parser like ConfigParser but for updating configuration files
LICENSE= mit
TEST_DEPENDS+= ${PYPKGPREFIX}-test>0:../../devel/py-test
TEST_DEPENDS+= ${PYPKGPREFIX}-test-cov>0:../../devel/py-test-cov
TEST_DEPENDS+= ${PYPKGPREFIX}-test-virtualenv>0:../../devel/py-test-virtualenv
TEST_DEPENDS+= ${PYPKGPREFIX}-test-xdist>0:../../devel/py-test-xdist
USE_LANGUAGES= # none
USE_PKG_RESOURCES= yes
PYTHON_VERSIONS_INCOMPATIBLE= 27
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} == 37
DEPENDS+= ${PYPKGPREFIX}-importlib-metadata>0:../../devel/py-importlib-metadata
.endif
do-test:
cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} tests
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"

View file

@ -0,0 +1,35 @@
@comment $NetBSD: PLIST,v 1.1 2022/04/05 07:12:47 adam Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/configupdater/__init__.py
${PYSITELIB}/configupdater/__init__.pyc
${PYSITELIB}/configupdater/__init__.pyo
${PYSITELIB}/configupdater/block.py
${PYSITELIB}/configupdater/block.pyc
${PYSITELIB}/configupdater/block.pyo
${PYSITELIB}/configupdater/builder.py
${PYSITELIB}/configupdater/builder.pyc
${PYSITELIB}/configupdater/builder.pyo
${PYSITELIB}/configupdater/configupdater.py
${PYSITELIB}/configupdater/configupdater.pyc
${PYSITELIB}/configupdater/configupdater.pyo
${PYSITELIB}/configupdater/container.py
${PYSITELIB}/configupdater/container.pyc
${PYSITELIB}/configupdater/container.pyo
${PYSITELIB}/configupdater/document.py
${PYSITELIB}/configupdater/document.pyc
${PYSITELIB}/configupdater/document.pyo
${PYSITELIB}/configupdater/option.py
${PYSITELIB}/configupdater/option.pyc
${PYSITELIB}/configupdater/option.pyo
${PYSITELIB}/configupdater/parser.py
${PYSITELIB}/configupdater/parser.pyc
${PYSITELIB}/configupdater/parser.pyo
${PYSITELIB}/configupdater/py.typed
${PYSITELIB}/configupdater/section.py
${PYSITELIB}/configupdater/section.pyc
${PYSITELIB}/configupdater/section.pyo

View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1 2022/04/05 07:12:47 adam Exp $
BLAKE2s (ConfigUpdater-3.1.tar.gz) = ea30ee389db824ad197f8ee5a6546e255386fa16f87cd5be0c1f2e49964e7baa
SHA512 (ConfigUpdater-3.1.tar.gz) = 1542236eeb760d3f5f38b7cc194093b6c16d6c7a42ce35dc209665ccddd0ecd3ae16a8fc3dbba06580993ec6152f93624e6603c62d53913bb93a1a76a3fa8b87
Size (ConfigUpdater-3.1.tar.gz) = 139877 bytes