diff --git a/devel/py-pybind11/Makefile b/devel/py-pybind11/Makefile index 35f31a599027..fbe3088fb65a 100644 --- a/devel/py-pybind11/Makefile +++ b/devel/py-pybind11/Makefile @@ -1,22 +1,34 @@ PORTNAME= pybind11 -DISTVERSION= 3.0.4 +DISTVERSION= 3.1.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= yuri@FreeBSD.org COMMENT= Seamless interoperability between C++11 and Python WWW= https://pybind11.readthedocs.io/en/stable/ \ https://github.com/pybind/pybind11 LICENSE= BSD3CLAUSE BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}scikit-build-core>0:devel/py-scikit-build-core@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=7,1:devel/py-pytest@${PY_FLAVOR} \ + cmake:devel/cmake USES= cmake:indirect python USE_PYTHON= pep517 concurrent autoplist pytest +TEST_ENV= ${MAKE_ENV} \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}:${WRKSRC}/build/tests + NO_ARCH= yes +do-test: + @cd ${WRKSRC} && \ + ${SETENV} ${TEST_ENV} cmake -S . -B build -D PYBIND11_TEST=ON && \ + ${SETENV} ${TEST_ENV} cmake --build build --target pytest + +# tests as of 3.1.0: 1319 passed, 26 skipped, 3 xfailed, 1 xpassed in 14.95s + .include diff --git a/devel/py-pybind11/distinfo b/devel/py-pybind11/distinfo index aacdf356cff4..c486cb74ec7b 100644 --- a/devel/py-pybind11/distinfo +++ b/devel/py-pybind11/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1776582500 -SHA256 (pybind11-3.0.4.tar.gz) = 3286b59c8a774b9ee650169302dd5a4eedc30a8617905a0560dd8ee44775130c -SIZE (pybind11-3.0.4.tar.gz) = 589533 +TIMESTAMP = 1786082923 +SHA256 (pybind11-3.1.0.tar.gz) = a1cc06b524ab3edca51f8ad3895f9c4fa20b8b19283173dff4ae781449dc9639 +SIZE (pybind11-3.1.0.tar.gz) = 603746 diff --git a/devel/pybind11/Makefile b/devel/pybind11/Makefile index 278e34d7e23f..97bf7363891c 100644 --- a/devel/pybind11/Makefile +++ b/devel/pybind11/Makefile @@ -1,31 +1,31 @@ PORTNAME= pybind11 DISTVERSIONPREFIX= v -DISTVERSION= 3.0.4 +DISTVERSION= 3.1.0 CATEGORIES= devel python MAINTAINER= yuri@FreeBSD.org COMMENT= Seamless interoperability between C++11 and Python (cmake part) WWW= https://pybind11.readthedocs.io/en/stable/ \ https://github.com/pybind/pybind11 LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE TEST_DEPENDS= pytest:devel/py-pytest@${PY_FLAVOR} USES= cmake:testing compiler:c++11-lang python:build USE_GITHUB= yes GH_ACCOUNT= pybind CMAKE_OFF= PYBIND11_TEST CMAKE_ARGS= -Dprefix_for_pc_file=${PREFIX} CMAKE_TESTING_ON= PYBIND11_TEST # 6 tests are known to fail: https://github.com/pybind/pybind11/issues/4580 CMAKE_TESTING_TARGET= pytest NO_ARCH= yes -# tests as of 3.0.4: 1291 passed, 27 skipped, 3 xfailed, 1 xpassed in 22.92s +# tests as of 3.1.0: 1319 passed, 26 skipped, 3 xfailed, 1 xpassed in 21.73s .include diff --git a/devel/pybind11/distinfo b/devel/pybind11/distinfo index 7b7649b13dc1..3e8f89d3addf 100644 --- a/devel/pybind11/distinfo +++ b/devel/pybind11/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1776579996 -SHA256 (pybind-pybind11-v3.0.4_GH0.tar.gz) = 74b6a2c2b4573a400cafb6ecbf60c98df300cd3d0041296b913d02b2cbbb2676 -SIZE (pybind-pybind11-v3.0.4_GH0.tar.gz) = 966373 +TIMESTAMP = 1786082323 +SHA256 (pybind-pybind11-v3.1.0_GH0.tar.gz) = ef712655692a2e9bf7bb7874c022564a45f91d847ddee987e720cd9e28849665 +SIZE (pybind-pybind11-v3.1.0_GH0.tar.gz) = 984694 diff --git a/devel/pybind11/pkg-plist b/devel/pybind11/pkg-plist index 02c7f0c45711..ebc2634c2e12 100644 --- a/devel/pybind11/pkg-plist +++ b/devel/pybind11/pkg-plist @@ -1,63 +1,64 @@ include/pybind11/attr.h include/pybind11/buffer_info.h include/pybind11/cast.h include/pybind11/chrono.h include/pybind11/common.h include/pybind11/complex.h include/pybind11/conduit/README.txt include/pybind11/conduit/pybind11_conduit_v1.h include/pybind11/conduit/pybind11_platform_abi_id.h include/pybind11/conduit/wrap_include_python_h.h include/pybind11/critical_section.h include/pybind11/detail/argument_vector.h include/pybind11/detail/class.h include/pybind11/detail/common.h include/pybind11/detail/cpp_conduit.h include/pybind11/detail/descr.h include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h include/pybind11/detail/exception_translation.h include/pybind11/detail/function_record_pyobject.h +include/pybind11/detail/function_ref.h include/pybind11/detail/holder_caster_foreign_helpers.h include/pybind11/detail/init.h include/pybind11/detail/internals.h include/pybind11/detail/native_enum_data.h include/pybind11/detail/pybind11_namespace_macros.h include/pybind11/detail/struct_smart_holder.h include/pybind11/detail/type_caster_base.h include/pybind11/detail/typeid.h include/pybind11/detail/using_smart_holder.h include/pybind11/detail/value_and_holder.h include/pybind11/eigen.h include/pybind11/eigen/common.h include/pybind11/eigen/matrix.h include/pybind11/eigen/tensor.h include/pybind11/embed.h include/pybind11/eval.h include/pybind11/functional.h include/pybind11/gil.h include/pybind11/gil_safe_call_once.h include/pybind11/gil_simple.h include/pybind11/iostream.h include/pybind11/native_enum.h include/pybind11/numpy.h include/pybind11/operators.h include/pybind11/options.h include/pybind11/pybind11.h include/pybind11/pytypes.h include/pybind11/stl.h include/pybind11/stl/filesystem.h include/pybind11/stl_bind.h include/pybind11/subinterpreter.h include/pybind11/trampoline_self_life_support.h include/pybind11/type_caster_pyobject_ptr.h include/pybind11/typing.h include/pybind11/warnings.h libdata/pkgconfig/pybind11.pc share/cmake/pybind11/FindPythonLibsNew.cmake share/cmake/pybind11/pybind11Common.cmake share/cmake/pybind11/pybind11Config.cmake share/cmake/pybind11/pybind11ConfigVersion.cmake share/cmake/pybind11/pybind11GuessPythonExtSuffix.cmake share/cmake/pybind11/pybind11NewTools.cmake share/cmake/pybind11/pybind11Targets.cmake share/cmake/pybind11/pybind11Tools.cmake diff --git a/science/py-scipy/Makefile b/science/py-scipy/Makefile index 75dbe9bf6106..418b1aabf351 100644 --- a/science/py-scipy/Makefile +++ b/science/py-scipy/Makefile @@ -1,98 +1,99 @@ PORTNAME= scipy DISTVERSION= 1.17.1 -PORTREVISION= 3 +PORTREVISION= 4 PORTEPOCH= 1 CATEGORIES= science python MASTER_SITES= https://docs.scipy.org/doc/${PORTNAME}-1.17.0/:doc \ PYPI:source \ SF:source PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:source \ scipy-html-1.17.0.zip:doc EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= python@FreeBSD.org COMMENT= Scientific tools for Python WWW= https://www.scipy.org/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}meson-python>=0.15.0:devel/meson-python@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pybind11>=2.13.2:devel/py-pybind11@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pythran>=0.14.0:devel/py-pythran@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}numpy>=1.26.4:math/py-numpy@${PY_FLAVOR} \ boost-libs>=1.89.0:devel/boost-libs LIB_DEPENDS= libqhull_r.so:math/qhull RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}numpy>=1.26.4:math/py-numpy@${PY_FLAVOR} TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-cov>0:devel/py-pytest-cov@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>0:devel/py-pytest-timeout@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}asv>0:benchmarks/py-asv@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}mpmath>0:math/py-mpmath@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}gmpy2>0:math/py-gmpy2@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}threadpoolctl>0:devel/py-threadpoolctl@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}scikit-umfpack>0:math/py-scikit-umfpack@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}pooch>0:devel/py-pooch@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}hypothesis>=6.30:devel/py-hypothesis@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}array-api-strict>=2.3.1:devel/py-array-api-strict@${PY_FLAVOR} USES= compiler:c++17-lang cpe fortran pkgconfig python:3.11+ shebangfix USE_PYTHON= autoplist concurrent cython pep517 pytest PEP517_BUILD_CONFIG_SETTING= -Csetup-args=-Duse-system-libraries=all TEST_WRKSRC= ${WRKDIR} TEST_ARGS= --pyargs scipy PYTEST_BROKEN_TESTS= test_threading BINARY_ALIAS= cython=cython-${PYTHON_VER} \ f2py=f2py-${PYTHON_VER} \ pybind11-config=pybind11-config-${PYTHON_VER} \ pythran=pythran-${PYTHON_VER} PORTDOCS= * OPTIONS_DEFINE= DOCS OPTIONS_SINGLE= BLASLIB OPTIONS_SINGLE_BLASLIB= BLIS FLEXIBLAS NETLIB OPENBLAS OPTIONS_DEFAULT= OPENBLAS BLIS_DESC= BLIS BLAS-like implementation FLEXIBLAS_DESC= FlexiBLAS BLAS implementation BLIS_USES= blaslapack:blis BLIS_VARS= PEP517_BUILD_CONFIG_SETTING+="-Csetup-args=-Dblas=blis -Csetup-args=-Dlapack=flame" BLIS_BROKEN= math/libflame does not provide a pkg-config file FLEXIBLAS_USES= blaslapack:flexiblas FLEXIBLAS_VARS= PEP517_BUILD_CONFIG_SETTING+="-Csetup-args=-Dblas=flexiblas -Csetup-args=-Dlapack=flexiblas" NETLIB_USES= blaslapack:netlib NETLIB_VARS= PEP517_BUILD_CONFIG_SETTING+="-Csetup-args=-Dblas=blas -Csetup-args=-Dlapack=lapack" OPENBLAS_USES= blaslapack:openblas OPENBLAS_VARS= PEP517_BUILD_CONFIG_SETTING+="-Csetup-args=-Dblas=openblas -Csetup-args=-Dlapack=openblas" .include # clang crashes (XSCMPUQP requires Power9) building IEEE-128 long double at # -O1+ on the powerpc64le POWER8 baseline; build at -O0. CPUTYPE (POWER9+) is fine. .if ${ARCH} == powerpc64le && !defined(CPUTYPE) && ${OSVERSION} >= 1600019 CFLAGS+= -O0 .endif post-patch: @${REINPLACE_CMD} -e 's|pythran>=0.14.0,<0.19.0|pythran>=0.14.0|' \ -e 's|Cython>=3.0.8,<3.3.0|Cython>=3.0.8|' \ -e 's|numpy>=2.0.0|numpy>=1.26.4|g' \ + -e 's|pybind11>=2.13.2,<3.1.0|pybind11>=2.13.2|g' \ ${WRKSRC}/pyproject.toml @${REINPLACE_CMD} -e "s|'boost', version : '1.89.0'|'boost'|g" \ ${WRKSRC}/meson.build post-install: ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @${UNZIP_NATIVE_CMD} -d ${STAGEDIR}${DOCSDIR} ${DISTDIR}/scipy-html-1.17.0.zip @${RM} ${STAGEDIR}${DOCSDIR}/.buildinfo .include