Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Oct 2022 17:09:50 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 3c3127dcf807 - main - math/py-rustworkx: Add tests
Message-ID:  <202210211709.29LH9oKB031787@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3c3127dcf80739f858064cc199b4bf000a741ac2

commit 3c3127dcf80739f858064cc199b4bf000a741ac2
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-10-21 14:09:55 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
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 <vtkXRenderWindowInteractor.h>
+ #include <vtkXOpenGLRenderWindow.h>
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 <bsd.port.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210211709.29LH9oKB031787>