aboutsummaryrefslogtreecommitdiff
path: root/science
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-06-08 02:34:06 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-06-08 02:40:00 +0000
commit09ff1e738916531d81507197c1b0fb546a628fad (patch)
treebc37f3edb0915d0fbe80794cbdc31ba0f492cbb2 /science
parentc8081216224a32f8826f1d265cfbb5d301d988c7 (diff)
science/py-dipy: Update 1.6.0 → 1.7.0
Also add the test target. Reported by: portscout
Diffstat (limited to 'science')
-rw-r--r--science/py-dipy/Makefile21
-rw-r--r--science/py-dipy/distinfo6
2 files changed, 19 insertions, 8 deletions
diff --git a/science/py-dipy/Makefile b/science/py-dipy/Makefile
index b92edeb48802..81012019f4e4 100644
--- a/science/py-dipy/Makefile
+++ b/science/py-dipy/Makefile
@@ -1,6 +1,5 @@
PORTNAME= dipy
-DISTVERSION= 1.6.0
-PORTREVISION= 1
+DISTVERSION= 1.7.0
CATEGORIES= science python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -12,20 +11,32 @@ WWW= https://dipy.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
-PY_DEPENDS= ${PYNUMPY} \
- ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
+PY_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h5py>0:science/py-h5py@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}nibabel>0:science/py-nibabel@${PY_FLAVOR} \
+ ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR}
BUILD_DEPENDS= ${PY_DEPENDS}
RUN_DEPENDS= ${PY_DEPENDS}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}scikit-learn>0:science/py-scikit-learn@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}statsmodels>0:math/py-statsmodels@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}tables>0:devel/py-tables@${PY_FLAVOR} # "ml" extra dependencies, see dipy/info.py
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}fury>0:graphics/py-fury@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}matplotlib>0:math/py-matplotlib@${PY_FLAVOR} # "viz" extra dependencies, see dipy/info.py
+TEST_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cvxpy>0:math/py-cvxpy@${PY_FLAVOR} # "doc" extra dependencies, see dipy/info.py
-USES= python:3.7+
+USES= python:3.7+ shebangfix
USE_PYTHON= distutils cython concurrent autoplist pytest # pkg-plist also exists and contains files missing from the python-generated plist
+SHEBANG_GLOB= *.sh
+
TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/*/*.so
+do-test:
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} tools/ci/run_tests.sh
+
.include <bsd.port.mk>
diff --git a/science/py-dipy/distinfo b/science/py-dipy/distinfo
index fdcc81039ef7..d31d0a143861 100644
--- a/science/py-dipy/distinfo
+++ b/science/py-dipy/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1674023932
-SHA256 (dipy-1.6.0.tar.gz) = 41a8487689ddff32f6c45bd046548f9c89a66306779c57c64d7f31400cc4fd6d
-SIZE (dipy-1.6.0.tar.gz) = 12070889
+TIMESTAMP = 1686151055
+SHA256 (dipy-1.7.0.tar.gz) = 59bb647128aae7793215c813bb8ea35dae260ac9f0d938c724064f0af5a05cc3
+SIZE (dipy-1.7.0.tar.gz) = 12389209