Skip to content

Commit

Permalink
finance/py-stripe: Update to 1.29.1, Modernize
Browse files Browse the repository at this point in the history
- 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] stripe/stripe-python#172
[2] stripe/stripe-python#205
[3] stripe/stripe-python#170


git-svn-id: svn+ssh://svn.freebsd.org/ports/head@409384 35697150-7ecd-e111-bb59-0022644237b5
  • Loading branch information
koobs committed Feb 23, 2016
1 parent 19c0d77 commit 5d9d4b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 20 deletions.
17 changes: 6 additions & 11 deletions finance/py-stripe/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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>
4 changes: 2 additions & 2 deletions finance/py-stripe/distinfo
Original file line number Diff line number Diff line change
@@ -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
18 changes: 11 additions & 7 deletions finance/py-stripe/files/patch-setup.py
Original file line number Diff line number Diff line change
@@ -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",

0 comments on commit 5d9d4b3

Please sign in to comment.