From owner-svn-ports-head@freebsd.org Mon Feb 22 09:37:42 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D579AB025D; Mon, 22 Feb 2016 09:37:42 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 E55FA181B; Mon, 22 Feb 2016 09:37:41 +0000 (UTC) (envelope-from koobs@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u1M9beBN097418; Mon, 22 Feb 2016 09:37:40 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1M9bes5097414; Mon, 22 Feb 2016 09:37:40 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201602220937.u1M9bes5097414@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Mon, 22 Feb 2016 09:37:40 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409321 - in head/devel/py-rauth: . 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-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 09:37:42 -0000 Author: koobs Date: Mon Feb 22 09:37:40 2016 New Revision: 409321 URL: https://svnweb.freebsd.org/changeset/ports/409321 Log: devel/py-rauth: Update to 0.7.2, Modernize - Update PORTVERSION and distinfo checksum (0.7.2) - Add LICENSE_FILE - Update RUN_DEPENDS (Switch to www/requests from requests1 - Update TEST dependencies and test target - Remove TESTS options bits accordingly - Patch setup.py to enable setuptools test command support - Update pkg-descr based on latest upstream text - Enable NO_ARCH (architecture independence) Added: head/devel/py-rauth/files/ head/devel/py-rauth/files/patch-setup.py (contents, props changed) Modified: head/devel/py-rauth/Makefile head/devel/py-rauth/distinfo head/devel/py-rauth/pkg-descr Modified: head/devel/py-rauth/Makefile ============================================================================== --- head/devel/py-rauth/Makefile Mon Feb 22 08:21:48 2016 (r409320) +++ head/devel/py-rauth/Makefile Mon Feb 22 09:37:40 2016 (r409321) @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= rauth -PORTVERSION= 0.6.2 -PORTREVISION= 2 +PORTVERSION= 0.7.2 CATEGORIES= devel www python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,29 +10,22 @@ MAINTAINER= koobs@FreeBSD.org COMMENT= Python library for OAuth 1.0/a, 2.0, and Ofly consumers LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE -RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests1>=1.2.3:${PORTSDIR}/www/py-requests1 -TEST_DEPENDS:= ${RUN_DEPENDS} \ - ${PYTHON_PKGNAMEPREFIX}nose>=1.2.1:${PORTSDIR}/devel/py-nose \ +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=1.2.3:${PORTSDIR}/www/py-requests +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=1.2.1:${PORTSDIR}/devel/py-nose \ ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock \ ${PYTHON_PKGNAMEPREFIX}pycrypto>=2.5:${PORTSDIR}/security/py-pycrypto -OPTIONS_DEFINE= TESTS -TESTS_DESC= Install tools for unit testing - -USE_GITHUB= yes -GH_ACCOUNT= litl - USES= python +USE_GITHUB= yes USE_PYTHON= distutils autoplist -.include +GH_ACCOUNT= litl -.if ${PORT_OPTIONS:MTESTS} -BUILD_DEPENDS:= ${TEST_DEPENDS} -.endif +NO_ARCH= yes -regression-test: build - @cd ${WRKSRC} && nosetests +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Modified: head/devel/py-rauth/distinfo ============================================================================== --- head/devel/py-rauth/distinfo Mon Feb 22 08:21:48 2016 (r409320) +++ head/devel/py-rauth/distinfo Mon Feb 22 09:37:40 2016 (r409321) @@ -1,2 +1,2 @@ -SHA256 (litl-rauth-0.6.2_GH0.tar.gz) = 14d6f694d9d87906533359dcbdf024319837b8d7506a9485cc9a53b48949cf81 -SIZE (litl-rauth-0.6.2_GH0.tar.gz) = 33251 +SHA256 (litl-rauth-0.7.2_GH0.tar.gz) = 224dcc283c11b60a1cda0082836570338def1134a92b0d874046c3d0acb8d9aa +SIZE (litl-rauth-0.7.2_GH0.tar.gz) = 34688 Added: head/devel/py-rauth/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-rauth/files/patch-setup.py Mon Feb 22 09:37:40 2016 (r409321) @@ -0,0 +1,34 @@ +--- setup.py.orig 2015-11-05 16:01:31 UTC ++++ setup.py +@@ -20,14 +20,16 @@ about = {} + with open('rauth/__about__.py') as f: + exec(f.read(), about) + +-if sys.argv[-1] == 'test': +- status = os.system('make check') +- status >>= 8 +- sys.exit(status) +- + install_requires = ['requests>=1.2.3'] ++ ++tests_require = [ ++ 'nose', ++ 'mock', ++ 'pycrypto', ++] ++ + if sys.version_info[0] == 2 and sys.version_info[1] < 7: +- install_requires.append('unittest2>=0.5.1') ++ tests_require = ['unittest2>=0.5.1'] + + classifiers = ['Development Status :: 5 - Production/Stable', + 'Intended Audience :: Developers', +@@ -57,6 +59,8 @@ setup(name=about['__title__'], + url='https://github.com/litl/rauth', + packages=find_packages(), + install_requires=install_requires, ++ tests_require=tests_require, ++ test_suite='nose.collector', + license=about['__license__'], + keywords='oauth oauth2 rauth requests', + classifiers=classifiers, Modified: head/devel/py-rauth/pkg-descr ============================================================================== --- head/devel/py-rauth/pkg-descr Mon Feb 22 08:21:48 2016 (r409320) +++ head/devel/py-rauth/pkg-descr Mon Feb 22 09:37:40 2016 (r409321) @@ -1,9 +1,10 @@ This package provides OAuth 1.0/a, 2.0, and Ofly consumer support. The package is wrapped around the superb Python Requests. -- Built on Python-Requests -- Supports OAuth 1.0, 1.0a, 2.0 and Ofly] -- Service wrappers for convenient connection initialization -- Well tested (100% coverage) + * Supports OAuth 1.0/a, 2.0 and Ofly + * Service wrappers for convenient connection initialization + * Authenticated session objects providing nifty things like keep-alive + * Well tested (100% coverage) + * Built on Requests WWW: https://github.com/litl/rauth