pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/py-flask-wtf py-flask-wtf: simplify, update test d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e2652b06bb1b
branches:  trunk
changeset: 770062:e2652b06bb1b
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Nov 24 10:33:28 2021 +0000

description:
py-flask-wtf: simplify, update test dependencies

diffstat:

 www/py-flask-wtf/Makefile   |  15 ++++++++++-----
 www/py-flask-wtf/options.mk |  13 -------------
 2 files changed, 10 insertions(+), 18 deletions(-)

diffs (47 lines):

diff -r 1e720934398d -r e2652b06bb1b www/py-flask-wtf/Makefile
--- a/www/py-flask-wtf/Makefile Wed Nov 24 10:22:40 2021 +0000
+++ b/www/py-flask-wtf/Makefile Wed Nov 24 10:33:28 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2020/05/11 09:29:11 kleink Exp $
+# $NetBSD: Makefile,v 1.24 2021/11/24 10:33:28 wiz Exp $
 
 DISTNAME=      Flask-WTF-0.14.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:tl}
@@ -12,11 +12,16 @@
 
 USE_LANGUAGES= # empty
 
-.include "options.mk"
+DEPENDS+=              ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
+DEPENDS+=              ${PYPKGPREFIX}-wtforms>=1.0.5:../../www/py-wtforms
+TEST_DEPENDS+=         ${PYPKGPREFIX}-flask-babel-[0-9]*:../../www/py-flask-babel
+TEST_DEPENDS+=         ${PYPKGPREFIX}-flask-babelex-[0-9]*:../../www/py-flask-babelex
+TEST_DEPENDS+=         ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
 
-DEPENDS+=      ${PYPKGPREFIX}-flask-[0-9]*:../../www/py-flask
-DEPENDS+=      ${PYPKGPREFIX}-wtforms>=1.0.5:../../www/py-wtforms
-TEST_DEPENDS+= ${PYPKGPREFIX}-flask-babelex-[0-9]*:../../www/py-flask-babelex
+TEST_ENV+=             PYTHONPATH=${WRKSRC}/build/lib
+
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
 
 .include "../../lang/python/egg.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 1e720934398d -r e2652b06bb1b www/py-flask-wtf/options.mk
--- a/www/py-flask-wtf/options.mk       Wed Nov 24 10:22:40 2021 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-# $NetBSD: options.mk,v 1.2 2019/11/04 22:10:12 rillig Exp $
-
-PKG_OPTIONS_VAR=       PKG_OPTIONS.py-flask-wtf
-PKG_SUPPORTED_OPTIONS= tests
-PKG_SUGGESTED_OPTIONS+=        # blank
-
-.include "../../mk/bsd.options.mk"
-
-.if !empty(PKG_OPTIONS:Mtests)
-DEPENDS+=              ${PYPKGPREFIX}-flask-babel-[0-9]*:../../www/py-flask-babel
-DEPENDS+=              ${PYPKGPREFIX}-nose-[0-9]*:../../devel/py-nose
-PYSETUPBUILDTARGET=    test
-.endif



Home | Main Index | Thread Index | Old Index