From owner-svn-ports-all@FreeBSD.ORG Wed Feb 11 13:34:47 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A71BD599; Wed, 11 Feb 2015 13:34:47 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 919E1AE; Wed, 11 Feb 2015 13:34:47 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t1BDYlj7001548; Wed, 11 Feb 2015 13:34:47 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t1BDYkR4001545; Wed, 11 Feb 2015 13:34:46 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201502111334.t1BDYkR4001545@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Wed, 11 Feb 2015 13:34:46 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r378838 - in head/net/py-oauth2: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2015 13:34:47 -0000 Author: koobs Date: Wed Feb 11 13:34:46 2015 New Revision: 378838 URL: https://svnweb.freebsd.org/changeset/ports/378838 QAT: https://qat.redports.org/buildarchive/r378838/ Log: net/py-oauth2: Clean up, modernize & add QA bits - Take maintainership under python@'s wings - httplib2 is a RUN not BUILD dependency - Add TEST_DEPENDS and regression-test target - Limit to Python 2.x - Sort USE_PYTHON values - Add breadcrumb/notes to setup.py patch - Make pkg-descr a bit prettier Modified: head/net/py-oauth2/Makefile head/net/py-oauth2/files/patch-setup.py head/net/py-oauth2/pkg-descr Modified: head/net/py-oauth2/Makefile ============================================================================== --- head/net/py-oauth2/Makefile Wed Feb 11 13:18:22 2015 (r378837) +++ head/net/py-oauth2/Makefile Wed Feb 11 13:34:46 2015 (r378838) @@ -3,20 +3,29 @@ 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 + +OPTIONS_DEFINE= TESTS +TESTS_DESC= Install test suite requirements +TESTS_BUILD_DEPENDS= ${TEST_DEPENDS} -USES= python -USE_PYTHON= distutils autoplist +USES= python:-2.7 +USE_PYTHON= autoplist distutils + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Modified: head/net/py-oauth2/files/patch-setup.py ============================================================================== --- head/net/py-oauth2/files/patch-setup.py Wed Feb 11 13:18:22 2015 (r378837) +++ head/net/py-oauth2/files/patch-setup.py Wed Feb 11 13:34:46 2015 (r378838) @@ -1,3 +1,6 @@ +# 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 @@ Modified: head/net/py-oauth2/pkg-descr ============================================================================== --- head/net/py-oauth2/pkg-descr Wed Feb 11 13:18:22 2015 (r378837) +++ head/net/py-oauth2/pkg-descr Wed Feb 11 13:34:46 2015 (r378838) @@ -4,11 +4,11 @@ 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