pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-pybind11



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sat Apr  6 06:34:39 UTC 2024

Modified Files:
        pkgsrc/devel/py-pybind11: Makefile PLIST distinfo

Log Message:
py-pybind11: update to 2.12.0.

Convert to wheel.mk.

New Features:

    pybind11 now supports compiling for NumPy 2. Most code shouldn't change (see upgrade-guide-2.12 for details). However, if you experience issues you can define PYBIND11_NUMPY_1_ONLY to disable the 
new support for now, but this will be removed in the future. #5050
    pybind11/gil_safe_call_once.h was added (it needs to be included explicitly). The primary use case is GIL-safe initialization of C++ static variables. #4877
    Support move-only iterators in py::make_iterator, py::make_key_iterator, py::make_value_iterator. #4834
    Two simple py::set_error() functions were added and the documentation was updated accordingly. In particular, py::exception<>::operator() was deprecated (use one of the new functions instead). 
The documentation for py::exception<> was further updated to not suggest code that may result in undefined behavior. #4772

Bug fixes:

    Removes potential for Undefined Behavior during process teardown. #4897
    Improve compatibility with the nvcc compiler (especially CUDA 12.1/12.2). #4893
    pybind11/numpy.h now imports NumPy's multiarray and _internal submodules with paths depending on the installed version of NumPy (for compatibility with NumPy 2). #4857
    Builtins collections names in docstrings are now consistently rendered in lowercase (list, set, dict, tuple), in accordance with PEP 585. #4833
    Added py::typing::Iterator<T>, py::typing::Iterable<T>. #4832
    Render py::function as Callable in docstring. #4829
    Also bump PYBIND11_INTERNALS_VERSION for MSVC, which unlocks two new features without creating additional incompatibilities. #4819
    Guard against crashes/corruptions caused by modules built with different MSVC versions. #4779
    A long-standing bug in the handling of Python multiple inheritance was fixed. See PR #4762 for the rather complex details. #4762
    Fix bind_map with using declarations. #4952
    Qualify py::detail::concat usage to avoid ADL selecting one from somewhere else, such as modernjson's concat. #4955
    Use new PyCode API on Python 3.12+. #4916
    Minor cleanup from warnings reported by Clazy. #4988
    Remove typing and duplicate class_ for KeysView/ValuesView/ItemsView. #4985
    Use PyObject_VisitManagedDict() and PyObject_ClearManagedDict() on Python 3.13 and newer. #4973
    Update make_static_property_type() to make it compatible with Python 3.13. #4971

    Render typed iterators for make_iterator, make_key_iterator, make_value_iterator. #4876
    Add several missing type name specializations. #5073
    Change docstring render for py::buffer, py::sequence and py::handle (to Buffer, Sequence, Any). #4831
    Fixed base_enum.__str__ docstring. #4827
    Enforce single line docstring signatures. #4735
    Special 'typed' wrappers now available in typing.h to annotate tuple, dict, list, set, and function. #4259
    Create handle_type_name specialization to type-hint variable length tuples. #5051

    Setting PYBIND11_FINDPYTHON to OFF will force the old FindPythonLibs mechanism to be used. #5042
    Skip empty PYBIND11_PYTHON_EXECUTABLE_LAST for the first cmake run. #4856
    Fix FindPython mode exports & avoid pkg_resources if importlib.metadata available. #4941
    Python_ADDITIONAL_VERSIONS (classic search) now includes 3.12. #4909
    pybind11.pc is now relocatable by default as long as install destinations are not absolute paths. #4830
    Correctly detect CMake FindPython removal when used as a subdirectory. #4806
    Don't require the libs component on CMake 3.18+ when using PYBIND11_FINDPYTHON (fixes manylinux builds). #4805
    pybind11_strip is no longer automatically applied when CMAKE_BUILD_TYPE is unset. #4780
    Support DEBUG_POSFIX correctly for debug builds. #4761
    Hardcode lto/thin lto for Emscripten cross-compiles. #4642
    Upgrade maximum supported CMake version to 3.27 to fix CMP0148 warnings. #4786

Documentation:

    Small fix to grammar in functions.rst. #4791
    Remove upper bound in example pyproject.toml for setuptools. #4774

CI:

    CI: Update NVHPC to 23.5 and Ubuntu 20.04. #4764
    Test on PyPy 3.10. #4714

Other:

    Use Ruff formatter instead of Black. #4912
    An assert() was added to help Coverty avoid generating a false positive. #4817


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 pkgsrc/devel/py-pybind11/Makefile
cvs rdiff -u -r1.8 -r1.9 pkgsrc/devel/py-pybind11/PLIST
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/py-pybind11/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-pybind11/Makefile
diff -u pkgsrc/devel/py-pybind11/Makefile:1.19 pkgsrc/devel/py-pybind11/Makefile:1.20
--- pkgsrc/devel/py-pybind11/Makefile:1.19      Wed Jan  3 15:22:06 2024
+++ pkgsrc/devel/py-pybind11/Makefile   Sat Apr  6 06:34:39 2024
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.19 2024/01/03 15:22:06 wiz Exp $
+# $NetBSD: Makefile,v 1.20 2024/04/06 06:34:39 wiz Exp $
 
-DISTNAME=      pybind11-2.11.1
-PATCHLEVEL=    1
+DISTNAME=      pybind11-2.12.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pybind11/}
@@ -11,6 +10,9 @@ HOMEPAGE=     https://github.com/pybind/pybi
 COMMENT=       Seamless operability between C++11 and Python
 LICENSE=       modified-bsd
 
+TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
+TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
+
 USE_LANGUAGES= # none
 
 PYTHON_VERSIONS_INCOMPATIBLE=  27
@@ -21,7 +23,5 @@ post-install:
        cd ${DESTDIR}${PREFIX}/bin && \
        ${MV} pybind11-config pybind11-config-${PYVERSSUFFIX} || ${TRUE}
 
-USE_PKG_RESOURCES=     yes
-
-.include "../../lang/python/egg.mk"
+.include "../../lang/python/wheel.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/py-pybind11/PLIST
diff -u pkgsrc/devel/py-pybind11/PLIST:1.8 pkgsrc/devel/py-pybind11/PLIST:1.9
--- pkgsrc/devel/py-pybind11/PLIST:1.8  Thu Dec 28 13:29:26 2023
+++ pkgsrc/devel/py-pybind11/PLIST      Sat Apr  6 06:34:39 2024
@@ -1,12 +1,11 @@
-@comment $NetBSD: PLIST,v 1.8 2023/12/28 13:29:26 thor Exp $
+@comment $NetBSD: PLIST,v 1.9 2024/04/06 06:34:39 wiz Exp $
 bin/pybind11-config-${PYVERSSUFFIX}
-${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
-${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
-${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
-${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
-${PYSITELIB}/${EGG_INFODIR}/requires.txt
-${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/entry_points.txt
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
 ${PYSITELIB}/pybind11/__init__.py
 ${PYSITELIB}/pybind11/__init__.pyc
 ${PYSITELIB}/pybind11/__init__.pyo
@@ -40,6 +39,7 @@ ${PYSITELIB}/pybind11/include/pybind11/e
 ${PYSITELIB}/pybind11/include/pybind11/eval.h
 ${PYSITELIB}/pybind11/include/pybind11/functional.h
 ${PYSITELIB}/pybind11/include/pybind11/gil.h
+${PYSITELIB}/pybind11/include/pybind11/gil_safe_call_once.h
 ${PYSITELIB}/pybind11/include/pybind11/iostream.h
 ${PYSITELIB}/pybind11/include/pybind11/numpy.h
 ${PYSITELIB}/pybind11/include/pybind11/operators.h
@@ -50,6 +50,7 @@ ${PYSITELIB}/pybind11/include/pybind11/s
 ${PYSITELIB}/pybind11/include/pybind11/stl/filesystem.h
 ${PYSITELIB}/pybind11/include/pybind11/stl_bind.h
 ${PYSITELIB}/pybind11/include/pybind11/type_caster_pyobject_ptr.h
+${PYSITELIB}/pybind11/include/pybind11/typing.h
 ${PYSITELIB}/pybind11/py.typed
 ${PYSITELIB}/pybind11/setup_helpers.py
 ${PYSITELIB}/pybind11/setup_helpers.pyc

Index: pkgsrc/devel/py-pybind11/distinfo
diff -u pkgsrc/devel/py-pybind11/distinfo:1.17 pkgsrc/devel/py-pybind11/distinfo:1.18
--- pkgsrc/devel/py-pybind11/distinfo:1.17      Mon Jul 17 19:08:10 2023
+++ pkgsrc/devel/py-pybind11/distinfo   Sat Apr  6 06:34:39 2024
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.17 2023/07/17 19:08:10 adam Exp $
+$NetBSD: distinfo,v 1.18 2024/04/06 06:34:39 wiz Exp $
 
-BLAKE2s (pybind11-2.11.1.tar.gz) = 8f998a791cb24d66c9ac51748026380b050f80674c2149668ac8730397569957
-SHA512 (pybind11-2.11.1.tar.gz) = 5f98b73ac96f08a390d8ba4ace552afaca4d06f5bce62234a1199d400560d1e3fcb17aa04a5a17661228e0eea8880b0a517dddc1f3e6c774d89c5463a628db0f
-Size (pybind11-2.11.1.tar.gz) = 205844 bytes
+BLAKE2s (pybind11-2.12.0.tar.gz) = e2208bf7b7f555ce8a0b83dc43677ace84fa11038651051c24aef1f7bdae49c5
+SHA512 (pybind11-2.12.0.tar.gz) = 80ce986cd75f54634245f0a7340952cac56343006661d033d4fbfe960dcc899d957569fa8f02bb3035860d7b7577ac7128fc940d7150d9361d14c65de2ca0d8d
+Size (pybind11-2.12.0.tar.gz) = 211887 bytes



Home | Main Index | Thread Index | Old Index