import ports/devel/py-configargparse - argparse replacement, allows

options to be set via files/env. ok jca landry
This commit is contained in:
sthen 2015-11-13 13:02:31 +00:00
parent b3f677f56e
commit 526e32a788
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,21 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/11/13 13:02:31 sthen Exp $
COMMENT= argparse replacement, allows options to be set via files/env
MODPY_EGG_VERSION = 0.10.0
DISTNAME= ConfigArgParse-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME}
CATEGORIES= devel
# MIT
PERMIT_PACKAGE_CDROM= Yes
FLAVORS= python3
FLAVOR?=
MODULES= lang/python
MODPY_PI= Yes
MODPY_SETUPTOOLS= Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (ConfigArgParse-0.10.0.tar.gz) = O1CoPdWBSd/O6Yy2VlJl0QtT6cCivKfu73+19VJIkKc=
SIZE (ConfigArgParse-0.10.0.tar.gz) = 36174

View File

@ -0,0 +1,10 @@
A drop-in replacement for argparse that allows options to also be set
via config files and/or environment variables.
Applications with more than a handful of user-settable options are best
configured through a combination of command line args, config files,
hard-coded defaults, and in some cases, environment variables.
Python's command line parsing modules such as argparse have very
limited support for config files and environment variables, so this
module extends argparse to add these features.

View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/11/13 13:02:31 sthen Exp $
lib/python${MODPY_VERSION}/site-packages/ConfigArgParse-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
lib/python${MODPY_VERSION}/site-packages/ConfigArgParse-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
lib/python${MODPY_VERSION}/site-packages/ConfigArgParse-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
lib/python${MODPY_VERSION}/site-packages/ConfigArgParse-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
lib/python${MODPY_VERSION}/site-packages/ConfigArgParse-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/pbr.json
lib/python${MODPY_VERSION}/site-packages/ConfigArgParse-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
lib/python${MODPY_VERSION}/site-packages/${MODPY_PYCACHE}configargparse.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/configargparse.py