svn commit: r409384 - in head/finance/py-stripe: . files
Kubilay Kocak
koobs at FreeBSD.org
Tue Feb 23 07:18:35 UTC 2016
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 at 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>
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 at 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",
More information about the svn-ports-all
mailing list