svn commit: r396212 - in head/finance/py-stripe: . files
Kubilay Kocak
koobs at FreeBSD.org
Sun Sep 6 11:43:10 UTC 2015
Author: koobs
Date: Sun Sep 6 11:43:08 2015
New Revision: 396212
URL: https://svnweb.freebsd.org/changeset/ports/396212
Log:
finance/py-stripe: Update to 1.25.0
- Update to 1.25.0
- Switch to CHEESEHOP for distribution files (Geo-aware CDN)
- Canonicalize COMMENT (According to setup.py:description=)
- Switch to requests (2.x)
- Add TESTS option
- Update TEST_DEPENDS values and assignment
- Replace post-patch with a patch, submitted upstream [1]
- Use PYDISTUTILS_SETUP to ensure its setuptools wrapped
- Run pycurl tests that are disabled by default with this weird reverse
logic bit of code, issue created upstream [2]
if not os.environ.get('SKIP_PYCURL_TESTS'):
self.skipTest('Pycurl skipped as SKIP_PYCURL_TESTS is set'
[1] https://github.com/stripe/stripe-python/pull/170
[2] https://github.com/stripe/stripe-python/issues/172
QA: Ran 195 tests in 44.446s OK (skipped=9)
Added:
head/finance/py-stripe/files/
head/finance/py-stripe/files/patch-setup.py (contents, props changed)
Modified:
head/finance/py-stripe/Makefile
head/finance/py-stripe/distinfo
Modified: head/finance/py-stripe/Makefile
==============================================================================
--- head/finance/py-stripe/Makefile Sun Sep 6 10:58:41 2015 (r396211)
+++ head/finance/py-stripe/Makefile Sun Sep 6 11:43:08 2015 (r396212)
@@ -3,28 +3,32 @@
#
PORTNAME= stripe
-PORTVERSION= 1.9.8
-PORTREVISION= 2
+PORTVERSION= 1.25.0
CATEGORIES= finance python
-MASTER_SITES= https://code.stripe.com/stripe/
+MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs at FreeBSD.org
-COMMENT= Python bindings for the Stripe.com payment system
+COMMENT= Stripe Python bindings
LICENSE= MIT
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests1>=0.8.8:${PORTSDIR}/www/py-requests1
-TEST_DEPENDS:= ${RUN_DEPENDS}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=0.8.8:${PORTSDIR}/www/py-requests
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}curl>=7.19:${PORTSDIR}/ftp/py-curl \
+ ${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}
USES= python
USE_PYTHON= autoplist distutils
-NO_ARCH= yes
-post-patch:
- @${REINPLACE_CMD} "s|, '../VERSION'||" ${WRKSRC}/setup.py
+NO_ARCH= yes
regression-test: build
- @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test
+ @cd ${WRKSRC} && ${SETENV} SKIP_PYCURL_TESTS=no ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>
Modified: head/finance/py-stripe/distinfo
==============================================================================
--- head/finance/py-stripe/distinfo Sun Sep 6 10:58:41 2015 (r396211)
+++ head/finance/py-stripe/distinfo Sun Sep 6 11:43:08 2015 (r396212)
@@ -1,2 +1,2 @@
-SHA256 (stripe-1.9.8.tar.gz) = 6fa50635daf56340fda495b1cb6cbaeefea0b73ef3d1ef4e69cafe9437e52479
-SIZE (stripe-1.9.8.tar.gz) = 143137
+SHA256 (stripe-1.25.0.tar.gz) = f74090fe0e54209c45b143485fd1f9fa4e60d06bb94cd437a45161c9feef390a
+SIZE (stripe-1.25.0.tar.gz) = 175168
Added: head/finance/py-stripe/files/patch-setup.py
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/finance/py-stripe/files/patch-setup.py Sun Sep 6 11:43:08 2015 (r396212)
@@ -0,0 +1,11 @@
+--- setup.py.orig 2015-09-06 11:22:57 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']},
+ install_requires=install_requires,
+ test_suite='stripe.test.all',
+ use_2to3=True,
More information about the svn-ports-all
mailing list