Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 1DE5C85918 for ; Sun, 29 Oct 2023 22:50:37 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id uIMHwBTXdFTz for ; Sun, 29 Oct 2023 22:50:36 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.netbsd.org [199.233.217.197]) by mail.netbsd.org (Postfix) with ESMTP id 21CBA84CC8 for ; Sun, 29 Oct 2023 22:50:36 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 1B8B5FADC; Sun, 29 Oct 2023 22:50:36 +0000 (UTC) Content-Transfer-Encoding: 7bit Content-Type: multipart/mixed; boundary="_----------=_169861983692990" MIME-Version: 1.0 Date: Sun, 29 Oct 2023 22:50:36 +0000 From: "Thomas Klausner" Subject: CVS commit: pkgsrc/lang/python To: pkgsrc-changes@NetBSD.org Approved: commit_and_comment Reply-To: wiz@netbsd.org X-Mailer: log_accum Message-Id: <20231029225036.1B8B5FADC@cvs.NetBSD.org> This is a multi-part message in MIME format. --_----------=_169861983692990 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Module Name: pkgsrc Committed By: wiz Date: Sun Oct 29 22:50:36 UTC 2023 Modified Files: pkgsrc/lang/python: wheel.mk Log Message: python: wheel.mk: add default test target using py-test If you want to define your own, define a do-test or set USE_PYTEST to no To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 pkgsrc/lang/python/wheel.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. --_----------=_169861983692990 Content-Disposition: inline Content-Length: 997 Content-Transfer-Encoding: binary Content-Type: text/x-diff; charset=us-ascii Modified files: Index: pkgsrc/lang/python/wheel.mk diff -u pkgsrc/lang/python/wheel.mk:1.10 pkgsrc/lang/python/wheel.mk:1.11 --- pkgsrc/lang/python/wheel.mk:1.10 Sat Oct 28 19:57:10 2023 +++ pkgsrc/lang/python/wheel.mk Sun Oct 29 22:50:35 2023 @@ -1,4 +1,4 @@ -# $NetBSD: wheel.mk,v 1.10 2023/10/28 19:57:10 wiz Exp $ +# $NetBSD: wheel.mk,v 1.11 2023/10/29 22:50:35 wiz Exp $ # # Build and install Python wheels # @@ -7,6 +7,9 @@ # WHEELFILE: path to the wheelfile to be installed # only needs to be set if do-build is redefined # +# USE_PYTEST: If set to yes, depend on py-test and use it for testing. +# Default: yes +# PY_PATCHPLIST?= yes @@ -33,4 +36,11 @@ do-install: --prefix ${PREFIX:Q} ${WHEELFILE} .endif +USE_PYTEST?= yes +.if !target(do-test) && ${USE_PYTEST:Myes} +TEST_DEPENDS+= ${PYPKGPREFIX}-test-[0-9]*:../../devel/py-test +do-test: + ${RUN} cd ${WRKSRC} && ${SETENV} ${TEST_ENV} pytest-${PYVERSSUFFIX} +.endif + .include "../../lang/python/extension.mk" --_----------=_169861983692990--