Tox as is a generic virtualenv management and test command line tool you

can use for:

* checking your package installs correctly with different Python
  versions and interpreters
* running your tests in each of the environments, configuring your test
  tool of choice
* acting as a frontend to Continuous Integration servers, greatly
  reducing boilerplate and merging CI and shell-based testing.

WWW:	http://tox.testrun.org/

PR:		ports/170022
Submitted by:	Kubilay Kocak <koobs.freebsd@gmail.com>
This commit is contained in:
Marcus von Appen 2012-07-30 12:03:36 +00:00
parent c5274f9bdb
commit cdffcb1103
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=301714
6 changed files with 110 additions and 0 deletions

View file

@ -3442,6 +3442,7 @@
SUBDIR += py-tgMochiKit
SUBDIR += py-thrift
SUBDIR += py-timelib
SUBDIR += py-tox
SUBDIR += py-trace2html
SUBDIR += py-traits
SUBDIR += py-transaction

45
devel/py-tox/Makefile Normal file
View file

@ -0,0 +1,45 @@
# New ports collection makefile for: py-tox
# Date created: 2012-07-19
# Whom: Kubilay Kocak <koobs.freebsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= tox
PORTVERSION= 1.4.2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs.freebsd@gmail.com
COMMENT= Python virtualenv-based automation of test activities
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}virtualenv>=1.7:${PORTSDIR}/devel/py-virtualenv \
${PYTHON_PKGNAMEPREFIX}pylib>=1.4.9:${PORTSDIR}/devel/py-pylib
USE_ZIP= YES
USE_PYTHON= YES
USE_PYDISTUTILS= easy_install
OPTIONS_DEFINE= PYTEST
PYTEST_DESC= Include the Pytest test runner
# Workaround ports infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTEST}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pytest>0:${PORTSDIR}/devel/py-pytest
.endif
.include <bsd.port.pre.mk>
.if ${PYTHON_VER} <= 3.2
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}argparse>0:${PORTSDIR}/devel/py-argparse
.endif
.include <bsd.port.post.mk>

2
devel/py-tox/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (tox-1.4.2.zip) = a8a5b3ad5ff0907c13203c5b36085f8dafbdd367e0c9211aa24797990a6f3d2f
SIZE (tox-1.4.2.zip) = 77565

View file

@ -0,0 +1,18 @@
--- ./setup.py.orig 2012-07-19 20:16:27.000000000 +1000
+++ ./setup.py 2012-07-19 20:16:36.000000000 +1000
@@ -44,7 +44,7 @@
packages=['tox', ],
entry_points={'console_scripts': 'tox=tox:cmdline'},
install_requires=install_requires,
- zip_safe=True,
+ zip_safe=False,
classifiers=[
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Developers',
@@ -60,4 +60,4 @@
)
if __name__ == '__main__':
- main()
\ No newline at end of file
+ main()

14
devel/py-tox/pkg-descr Normal file
View file

@ -0,0 +1,14 @@
Tox as is a generic virtualenv management and test command line tool you can
use for:
* checking your package installs correctly with different
Python versions and interpreters
* running your tests in each of the
environments, configuring your test tool of choice
* acting as a frontend to Continuous Integration
servers, greatly reducing boilerplate and merging
CI and shell-based testing.
WWW: http://tox.testrun.org/

30
devel/py-tox/pkg-plist Normal file
View file

@ -0,0 +1,30 @@
@comment $FreeBSD$
bin/tox
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/PKG-INFO
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/SOURCES.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/dependency_links.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/entry_points.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/not-zip-safe
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/requires.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO/top_level.txt
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/__init__.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/__init__.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/__init__.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_cmdline.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_cmdline.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_cmdline.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_config.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_config.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_config.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_exception.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_exception.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_exception.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_venv.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_venv.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_venv.pyo
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_verlib.py
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_verlib.pyc
%%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox/_verlib.pyo
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/tox
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%/EGG-INFO
@dirrm %%PYTHON_SITELIBDIR%%/%%PYEASYINSTALL_EGG%%