ports/170022: [NEW PORT] devel/py-tox: Python virtualenv-based automation of test activities

koobs koobs.freebsd at gmail.com
Thu Jul 26 08:44:29 UTC 2012


Have spoken with the upstream developers, and removed the secondary 
MASTERSITE at their suggestion.

Updated .shar attached.
-------------- next part --------------
===> Creating shar file
===> Viewing diff with more
# 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-tox
#	py-tox/Makefile
#	py-tox/pkg-descr
#	py-tox/pkg-plist
#	py-tox/distinfo
#	py-tox/files
#	py-tox/files/patch-setup.py
#	py-tox/py-tox.shar
#
echo c - py-tox
mkdir -p py-tox > /dev/null 2>&1
echo x - py-tox/Makefile
sed 's/^X//' >py-tox/Makefile << '018f08001c9ff5af0bc859098e8918bf'
X# New ports collection makefile for:	py-tox
X# Date created:		2012-07-19
X# Whom:			Kubilay Kocak <koobs.freebsd at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	tox
XPORTVERSION=	1.4.2
XCATEGORIES=	devel python
XMASTER_SITES=	CHEESESHOP
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
X
XMAINTAINER=	koobs.freebsd at gmail.com
XCOMMENT=	Python virtualenv-based automation of test activities
X
XLICENSE=	GPLv2 GPLv3
XLICENSE_COMB=	dual
X
XRUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}virtualenv>=1.7:${PORTSDIR}/devel/py-virtualenv \
X		${PYTHON_PKGNAMEPREFIX}pylib>=1.4.9:${PORTSDIR}/devel/py-pylib
X
XUSE_ZIP=	YES
XUSE_PYTHON=	YES
XUSE_PYDISTUTILS=	easy_install
X
XOPTIONS_DEFINE=	PYTEST
XPYTEST_DESC=	Include the Pytest test runner
X
X# Workaround ports infrastructure bug
XOPTIONSFILE=	${PORT_DBDIR}/py-${PORTNAME}/options
X
X.include <bsd.port.options.mk>
X
X.if ${PORT_OPTIONS:MPYTEST}
XRUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
X.endif
X
X.include <bsd.port.pre.mk>
X
X.if ${PYTHON_VER} <= 3.2
XRUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse
X.endif
X
X.include <bsd.port.post.mk>
018f08001c9ff5af0bc859098e8918bf
echo x - py-tox/pkg-descr
sed 's/^X//' >py-tox/pkg-descr << '44559753302afd114e57ad6f1a565c3f'
XTox as is a generic virtualenv management and test command line tool you can
Xuse for:
X
X* checking your package installs correctly with different
X  Python versions and interpreters
X
X* running your tests in each of the
X  environments, configuring your test tool of choice
X
X* acting as a frontend to Continuous Integration
X  servers, greatly reducing boilerplate and merging
X  CI and shell-based testing.
X
XWWW:	http://tox.testrun.org/
44559753302afd114e57ad6f1a565c3f
echo x - py-tox/pkg-plist
sed 's/^X//' >py-tox/pkg-plist << '4dfdcab38b1a62758126b79e1da160cf'
X at comment $FreeBSD$
Xbin/tox
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/__init__.py
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/__init__.pyc
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/__init__.pyo
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_cmdline.py
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_cmdline.pyc
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_cmdline.pyo
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_config.py
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_config.pyc
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_config.pyo
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_exception.py
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_exception.pyc
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_exception.pyo
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_venv.py
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_venv.pyc
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_venv.pyo
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_verlib.py
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_verlib.pyc
X%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_verlib.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox
X at dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
X at dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%
4dfdcab38b1a62758126b79e1da160cf
echo x - py-tox/distinfo
sed 's/^X//' >py-tox/distinfo << 'c6ab148a0ab92d6c8bee7b5a55cecd25'
XSHA256 (tox-1.4.2.zip) = a8a5b3ad5ff0907c13203c5b36085f8dafbdd367e0c9211aa24797990a6f3d2f
XSIZE (tox-1.4.2.zip) = 77565
c6ab148a0ab92d6c8bee7b5a55cecd25
echo c - py-tox/files
mkdir -p py-tox/files > /dev/null 2>&1
echo x - py-tox/files/patch-setup.py
sed 's/^X//' >py-tox/files/patch-setup.py << '6b2751368fd01f18f6e218d4784c990c'
X--- ./setup.py.orig	2012-07-19 20:16:27.000000000 +1000
X+++ ./setup.py	2012-07-19 20:16:36.000000000 +1000
X@@ -44,7 +44,7 @@
X         packages=['tox', ],
X         entry_points={'console_scripts': 'tox=tox:cmdline'},
X         install_requires=install_requires,
X-        zip_safe=True,
X+        zip_safe=False,
X         classifiers=[
X             'Development Status :: 5 - Production/Stable',
X             'Intended Audience :: Developers',
X@@ -60,4 +60,4 @@
X     )
X 
X if __name__ == '__main__':
X-    main()
X\ No newline at end of file
X+    main()
6b2751368fd01f18f6e218d4784c990c
echo x - py-tox/py-tox.shar
sed 's/^X//' >py-tox/py-tox.shar << 'e86d8aaae1f6bb16249a45bf042ca1cf'
X===> Creating shar file
e86d8aaae1f6bb16249a45bf042ca1cf
exit

===> Done


More information about the freebsd-python mailing list