diff --git a/astro/py-spiceypy/Makefile b/astro/py-spiceypy/Makefile index b54e13935708..6b1da4cb2886 100644 --- a/astro/py-spiceypy/Makefile +++ b/astro/py-spiceypy/Makefile @@ -1,32 +1,46 @@ PORTNAME= spiceypy DISTVERSIONPREFIX= v -DISTVERSION= 8.1.0 +DISTVERSION= 8.2.0 CATEGORIES= astro python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Python wrapper for the NAIF C SPICE Toolkit WWW= https://github.com/AndrewAnnex/SpiceyPy LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.16:math/py-numpy@${PY_FLAVOR} \ +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=2.0:math/py-numpy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-build-core>0:devel/py-scikit-build-core@${PY_FLAVOR} LIB_DEPENDS= libcspice.so:astro/cspice RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.23.5:math/py-numpy@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pandas>=2.2.2:math/py-pandas@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>0:devel/py-pytest-benchmark@${PY_FLAVOR} USES= cmake:indirect python USE_PYTHON= autoplist cython pep517 pytest USE_GITHUB= yes GH_ACCOUNT= AndrewAnnex GH_PROJECT= SpiceyPy TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_WRKSRC= ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} +TEST_ARGS= spiceypy -# Tests as of 8.1.0: many tests fail because they require SPICE kernels downloaded at runtime -# The test infrastructure has issues running offline, only test import during build +PYTEST_IGNORED_TESTS= test_wrapper test_context_manager test_gettestkernels test_cyice \ + test_no_loaded_files_exception test_no_loaded_files_exception_cyice + +post-patch: # pin the version and remove scikit-build-core dynamic-metadata that requires project.dynamic + @${REINPLACE_CMD} -e 's|^name = "spiceypy"|name = "spiceypy"\nversion = "${DISTVERSION}"|' \ + -e '/^dynamic = \["version"\]/d' \ + -e '/^# Scrape __version__/,/^# pytest things/d' \ + ${WRKSRC}/pyproject.toml + +# Tests as of 8.2.0: tests requiring SPICE kernels downloaded at runtime are ignored. +# The remaining tests run against the installed package so the compiled cyice extension is found. # See https://github.com/AndrewAnnex/SpiceyPy for details +# tests as of 8.2.0: 42 passed, 1074 deselected .include diff --git a/astro/py-spiceypy/distinfo b/astro/py-spiceypy/distinfo index 084464bd9a4d..5c324ded95bf 100644 --- a/astro/py-spiceypy/distinfo +++ b/astro/py-spiceypy/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1779691884 -SHA256 (AndrewAnnex-SpiceyPy-v8.1.0_GH0.tar.gz) = d7c79eb65e4c1400deea2a5d6a9f1e018ba13ed7f71d072a7b831dda2da971d9 -SIZE (AndrewAnnex-SpiceyPy-v8.1.0_GH0.tar.gz) = 648843 +TIMESTAMP = 1784957665 +SHA256 (AndrewAnnex-SpiceyPy-v8.2.0_GH0.tar.gz) = 159ae890341fda8ec8b5ac1b53176520cba13594d5c49dd3032d28e83061bd87 +SIZE (AndrewAnnex-SpiceyPy-v8.2.0_GH0.tar.gz) = 657932