Index: head/net/py-oauth2/Makefile =================================================================== --- head/net/py-oauth2/Makefile (revision 378837) +++ head/net/py-oauth2/Makefile (revision 378838) @@ -1,22 +1,31 @@ # Created by: Cheng-Lung Sung # $FreeBSD$ PORTNAME= oauth2 PORTVERSION= 1.5.211 -PORTREVISION= 2 +PORTREVISION= 3 CATEGORIES= net python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= ports@FreeBSD.org +MAINTAINER= python@FreeBSD.org COMMENT= Python library for OAuth version 1.0 LICENSE= MIT -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2 -RUN_DEPENDS:= ${BUILD_DEPENDS} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httplib2>0:${PORTSDIR}/www/py-httplib2 +TEST_DEPENDS:= ${RUN_DEPENDS} \ + ${PYTHON_PKGNAMEPREFIX}coverage>0:${PORTSDIR}/devel/py-coverage \ + ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock -USES= python -USE_PYTHON= distutils autoplist +OPTIONS_DEFINE= TESTS +TESTS_DESC= Install test suite requirements +TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} + +USES= python:-2.7 +USE_PYTHON= autoplist distutils + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Index: head/net/py-oauth2/files/patch-setup.py =================================================================== --- head/net/py-oauth2/files/patch-setup.py (revision 378837) +++ head/net/py-oauth2/files/patch-setup.py (revision 378838) @@ -1,11 +1,14 @@ +# This package installs its 'test' module in site-packages/. Patch it out +# so tests/ is excluded from installation + --- ./setup.py.orig 2014-03-15 23:48:44.604925965 +1100 +++ ./setup.py 2014-03-15 23:49:01.462781884 +1100 @@ -31,7 +31,7 @@ author="Joe Stump", author_email="joe@simplegeo.com", url="http://github.com/simplegeo/python-oauth2", - packages = find_packages(), + packages = find_packages(exclude=['tests']), install_requires = ['httplib2'], license = "MIT License", keywords="oauth", Index: head/net/py-oauth2/pkg-descr =================================================================== --- head/net/py-oauth2/pkg-descr (revision 378837) +++ head/net/py-oauth2/pkg-descr (revision 378838) @@ -1,14 +1,14 @@ This code was originally forked from Leah Culver and Andy Smith's oauth.py code (see net/py-oauth). A number of notable differences exist between this code and its forefathers: -* 100% unit test coverage. -* The DataStore object has been completely ripped out. -* Classes are no longer prefixed with OAuth. -* The Request class now extends from dict. -* The library is likely no longer compatible with Python 2.3. -* The Client class works and extends from httplib2. + * 100% unit test coverage. + * The DataStore object has been completely ripped out. + * Classes are no longer prefixed with OAuth. + * The Request class now extends from dict. + * The library is likely no longer compatible with Python 2.3. + * The Client class works and extends from httplib2. WWW: http://github.com/simplegeo/python-oauth2