pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-fire



Module Name:    pkgsrc
Committed By:   wiz
Date:           Thu May 18 12:59:08 UTC 2023

Modified Files:
        pkgsrc/devel/py-fire: DESCR Makefile

Log Message:
py-fire: add missing TOOL dependency

Clean some pkglint and add some test dependencies, though tests
don't run with python 3.11 due to asyncio changes in that version


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/py-fire/DESCR
cvs rdiff -u -r1.2 -r1.3 pkgsrc/devel/py-fire/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-fire/DESCR
diff -u pkgsrc/devel/py-fire/DESCR:1.1 pkgsrc/devel/py-fire/DESCR:1.2
--- pkgsrc/devel/py-fire/DESCR:1.1      Thu May 18 12:01:03 2023
+++ pkgsrc/devel/py-fire/DESCR  Thu May 18 12:59:08 2023
@@ -2,5 +2,5 @@ Python Fire is a library for automatical
 interfaces (CLIs) with a single line of code.
 
 It will turn any Python module, class, object, function, etc.
-(any Python component will work!) into a CLI. It’s called Fire
+(any Python component will work!) into a CLI. It's called Fire
 because when you call Fire(), it fires off your command.

Index: pkgsrc/devel/py-fire/Makefile
diff -u pkgsrc/devel/py-fire/Makefile:1.2 pkgsrc/devel/py-fire/Makefile:1.3
--- pkgsrc/devel/py-fire/Makefile:1.2   Thu May 18 12:52:51 2023
+++ pkgsrc/devel/py-fire/Makefile       Thu May 18 12:59:08 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2023/05/18 12:52:51 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2023/05/18 12:59:08 wiz Exp $
 
 DISTNAME=      fire-0.5.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -10,12 +10,20 @@ HOMEPAGE=   https://pypi.org/project/fire
 COMMENT=       Python DFU tool for updating Nitrokeys' firmware
 LICENSE=       apache-2.0
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
 DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
 DEPENDS+=      ${PYPKGPREFIX}-termcolor-[0-9]*:../../devel/py-termcolor
+TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test
+TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
+TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
+TEST_DEPENDS+= ${PYPKGPREFIX}-Levenshtein-[0-9]*:../../textproc/py-Levenshtein
 
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
+do-test:
+       cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX}
+
 .include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index