Bug 170022 - [NEW PORT] devel/py-tox: Python virtualenv-based automation of test activities
Summary: [NEW PORT] devel/py-tox: Python virtualenv-based automation of test activities
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Marcus von Appen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-20 14:40 UTC by koobs
Modified: 2012-07-30 13:10 UTC (History)
0 users

See Also:


Attachments
.shar (5.12 KB, text/plain)
2012-07-20 14:40 UTC, koobs
no flags Details
py-tox.shar (5.46 KB, TEXT/PLAIN; charset=US-ASCII)
2012-07-26 09:44 UTC, koobs
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description koobs 2012-07-20 14:40:08 UTC
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/

---[QA]---

tox test output: 
	114 passed, 2 skipped in 56.13 seconds

redports build clean on all groups: 
	https://redports.org/buildarchive/20120720105839-18915/

Generated with FreeBSD Port Tools 0.99_6 (mode: new)
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2012-07-20 14:40:20 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

freebsd-python@ wants this port PRs (via the GNATS Auto Assign Tool)
Comment 2 Marcus von Appen freebsd_committer freebsd_triage 2012-07-25 20:50:56 UTC
State Changed
From-To: open->feedback

A checksum mismatch occurs on running make checksum - please verify that 
the changed upstream package is correct and update the checksum in 
distinfo accordingly. 


Comment 3 Marcus von Appen freebsd_committer freebsd_triage 2012-07-25 20:50:56 UTC
Responsible Changed
From-To: freebsd-python->mva

A checksum mismatch occurs on running make checksum - please verify that 
the changed upstream package is correct and update the checksum in 
distinfo accordingly.
Comment 4 koobs 2012-07-26 09:44:17 UTC
Have spoken with the upstream developers, and removed the secondary 
MASTERSITE at their suggestion.

Updated .shar attached.
Comment 5 dfilter service freebsd_committer freebsd_triage 2012-07-30 13:03:50 UTC
Author: mva
Date: Mon Jul 30 12:03:36 2012
New Revision: 301714
URL: http://svn.freebsd.org/changeset/ports/301714

Log:
  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>

Added:
  head/devel/py-tox/
  head/devel/py-tox/Makefile   (contents, props changed)
  head/devel/py-tox/distinfo   (contents, props changed)
  head/devel/py-tox/files/
  head/devel/py-tox/files/patch-setup.py   (contents, props changed)
  head/devel/py-tox/pkg-descr   (contents, props changed)
  head/devel/py-tox/pkg-plist   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Mon Jul 30 10:29:32 2012	(r301713)
+++ head/devel/Makefile	Mon Jul 30 12:03:36 2012	(r301714)
@@ -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

Added: head/devel/py-tox/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tox/Makefile	Mon Jul 30 12:03:36 2012	(r301714)
@@ -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>

Added: head/devel/py-tox/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tox/distinfo	Mon Jul 30 12:03:36 2012	(r301714)
@@ -0,0 +1,2 @@
+SHA256 (tox-1.4.2.zip) = a8a5b3ad5ff0907c13203c5b36085f8dafbdd367e0c9211aa24797990a6f3d2f
+SIZE (tox-1.4.2.zip) = 77565

Added: head/devel/py-tox/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tox/files/patch-setup.py	Mon Jul 30 12:03:36 2012	(r301714)
@@ -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()

Added: head/devel/py-tox/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tox/pkg-descr	Mon Jul 30 12:03:36 2012	(r301714)
@@ -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/

Added: head/devel/py-tox/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tox/pkg-plist	Mon Jul 30 12:03:36 2012	(r301714)
@@ -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%%
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 6 Marcus von Appen freebsd_committer freebsd_triage 2012-07-30 13:04:06 UTC
State Changed
From-To: feedback->closed

New port added. Thanks!