mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
math/py-rustworkx: Add tests
This commit is contained in:
parent
bedd5ac5f9
commit
3c3127dcf8
@ -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>
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user