From owner-svn-ports-all@freebsd.org Tue Feb 23 07:18:35 2016 Return-Path: Delivered-To: svn-ports-all@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 06278AB1C45; Tue, 23 Feb 2016 07:18:35 +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 D4CC287A; Tue, 23 Feb 2016 07:18:34 +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 u1N7IXLR084331; Tue, 23 Feb 2016 07:18:33 GMT (envelope-from koobs@FreeBSD.org) Received: (from koobs@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u1N7IX7t084328; Tue, 23 Feb 2016 07:18:33 GMT (envelope-from koobs@FreeBSD.org) Message-Id: <201602230718.u1N7IX7t084328@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: koobs set sender to koobs@FreeBSD.org using -f From: Kubilay Kocak Date: Tue, 23 Feb 2016 07:18:33 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r409384 - in head/finance/py-stripe: . 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.20 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: Tue, 23 Feb 2016 07:18:35 -0000 Author: koobs Date: Tue Feb 23 07:18:33 2016 New Revision: 409384 URL: https://svnweb.freebsd.org/changeset/ports/409384 Log: finance/py-stripe: Update to 1.29.1, Modernize - Update PORTVERSION and distinfo checksum (1.29.1) - Add LICENSE_FILE - Update TEST depends and test target - Update test target environment variable [1] - Remove TESTS option bits accordingly - Patch setup.py tests_require to allow the latest version of mock [2] - Remove patch to setup.py:package_data (upstreamed) [3] Changes: https://github.com/stripe/stripe-python/blob/v1.29.1/CHANGELOG [1] https://github.com/stripe/stripe-python/issues/172 [2] https://github.com/stripe/stripe-python/issues/205 [3] https://github.com/stripe/stripe-python/pull/170 Modified: head/finance/py-stripe/Makefile head/finance/py-stripe/distinfo head/finance/py-stripe/files/patch-setup.py Modified: head/finance/py-stripe/Makefile ============================================================================== --- head/finance/py-stripe/Makefile Tue Feb 23 06:45:30 2016 (r409383) +++ head/finance/py-stripe/Makefile Tue Feb 23 07:18:33 2016 (r409384) @@ -3,8 +3,7 @@ # PORTNAME= stripe -PORTVERSION= 1.25.0 -PORTREVISION= 1 +PORTVERSION= 1.29.1 CATEGORIES= finance python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -13,23 +12,19 @@ MAINTAINER= koobs@FreeBSD.org COMMENT= Stripe Python bindings LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0.8.8:${PORTSDIR}/www/py-requests TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pycurl>=7.19:${PORTSDIR}/ftp/py-pycurl \ - ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock - -OPTIONS_DEFINE= TESTS - -TESTS_DESC= Install test suite requirements -TESTS_BUILD_DEPENDS= ${RUN_DEPENDS} \ - ${TEST_DEPENDS} + ${PYTHON_PKGNAMEPREFIX}mock>=1.0.1:${PORTSDIR}/devel/py-mock \ + ${PYTHON_PKGNAMEPREFIX}unittest2>0:${PORTSDIR}/devel/py-unittest2 USES= python USE_PYTHON= autoplist distutils NO_ARCH= yes -regression-test: build - @cd ${WRKSRC} && ${SETENV} SKIP_PYCURL_TESTS=no ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test +do-test: + @cd ${WRKSRC} && ${SETENV} STRIPE_TEST_PYCURL=yes ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test .include Modified: head/finance/py-stripe/distinfo ============================================================================== --- head/finance/py-stripe/distinfo Tue Feb 23 06:45:30 2016 (r409383) +++ head/finance/py-stripe/distinfo Tue Feb 23 07:18:33 2016 (r409384) @@ -1,2 +1,2 @@ -SHA256 (stripe-1.25.0.tar.gz) = f74090fe0e54209c45b143485fd1f9fa4e60d06bb94cd437a45161c9feef390a -SIZE (stripe-1.25.0.tar.gz) = 175168 +SHA256 (stripe-1.29.1.tar.gz) = 61b98cec0f10888a3a5ea1096cb0fcc040541d627df0089fc0400ec2c81d7471 +SIZE (stripe-1.29.1.tar.gz) = 176656 Modified: head/finance/py-stripe/files/patch-setup.py ============================================================================== --- head/finance/py-stripe/files/patch-setup.py Tue Feb 23 06:45:30 2016 (r409383) +++ head/finance/py-stripe/files/patch-setup.py Tue Feb 23 07:18:33 2016 (r409384) @@ -1,11 +1,15 @@ ---- setup.py.orig 2015-09-06 11:22:57 UTC +# Use latest mock for tests +# Fix two test failures with latest mock #205 +# https://github.com/stripe/stripe-python/issues/205 + +--- setup.py.orig 2016-02-22 10:32:35 UTC +++ setup.py -@@ -54,7 +54,7 @@ setup( - author_email='support@stripe.com', - url='https://github.com/stripe/stripe-python', - packages=['stripe', 'stripe.test'], -- package_data={'stripe': ['data/ca-certificates.crt', '../VERSION']}, -+ package_data={'stripe': ['data/ca-certificates.crt']}, +@@ -57,7 +57,7 @@ setup( + package_data={'stripe': ['data/ca-certificates.crt']}, install_requires=install_requires, test_suite='stripe.test.all', +- tests_require=['unittest2', 'mock == 1.0.1'], ++ tests_require=['unittest2', 'mock>=1.0.1'], use_2to3=True, + classifiers=[ + "Development Status :: 5 - Production/Stable",