Index: head/devel/py-rauth/Makefile =================================================================== --- head/devel/py-rauth/Makefile (revision 409320) +++ head/devel/py-rauth/Makefile (revision 409321) @@ -1,39 +1,31 @@ # Created by: Kubilay Kocak # $FreeBSD$ PORTNAME= rauth -PORTVERSION= 0.6.2 -PORTREVISION= 2 +PORTVERSION= 0.7.2 CATEGORIES= devel www python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} 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 Index: head/devel/py-rauth/distinfo =================================================================== --- head/devel/py-rauth/distinfo (revision 409320) +++ head/devel/py-rauth/distinfo (revision 409321) @@ -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 Index: head/devel/py-rauth/files/patch-setup.py =================================================================== --- head/devel/py-rauth/files/patch-setup.py (nonexistent) +++ head/devel/py-rauth/files/patch-setup.py (revision 409321) @@ -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, Property changes on: head/devel/py-rauth/files/patch-setup.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/devel/py-rauth/pkg-descr =================================================================== --- head/devel/py-rauth/pkg-descr (revision 409320) +++ head/devel/py-rauth/pkg-descr (revision 409321) @@ -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