Fri Oct 7 22:09:31 2022 UTC ()
py-music21: add a test target


(gutteridge)
diff -r1.20 -r1.21 pkgsrc/audio/py-music21/Makefile

cvs diff -r1.20 -r1.21 pkgsrc/audio/py-music21/Makefile (expand / switch to unified diff)

--- pkgsrc/audio/py-music21/Makefile 2022/10/07 03:54:06 1.20
+++ pkgsrc/audio/py-music21/Makefile 2022/10/07 22:09:31 1.21
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.20 2022/10/07 03:54:06 gutteridge Exp $ 1# $NetBSD: Makefile,v 1.21 2022/10/07 22:09:31 gutteridge Exp $
2 2
3VERSION= 8.1.0 3VERSION= 8.1.0
4DISTNAME= music21-noCorpus-${VERSION} 4DISTNAME= music21-noCorpus-${VERSION}
5PKGNAME= ${PYPKGPREFIX}-music21-${VERSION} 5PKGNAME= ${PYPKGPREFIX}-music21-${VERSION}
6CATEGORIES= audio python 6CATEGORIES= audio python
7MASTER_SITES= ${MASTER_SITE_GITHUB:=cuthbertLab/} 7MASTER_SITES= ${MASTER_SITE_GITHUB:=cuthbertLab/}
8GITHUB_PROJECT= music21 8GITHUB_PROJECT= music21
9GITHUB_RELEASE= v${VERSION} 9GITHUB_RELEASE= v${VERSION}
10 10
11MAINTAINER= gutteridge@NetBSD.org 11MAINTAINER= gutteridge@NetBSD.org
12HOMEPAGE= https://github.com/cuthbertLab/music21 12HOMEPAGE= https://github.com/cuthbertLab/music21
13COMMENT= Python toolkit for computer-aided musical analysis 13COMMENT= Python toolkit for computer-aided musical analysis
14LICENSE= modified-bsd 14LICENSE= modified-bsd
@@ -22,18 +22,22 @@ DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:.. @@ -22,18 +22,22 @@ DEPENDS+= ${PYPKGPREFIX}-scipy-[0-9]*:..
22DEPENDS+= ${PYPKGPREFIX}-Levenshtein-[0-9]*:../../textproc/py-Levenshtein 22DEPENDS+= ${PYPKGPREFIX}-Levenshtein-[0-9]*:../../textproc/py-Levenshtein
23DEPENDS+= ${PYPKGPREFIX}-jsonpickle-[0-9]*:../../textproc/py-jsonpickle 23DEPENDS+= ${PYPKGPREFIX}-jsonpickle-[0-9]*:../../textproc/py-jsonpickle
24DEPENDS+= ${PYPKGPREFIX}-webcolors>=1.11:../../www/py-webcolors 24DEPENDS+= ${PYPKGPREFIX}-webcolors>=1.11:../../www/py-webcolors
25 25
26# Many tests will fail because they depend on the score files that 26# Many tests will fail because they depend on the score files that
27# are part of the full music21 distribution. 27# are part of the full music21 distribution.
28TEST_DEPENDS+= ${PYPKGPREFIX}-guppy3-[0-9]*:../../devel/py-guppy3 28TEST_DEPENDS+= ${PYPKGPREFIX}-guppy3-[0-9]*:../../devel/py-guppy3
29 29
30USE_LANGUAGES= # none 30USE_LANGUAGES= # none
31 31
32# This package now only supports >= 3.8. (Same with its scipy dependency.) 32# This package now only supports >= 3.8. (Same with its scipy dependency.)
33PYTHON_VERSIONS_INCOMPATIBLE= 27 37 33PYTHON_VERSIONS_INCOMPATIBLE= 27 37
34 34
 35# NB lilypond must be installed in order to run the full test suite.
 36do-test:
 37 PYTHONPATH=${WRKSRC} ${PYTHONBIN} -c 'from music21.test.testSingleCoreAll import ciMain as ci; ci()'
 38
35.include "options.mk" 39.include "options.mk"
36 40
37.include "../../lang/python/wheel.mk" 41.include "../../lang/python/wheel.mk"
38.include "../../math/py-numpy/buildlink3.mk" 42.include "../../math/py-numpy/buildlink3.mk"
39.include "../../mk/bsd.pkg.mk" 43.include "../../mk/bsd.pkg.mk"