diff options
author | pav <pav@FreeBSD.org> | 2006-01-15 01:31:55 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-01-15 01:31:55 +0800 |
commit | d358d94b8976dc03d2f16821ab4bf807d513fb5e (patch) | |
tree | d4587ba38f400af5c1ddc760eeea5573a3aaf01c /devel/py-testgears | |
parent | 09b4c54dfa20b70a8d83e79e8cb89f02444cbf5b (diff) | |
download | freebsd-ports-gnome-d358d94b8976dc03d2f16821ab4bf807d513fb5e.tar.gz freebsd-ports-gnome-d358d94b8976dc03d2f16821ab4bf807d513fb5e.tar.zst freebsd-ports-gnome-d358d94b8976dc03d2f16821ab4bf807d513fb5e.zip |
TestGears provides automatic discovery of unittest.TestCases and
the ability to run tests that are written as simple functions.
It generates a standard unittest.TestSuite for use with any of
the standard frontends, and provides a distutils command to run
tests with zero configuration.
PR: ports/91689
Submitted by: Nicola Vitale <nivit@email.it>
Diffstat (limited to 'devel/py-testgears')
-rw-r--r-- | devel/py-testgears/Makefile | 29 | ||||
-rw-r--r-- | devel/py-testgears/distinfo | 3 | ||||
-rw-r--r-- | devel/py-testgears/files/pkg-deinstall.in | 17 | ||||
-rw-r--r-- | devel/py-testgears/pkg-descr | 8 | ||||
-rw-r--r-- | devel/py-testgears/pkg-plist | 2 |
5 files changed, 59 insertions, 0 deletions
diff --git a/devel/py-testgears/Makefile b/devel/py-testgears/Makefile new file mode 100644 index 000000000000..517db67aa6d7 --- /dev/null +++ b/devel/py-testgears/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: py-TestGears +# Date created: 2006-01-11 +# Whom: Nicola Vitale <nivit@email.it> +# +# $FreeBSD$ +# + +PORTNAME= TestGears +PORTVERSION= 0.2 +CATEGORIES= devel python +MASTER_SITES= http://www.turbogears.org/download/eggs/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= nivit@email.it +COMMENT= Python module to run tests written as simple functions + +BUILD_DEPENDS= easy_install:${PORTSDIR}/devel/py-setuptools +# need to remove the egg +RUN_DEPENDS= ${BUILD_DEPENDS} + +USE_PYTHON= yes +USE_PYDISTUTILS= yes + +SUB_FILES= pkg-deinstall +SUB_LIST= PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} \ + EGG="${PORTNAME}==${PORTVERSION}" + +.include <bsd.port.mk> diff --git a/devel/py-testgears/distinfo b/devel/py-testgears/distinfo new file mode 100644 index 000000000000..787d1523a7f3 --- /dev/null +++ b/devel/py-testgears/distinfo @@ -0,0 +1,3 @@ +MD5 (TestGears-0.2.tar.gz) = 1911b1555cf8869e14d1f71da590bc0e +SHA256 (TestGears-0.2.tar.gz) = 13b61e0e86446b34ac9cddb86ca3c9416f53dcfff6845d0156fd717cc45cda29 +SIZE (TestGears-0.2.tar.gz) = 11302 diff --git a/devel/py-testgears/files/pkg-deinstall.in b/devel/py-testgears/files/pkg-deinstall.in new file mode 100644 index 000000000000..92b4ad53ba82 --- /dev/null +++ b/devel/py-testgears/files/pkg-deinstall.in @@ -0,0 +1,17 @@ +#!/bin/sh +# $FreeBSD$ +PKGNAME=$1 +# +case $2 in + DEINSTALL) + easy_install -m -x -D -S %%PYTHON_SITELIBDIR%% %%EGG%% + ;; + POST-DEINSTALL) + exit 0 + ;; + *) + echo "Unexpected Argument $2!!!" + exit 1 + ;; +esac +exit 0 diff --git a/devel/py-testgears/pkg-descr b/devel/py-testgears/pkg-descr new file mode 100644 index 000000000000..8fbf0d92f114 --- /dev/null +++ b/devel/py-testgears/pkg-descr @@ -0,0 +1,8 @@ +TestGears provides automatic discovery of unittest.TestCases and +the ability to run tests that are written as simple functions. +It generates a standard unittest.TestSuite for use with any of +the standard frontends, and provides a distutils command to run +tests with zero configuration. + +Author: Kevin Dangoor <dangoor+testgears@gmail.com> +WWW: http://www.turbogears.com/testgears/ diff --git a/devel/py-testgears/pkg-plist b/devel/py-testgears/pkg-plist new file mode 100644 index 000000000000..0f8298feb33b --- /dev/null +++ b/devel/py-testgears/pkg-plist @@ -0,0 +1,2 @@ +@comment $FreeBSD$ +%%PYTHON_SITELIBDIR%%/TestGears-0.2-py2.4.egg |