pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel New package, py-confuse. Part of PR pkg/56378.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c82c8509be04
branches:  trunk
changeset: 770138:c82c8509be04
user:      bsiegert <bsiegert%pkgsrc.org@localhost>
date:      Thu Nov 25 19:33:58 2021 +0000

description:
New package, py-confuse. Part of PR pkg/56378.

Confuse is a configuration library for Python that uses YAML. It takes
care of defaults, overrides, type checking, command-line integration,
human-readable errors, and standard OS-specific locations.

Here's what Confuse brings to the table:

-  An utterly sensible API resembling dictionary-and-list structures
   but providing transparent validation without lots of boilerplate
   code.
-  Combine configuration data from multiple sources. Using
   layering, Confuse allows user-specific configuration to seamlessly
   override system-wide configuration, which in turn overrides built-in
   defaults.
-  Look for configuration files in platform-specific paths.
-  Integration with command-line arguments via argparse or optparse
   from the standard library.

diffstat:

 devel/Makefile                          |   3 ++-
 devel/py-confuse/DESCR                  |  16 ++++++++++++++++
 devel/py-confuse/Makefile               |  18 ++++++++++++++++++
 devel/py-confuse/PLIST                  |  27 +++++++++++++++++++++++++++
 devel/py-confuse/distinfo               |   6 ++++++
 devel/py-confuse/patches/patch-setup.py |  15 +++++++++++++++
 6 files changed, 84 insertions(+), 1 deletions(-)

diffs (119 lines):

diff -r 305323d72ef9 -r c82c8509be04 devel/Makefile
--- a/devel/Makefile    Thu Nov 25 16:36:52 2021 +0000
+++ b/devel/Makefile    Thu Nov 25 19:33:58 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3515 2021/11/24 09:39:23 wiz Exp $
+# $NetBSD: Makefile,v 1.3516 2021/11/25 19:33:58 bsiegert Exp $
 #
 
 COMMENT=       Development utilities
@@ -2237,6 +2237,7 @@
 SUBDIR+=       py-configargparse
 SUBDIR+=       py-configobj
 SUBDIR+=       py-configparser
+SUBDIR+=       py-confuse
 SUBDIR+=       py-constantly
 SUBDIR+=       py-constants
 SUBDIR+=       py-construct
diff -r 305323d72ef9 -r c82c8509be04 devel/py-confuse/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-confuse/DESCR    Thu Nov 25 19:33:58 2021 +0000
@@ -0,0 +1,16 @@
+Confuse is a configuration library for Python that uses YAML. It takes
+care of defaults, overrides, type checking, command-line integration,
+human-readable errors, and standard OS-specific locations.
+
+Here's what Confuse brings to the table:
+
+-  An utterly sensible API resembling dictionary-and-list structures
+   but providing transparent validation without lots of boilerplate
+   code.
+-  Combine configuration data from multiple sources. Using
+   layering, Confuse allows user-specific configuration to seamlessly
+   override system-wide configuration, which in turn overrides built-in
+   defaults.
+-  Look for configuration files in platform-specific paths.
+-  Integration with command-line arguments via argparse or optparse
+   from the standard library.
diff -r 305323d72ef9 -r c82c8509be04 devel/py-confuse/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-confuse/Makefile Thu Nov 25 19:33:58 2021 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2021/11/25 19:33:58 bsiegert Exp $
+
+DISTNAME=      confuse-1.6.0
+PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=    devel python
+MASTER_SITES=  https://files.pythonhosted.org/packages/db/ec/fd93d96a32f54a3e19124179e86cced96da590d946c739a599f26d775a5f/
+
+MAINTAINER=    bsiegert%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/beetbox/confuse
+COMMENT=       Painless YAML configuration
+LICENSE=       mit
+
+DEPENDS+=      ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
+
+USE_LANGUAGES= # none
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 305323d72ef9 -r c82c8509be04 devel/py-confuse/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-confuse/PLIST    Thu Nov 25 19:33:58 2021 +0000
@@ -0,0 +1,27 @@
+@comment $NetBSD: PLIST,v 1.1 2021/11/25 19:33:58 bsiegert Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/confuse/__init__.py
+${PYSITELIB}/confuse/__init__.pyc
+${PYSITELIB}/confuse/__init__.pyo
+${PYSITELIB}/confuse/core.py
+${PYSITELIB}/confuse/core.pyc
+${PYSITELIB}/confuse/core.pyo
+${PYSITELIB}/confuse/exceptions.py
+${PYSITELIB}/confuse/exceptions.pyc
+${PYSITELIB}/confuse/exceptions.pyo
+${PYSITELIB}/confuse/sources.py
+${PYSITELIB}/confuse/sources.pyc
+${PYSITELIB}/confuse/sources.pyo
+${PYSITELIB}/confuse/templates.py
+${PYSITELIB}/confuse/templates.pyc
+${PYSITELIB}/confuse/templates.pyo
+${PYSITELIB}/confuse/util.py
+${PYSITELIB}/confuse/util.pyc
+${PYSITELIB}/confuse/util.pyo
+${PYSITELIB}/confuse/yaml_util.py
+${PYSITELIB}/confuse/yaml_util.pyc
+${PYSITELIB}/confuse/yaml_util.pyo
diff -r 305323d72ef9 -r c82c8509be04 devel/py-confuse/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-confuse/distinfo Thu Nov 25 19:33:58 2021 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/11/25 19:33:58 bsiegert Exp $
+
+BLAKE2s (confuse-1.6.0.tar.gz) = 78493c6c497b3759cc7f496f03378ded10ba041c599790967161813e33ebf8aa
+SHA512 (confuse-1.6.0.tar.gz) = e8883df408815e83e83f96621d89cb36e97d59db99a1ce01f0ccb28a4d538f58f0ee08d70505b388cd5c9a2aa8a3a75daf074dc72b133ae0b2128eda2d1330a3
+Size (confuse-1.6.0.tar.gz) = 45780 bytes
+SHA1 (patch-setup.py) = 5b1600286d44a5a02dc25ed84dfbf1e507fbd30b
diff -r 305323d72ef9 -r c82c8509be04 devel/py-confuse/patches/patch-setup.py
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/py-confuse/patches/patch-setup.py   Thu Nov 25 19:33:58 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2021/11/25 19:33:58 bsiegert Exp $
+
+Use setuptools, distutils does not support the options we use
+
+--- setup.py.orig      1970-01-01 00:00:00.000000000 +0000
++++ setup.py
+@@ -1,7 +1,7 @@
+ #!/usr/bin/env python
+ # setup.py generated by flit for tools that don't yet use PEP 517
+ 
+-from distutils.core import setup
++from setuptools import setup
+ 
+ packages = \
+ ['confuse']



Home | Main Index | Thread Index | Old Index