From nobody Thu Mar 9 04:25:15 2023 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PXGLg5GzZz3w5yp; Thu, 9 Mar 2023 04:25:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXGLg4jrRz3shH; Thu, 9 Mar 2023 04:25:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678335915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k1SrzrKRrYCGlp/niNhvnXnAZ+9Bs7LXD1ZdIcchQQU=; b=t2mE54uvzE/e5ilaV+54acSWHhf/ge7t7feKAbFWiLPY3zjNU1j0E5+KyIIvk9mj3vo08Z bNfPGLGSG+ejJRQnGmQNSPAdB7c0vdXen7Nw+LSlDZ+irFiIkhmjYg+6pwPPuqtgo5dn4a oZazXH0W+CMIBzlL9SCA2NK+n96TTddittkO+tz8R2Q3wfvSj5fOsb23rD5KArZwQ5oYMX itj1r7mqhwEnGLOH2+K2bYHZGz91CEfvLr/NgOSW9d/6C/7H05UHriuWUcc/SDPPYQ4leN zTLXG0n2u3VMGW+GsvCSvlmbf4aY6SdsVkL7B5D0wjMUhVw81BwrAdSpTuUWrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678335915; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=k1SrzrKRrYCGlp/niNhvnXnAZ+9Bs7LXD1ZdIcchQQU=; b=lygXEUGOqRJr63FuX+QL95o6bKXRknE6tGDgL61AXr4lbTXTnNGsIfi3c2DU/yIV+BMtpp QAi+GCt1oeHpAMgNAeJ1pviiJKJJ6RndNltja9vTbpg6d+COrHzIAjIQGX1YWLz37+FWyg y35lLzj6zHCzV1vkP5cEt01ptZKnHCqCwp3DgdfskPeHsDRHY6OTrEXowbLBP+Jbsnwok/ 1vrIrsy/iAOQZJgNRvyUzlGydYeI5DQZdWpeQo1HG4W1yHa9qIUTFYbCu6wduwkILEf68Y 9QiosF7gPAi9F68GvTcKDU5fujBD57GlcQzEYkST1exotju+gC1WyqDlWMei+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678335915; a=rsa-sha256; cv=none; b=O2ryJxEdALqFck8xgaLsKUTlvl4tbzXvm1xPpIVdqRqOkjQenDAiuqDOIvuelcfsc4uvRN phkONFJjxM6FXBbdYVkNupybMa3xxH6drXExruLnTIeZsWHsRQkPEq6WvfW+PjLnEUxlgm +vPi9cKA9/ohybKTN4TiaW2opDXAGGvFH58UgZ/ayuv/yceAP/NOA8NIj2wOzqK9Rmm/Yw mtyui+6mWS1/uWPOfCnrPFrK/NXOvwyKDcyEUDdnnB4TcV7JV/JCxNGl7C1/wTDhV5FZFQ yYB4Nd2Zob2KUOo8fWkqF6kP77AQclXfnh0CEojBrDGHaxGAOh1iuA3pUJtTRA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PXGLg3mSqzt1w; Thu, 9 Mar 2023 04:25:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3294PFsU030355; Thu, 9 Mar 2023 04:25:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3294PFMM030354; Thu, 9 Mar 2023 04:25:15 GMT (envelope-from git) Date: Thu, 9 Mar 2023 04:25:15 GMT Message-Id: <202303090425.3294PFMM030354@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Charlie Li Subject: git: 8731e3328335 - main - python.mk: add USE_PYTHON=cython_test List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vishwin X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8731e33283354423faea74ea96a6431d7441eaba Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by vishwin: URL: https://cgit.FreeBSD.org/ports/commit/?id=8731e33283354423faea74ea96a6431d7441eaba commit 8731e33283354423faea74ea96a6431d7441eaba Author: Charlie Li AuthorDate: 2023-03-09 04:24:47 +0000 Commit: Charlie Li CommitDate: 2023-03-09 04:24:47 +0000 python.mk: add USE_PYTHON=cython_test --- Mk/Uses/python.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mk/Uses/python.mk b/Mk/Uses/python.mk index 1ed76079cbc9..901261333b87 100644 --- a/Mk/Uses/python.mk +++ b/Mk/Uses/python.mk @@ -86,6 +86,8 @@ # # cython_run - Depend on lang/cython at run-time. # +# cython_test - Depend on lang/cython for tests. +# # flavors - Force creation of flavors for Python 2 and 3 default # versions, where applicable. # @@ -307,7 +309,7 @@ _PYTHON_BASECMD= ${LOCALBASE}/bin/python _PYTHON_RELPORTDIR= lang/python # List all valid USE_PYTHON features here -_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run \ +_VALID_PYTHON_FEATURES= allflavors autoplist concurrent cython cython_run cython_test \ distutils flavors noegginfo noflavors nose nose2 \ optsuffix pep517 py3kplist pytest pytest4 pythonprefix \ unittest unittest2 @@ -585,6 +587,10 @@ BUILD_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} RUN_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} . endif +. if defined(_PYTHON_FEATURE_CYTHON_TEST) +TEST_DEPENDS+= cython-${PYTHON_VER}:lang/cython@${PY_FLAVOR} +. endif + . if defined(_PYTHON_FEATURE_CONCURRENT) . if !defined(_PYTHON_FEATURE_FLAVORS) && (${_PYTHON_VERSION_MINIMUM:M3*} || ${_PYTHON_VERSION_MAXIMUM:M2*}) DEV_WARNING+= "USE_PYTHON=concurrent when only one of Python 2 or 3 is supported AND not using flavors does not make any sense"