ports/132687: [NEW PORT] devel/py-iniparse: A better INI parser for Python

Yi-Jheng Lin yzlin at cs.nctu.edu.tw
Mon Mar 16 08:20:01 UTC 2009


>Number:         132687
>Category:       ports
>Synopsis:       [NEW PORT] devel/py-iniparse: A better INI parser for Python
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 16 08:20:00 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Yi-Jheng Lin
>Release:        FreeBSD 7.1-RELEASE-p1 amd64
>Organization:
NCTU CS
>Environment:
System: FreeBSD yzlin 7.1-RELEASE-p1 FreeBSD 7.1-RELEASE-p1 #0: Tue Jan 13 19:02:22 CST 2009
>Description:
iniparse is a INI parser for Python which is:
    - Compatiable with ConfigParser:
      Backward compatible implementations of ConfigParser,
      RawConfigParser, and SafeConfigParser are included that are
      API-compatible with the Python standard library.
      They pass all the unit tests in Python-2.4.4.

    - Preserves structure of INI files:
      Order of sections & options, indentation, comments, and blank
      lines are preserved as far as possible when data is updated.

    - More convenient:
      Values can be accessed using dotted notation (cfg.user.name),
      or using container syntax (cfg['user']['name']).

It is very useful for config files that are updated both by users and by
programs, since it is very disorienting for a user to have her config
file completely rearranged whenever a program changes it. iniparse also
allows making the order of entries in a config file significant, which is
desirable in applications like image galleries.

WWW:	http://code.google.com/p/iniparse/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- py-iniparse-0.3.1.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	py-iniparse
#	py-iniparse/pkg-descr
#	py-iniparse/Makefile
#	py-iniparse/pkg-plist
#	py-iniparse/distinfo
#	py-iniparse/files
#	py-iniparse/files/patch-setup.py
#
echo c - py-iniparse
mkdir -p py-iniparse > /dev/null 2>&1
echo x - py-iniparse/pkg-descr
sed 's/^X//' >py-iniparse/pkg-descr << '9e8ed8c4747203ca5622319ec80a5967'
Xiniparse is a INI parser for Python which is:
X    - Compatiable with ConfigParser:
X      Backward compatible implementations of ConfigParser,
X      RawConfigParser, and SafeConfigParser are included that are
X      API-compatible with the Python standard library.
X      They pass all the unit tests in Python-2.4.4.
X
X    - Preserves structure of INI files:
X      Order of sections & options, indentation, comments, and blank
X      lines are preserved as far as possible when data is updated.
X
X    - More convenient:
X      Values can be accessed using dotted notation (cfg.user.name),
X      or using container syntax (cfg['user']['name']).
X
XIt is very useful for config files that are updated both by users and by
Xprograms, since it is very disorienting for a user to have her config
Xfile completely rearranged whenever a program changes it. iniparse also
Xallows making the order of entries in a config file significant, which is
Xdesirable in applications like image galleries.
X
XWWW:	http://code.google.com/p/iniparse/
9e8ed8c4747203ca5622319ec80a5967
echo x - py-iniparse/Makefile
sed 's/^X//' >py-iniparse/Makefile << '445c852bcfbb1d95c363ff034938a5b5'
X# New ports collection makefile for:	py-iniparse
X# Date created:		2009-03-16
X# Whom:			Yi-Jheng Lin <yzlin at cs.nctu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	iniparse
XPORTVERSION=	0.3.1
XCATEGORIES=	devel python
XMASTER_SITES=	${MASTER_SITE_GOOGLE_CODE} \
X		CHEESESHOP
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	yzlin at cs.nctu.edu.tw
XCOMMENT=	A better INI parser for Python
X
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=	yes
X
XPORTDOCS=	Changelog README
XDOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
X
X.if !defined(NOPORTDOCS)
Xpost-install:
X	@${MKDIR} ${DOCSDIR}
X	@${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
445c852bcfbb1d95c363ff034938a5b5
echo x - py-iniparse/pkg-plist
sed 's/^X//' >py-iniparse/pkg-plist << '42e322f7b06bd467db2b390a49072331'
X at comment $FreeBSD$
X%%PYTHON_SITELIBDIR%%/iniparse/__init__.py
X%%PYTHON_SITELIBDIR%%/iniparse/__init__.pyc
X%%PYTHON_SITELIBDIR%%/iniparse/__init__.pyo
X%%PYTHON_SITELIBDIR%%/iniparse/compat.py
X%%PYTHON_SITELIBDIR%%/iniparse/compat.pyc
X%%PYTHON_SITELIBDIR%%/iniparse/compat.pyo
X%%PYTHON_SITELIBDIR%%/iniparse/config.py
X%%PYTHON_SITELIBDIR%%/iniparse/config.pyc
X%%PYTHON_SITELIBDIR%%/iniparse/config.pyo
X%%PYTHON_SITELIBDIR%%/iniparse/ini.py
X%%PYTHON_SITELIBDIR%%/iniparse/ini.pyc
X%%PYTHON_SITELIBDIR%%/iniparse/ini.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/iniparse
42e322f7b06bd467db2b390a49072331
echo x - py-iniparse/distinfo
sed 's/^X//' >py-iniparse/distinfo << '954820929fad848896a16dc43a4db8b3'
XMD5 (iniparse-0.3.1.tar.gz) = 94adcf1cf01e2a537491a18f2e9b7a7a
XSHA256 (iniparse-0.3.1.tar.gz) = ee4e2379e143a85f02207f46a3f7d47a2486fc0cbc123b7b59731c80ff31a3f5
XSIZE (iniparse-0.3.1.tar.gz) = 28476
954820929fad848896a16dc43a4db8b3
echo c - py-iniparse/files
mkdir -p py-iniparse/files > /dev/null 2>&1
echo x - py-iniparse/files/patch-setup.py
sed 's/^X//' >py-iniparse/files/patch-setup.py << 'e789931c50766df9393c2df90cc457a2'
X--- setup.py.orig
X+++ setup.py
X@@ -30,12 +30,5 @@
X         'Topic :: Software Development :: Libraries :: Python Modules',
X       ],
X       packages = ['iniparse'],
X-      data_files = [
X-        ('share/doc/iniparse-%s' % VERSION, ['README', 'LICENSE-PSF',
X-                                             'LICENSE', 'Changelog',
X-                                             'html/index.html',
X-                                             'html/style.css',
X-                                             ]),
X-      ],
X )
X 
e789931c50766df9393c2df90cc457a2
exit
--- py-iniparse-0.3.1.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list