From nobody Fri Oct 21 17:09:50 2022 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 4Mv9v24YrLz4gCqT; Fri, 21 Oct 2022 17:09:50 +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 4Mv9v23zSHz45Yj; Fri, 21 Oct 2022 17:09:50 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666372190; 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=CfSM09iT0gsBCSawBUzmuF6K9J3phtMvXoA/WwEbMiM=; b=p/NhqViMmBPhOJ4OQ8V66Ja41msaramKhayz0aExAGvVOFicyY04MAVxozCGJJUS/Ef/0U 1/GBufjZTnMDhrquL5EtSCY/jY9YWw4rIY8Q483anVGOzzdXIyB/rNWrS02AOCn0C7kiU5 intx8c/9i4TqfdJzyDD3GimZHe/STvshO0T/nmeHFs6xuqYlwjZTcO6ss9eQw6+12CwJEE 6v6zWd+HAC6MvdTjJfDPo/tniJ1aYeHX5EF3GL8gjAXRKBjbZ4OIGoSmtEyqe0Tfh3CLJI zZ0WbtaXtNy8cLoxu9nZUAd63Ne9Ypv8brneEVE3bGbbAMKKAlFXafYoYOGAzA== 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 4Mv9v22wwZzH93; Fri, 21 Oct 2022 17:09:50 +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 29LH9oad031788; Fri, 21 Oct 2022 17:09:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29LH9oKB031787; Fri, 21 Oct 2022 17:09:50 GMT (envelope-from git) Date: Fri, 21 Oct 2022 17:09:50 GMT Message-Id: <202210211709.29LH9oKB031787@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 3c3127dcf807 - main - math/py-rustworkx: Add tests 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3c3127dcf80739f858064cc199b4bf000a741ac2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1666372190; 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=CfSM09iT0gsBCSawBUzmuF6K9J3phtMvXoA/WwEbMiM=; b=w+1/rJTYF17nbfe6BKVOLa0RkuGCZv5eF0whbymiFukbmLkiaZy+KvnnAFGJl3tywitiN5 EVbdtBPoJMSqTIHI7Yn4b5TFu/8nNjEvpV0HboPpRkQBrt5f2rFnRiA0WNRMGWesmkG2Vi zBqGcM1mR7+eQkcFfcrnrV31W7TmEdmd6Qdbb27xxk9EwGxBbQA67sSGbJZ7HAxHcqkTUT fSZ+csn1YP97nNV67N6G/O08yguMz56N+aklA7gvqEcUlL5DGZx4z6BvXpGp0LvhpRz/Jx HkI1csbUpL9TXm9mSEItHHdBmWm0E1bL50fQB76YD7Jzms+aNJ29UpKB7IL1eg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1666372190; a=rsa-sha256; cv=none; b=WC3H/r8BiNuknioE4RaZA8HER6AJ01e/05ZNQdVyhiaCl0yyXVoRIPn4wIzUHxaU5/nQFf WufgjW/2JYpwE1/I9pVlFaV1D2QNsA7BbjQcormXElKl9ul5lttb3CMb9OcD9S/Cepkxrn agZji2ZzeMRo9fr07fnuAsHHxNmYKP8Z15Sn+MccgYKsJzQw6odJLEC18oW4vgU4D0bH7E b6+oFsls4xMSgn3R8dZJASroMTM+LrEZszhFZ4pcw0WOeD6IJdK6B9ma55YJfbH1PDy4CF sIXCnbfKr2lMyHk/EbEI/Z4nPyHx+Sz9IyTWqgNEIPUpZU+quKxokkRzNZ6DBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=3c3127dcf80739f858064cc199b4bf000a741ac2 commit 3c3127dcf80739f858064cc199b4bf000a741ac2 Author: Yuri Victorovich AuthorDate: 2022-10-21 14:09:55 +0000 Commit: Yuri Victorovich CommitDate: 2022-10-21 17:09:47 +0000 math/py-rustworkx: Add tests --- .../files/patch-src_IVtkDraw_IVtkDraw__Interactor.cxx | 17 +++++++++++++++++ math/py-rustworkx/Makefile | 6 +++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/cad/opencascade/files/patch-src_IVtkDraw_IVtkDraw__Interactor.cxx b/cad/opencascade/files/patch-src_IVtkDraw_IVtkDraw__Interactor.cxx new file mode 100644 index 000000000000..e5b6146f4111 --- /dev/null +++ b/cad/opencascade/files/patch-src_IVtkDraw_IVtkDraw__Interactor.cxx @@ -0,0 +1,17 @@ +- workaround for https://gitlab.kitware.com/vtk/vtk/-/issues/18683 + +--- src/IVtkDraw/IVtkDraw_Interactor.cxx.orig 2021-10-30 11:13:52 UTC ++++ src/IVtkDraw/IVtkDraw_Interactor.cxx +@@ -26,6 +26,12 @@ + #ifdef AllValues + #undef AllValues + #endif ++#ifdef Status ++#undef Status ++#endif ++#ifdef Success ++#undef Success ++#endif + + #include + #include diff --git a/math/py-rustworkx/Makefile b/math/py-rustworkx/Makefile index b36d9d2875ee..c59fc439316f 100644 --- a/math/py-rustworkx/Makefile +++ b/math/py-rustworkx/Makefile @@ -13,9 +13,10 @@ LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools-rust>0:devel/py-setuptools-rust@${PY_FLAVOR} RUN_DEPENDS= ${PYNUMPY} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}tox>0:devel/py-tox@${PY_FLAVOR} USES= cargo python:3.7+ -USE_PYTHON= autoplist distutils pytest # unclear how to run tests, see https://github.com/Qiskit/rustworkx/issues/695 +USE_PYTHON= autoplist distutils USE_GITHUB= yes GH_ACCOUNT= Qiskit @@ -105,4 +106,7 @@ BINARY_ALIAS= python3=${PYTHON_CMD} post-install: @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/rustworkx/rustworkx.cpython-${PYTHON_SUFFIX}.so +do-test: + @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} tox -epy + .include