summaryrefslogtreecommitdiff
path: root/finance/py-stripe
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2016-02-23 07:18:33 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2016-02-23 07:18:33 +0000
commitdd6f726e17622c108fb5a19bf18d31b18c2df022 (patch)
tree72314b2fff822fd912689e30930c6e592477b902 /finance/py-stripe
parent. Update to 5.0.2. (diff)
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
Notes
Notes: svn path=/head/; revision=409384
Diffstat (limited to 'finance/py-stripe')
-rw-r--r--finance/py-stripe/Makefile17
-rw-r--r--finance/py-stripe/distinfo4
-rw-r--r--finance/py-stripe/files/patch-setup.py18
3 files changed, 19 insertions, 20 deletions
diff --git a/finance/py-stripe/Makefile b/finance/py-stripe/Makefile
index 61b68d7806a3..abfb60203a45 100644
--- a/finance/py-stripe/Makefile
+++ b/finance/py-stripe/Makefile
@@ -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 <bsd.port.mk>
diff --git a/finance/py-stripe/distinfo b/finance/py-stripe/distinfo
index d951a7a952a4..8e2a7044e9dd 100644
--- a/finance/py-stripe/distinfo
+++ b/finance/py-stripe/distinfo
@@ -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
diff --git a/finance/py-stripe/files/patch-setup.py b/finance/py-stripe/files/patch-setup.py
index 07f5c1894c82..9413f062c7a6 100644
--- a/finance/py-stripe/files/patch-setup.py
+++ b/finance/py-stripe/files/patch-setup.py
@@ -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",