summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2017-12-12 10:07:26 +0000
committeradam <adam@pkgsrc.org>2017-12-12 10:07:26 +0000
commitb95e62e2a5f41ef49e858a98f7e67cabce6c8aa8 (patch)
tree44ffaba7743be637a29768e8999c46bbf310e136 /www
parentdb3cce1f264bce91cdfd26913e16f7c24a7342cb (diff)
downloadpkgsrc-b95e62e2a5f41ef49e858a98f7e67cabce6c8aa8.tar.gz
py-flask-testing: updated to 0.6.2
Version 0.6.2: * Add support for OS chosen port in LiveServerTestCase * Better error messages when missing required modules * assertRedirects now supports all valid redirect codes as specified in the HTTP protocol * Fixed bug that caused TypeError instead of AssertionError when testing against used templates * Fixed bug in assertRedirects where the location was not being checked properly
Diffstat (limited to 'www')
-rw-r--r--www/py-flask-testing/Makefile16
-rw-r--r--www/py-flask-testing/distinfo11
-rw-r--r--www/py-flask-testing/options.mk15
-rw-r--r--www/py-flask-testing/patches/patch-setup.py15
4 files changed, 32 insertions, 25 deletions
diff --git a/www/py-flask-testing/Makefile b/www/py-flask-testing/Makefile
index 29a40f6963e..1e1db4f4cd2 100644
--- a/www/py-flask-testing/Makefile
+++ b/www/py-flask-testing/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.9 2017/09/16 19:27:23 wiz Exp $
+# $NetBSD: Makefile,v 1.10 2017/12/12 10:07:26 adam Exp $
-DISTNAME= Flask-Testing-0.6.1
+DISTNAME= Flask-Testing-0.6.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES= python www
+CATEGORIES= www python
MASTER_SITES= ${MASTER_SITE_PYPI:=F/Flask-Testing/}
MAINTAINER= pkgsrc-users@NetBSD.org
@@ -10,9 +10,15 @@ HOMEPAGE= https://github.com/jarus/flask-testing
COMMENT= Unit testing for Flask
LICENSE= modified-bsd
-USE_LANGUAGES= # none
+DEPENDS+= ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
+# TEST_DEPENDS
+BUILD_DEPENDS+= ${PYPKGPREFIX}-blinker-[0-9]*:../../devel/py-blinker
+.include "../../lang/python/pyversion.mk"
+.if "${PYPKGPREFIX}" == "py27"
+BUILD_DEPENDS+= ${PYPKGPREFIX}-twill-[0-9]*:../../www/py-twill
+.endif
-.include "options.mk"
+USE_LANGUAGES= # none
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/www/py-flask-testing/distinfo b/www/py-flask-testing/distinfo
index bc828e4b426..bc7f801a77f 100644
--- a/www/py-flask-testing/distinfo
+++ b/www/py-flask-testing/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.4 2017/01/12 12:03:02 rodent Exp $
+$NetBSD: distinfo,v 1.5 2017/12/12 10:07:26 adam Exp $
-SHA1 (Flask-Testing-0.6.1.tar.gz) = 3f087821c11279fc1270a3a24bb7bb848eb08bbb
-RMD160 (Flask-Testing-0.6.1.tar.gz) = d86b1c5cb835d96f822d670da41f3fe25da2dfed
-SHA512 (Flask-Testing-0.6.1.tar.gz) = f7a0a89885693f568e8e03a9ae689add3b9577517faa6b842bb6b990a2be447ecb9ccf693dd5279ca98dfcc8b18e2041fccf0cf36c28cea5fdc0dbdc9b64f065
-Size (Flask-Testing-0.6.1.tar.gz) = 42541 bytes
+SHA1 (Flask-Testing-0.6.2.tar.gz) = 83ec46ab013a3a3933493f0c11eaaec5227eb8a8
+RMD160 (Flask-Testing-0.6.2.tar.gz) = c33e390984329159213c9c8c00ba31a006bcf880
+SHA512 (Flask-Testing-0.6.2.tar.gz) = 1ce6a32f2c4e2d6d39c0bd2f01b8d20e2ee8faa5cb31d308bbcda2159f8307cc42f445e328a3752c3c3c66f4fffef75b400c70954b1aeb1aabab8a54c565b5ce
+Size (Flask-Testing-0.6.2.tar.gz) = 129078 bytes
+SHA1 (patch-setup.py) = fe943d9be269ff42100b0185ad7ed476b0326c0a
diff --git a/www/py-flask-testing/options.mk b/www/py-flask-testing/options.mk
deleted file mode 100644
index 5d88b1eb035..00000000000
--- a/www/py-flask-testing/options.mk
+++ /dev/null
@@ -1,15 +0,0 @@
-# $NetBSD: options.mk,v 1.1 2014/05/03 02:13:35 rodent Exp $
-
-PKG_OPTIONS_VAR= PKG_OPTIONS.py-flask-testing
-PKG_SUPPORTED_OPTIONS= tests
-PKG_SUGGESTED_OPTIONS+= # blank
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mtests)
-DEPENDS+= ${PYPKGPREFIX}-blinker-[0-9]*:../../devel/py-blinker
-.include "../../lang/python/pyversion.mk"
-.if ${PYPACKAGE:C/([0-9])[0-9]/\1/1} == "python2"
-DEPENDS+= ${PYPKGPREFIX}-twill-[0-9]*:../../www/py-twill
-.endif
-.endif
diff --git a/www/py-flask-testing/patches/patch-setup.py b/www/py-flask-testing/patches/patch-setup.py
new file mode 100644
index 00000000000..e2e38f0b8ba
--- /dev/null
+++ b/www/py-flask-testing/patches/patch-setup.py
@@ -0,0 +1,15 @@
+$NetBSD: patch-setup.py,v 1.1 2017/12/12 10:07:27 adam Exp $
+
+Allow newer py-twill.
+
+--- setup.py.orig 2017-12-12 10:03:22.000000000 +0000
++++ setup.py
+@@ -23,7 +23,7 @@ install_requires = [
+ ]
+
+ if sys.version_info[0] < 3:
+- tests_require.append('twill==0.9.1')
++ tests_require.append('twill>=0.9.1')
+
+ if sys.version_info < (2, 6):
+ tests_require.append('simplejson')