2022-01-05 16:41:32 by Thomas Klausner | Files touched by this commit (289) |
Log message:
python: egg.mk: add USE_PKG_RESOURCES flag
This flag should be set for packages that import pkg_resources
and thus need setuptools after the build step.
Set this flag for packages that need it and bump PKGREVISION.
|
2022-01-04 21:55:40 by Thomas Klausner | Files touched by this commit (1595) |
Log message:
*: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
|
2021-10-28 11:09:29 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-pybind11: updated to 2.8.1
v2.8.1 (Oct 27, 2021)
Changes and additions:
The simple namespace creation shortcut added in 2.8.0 was deprecated due to \
usage of CPython internal API, and will be removed soon. Use \
py::module_::import("types").attr("SimpleNamespace").
Add C++ Exception type to throw and catch AttributeError. Useful for defining \
custom __setattr__ and __getattr__ methods.
Fixes:
Fixed the potential for dangling references when using properties with \
std::optional types.
Modernize usage of PyCodeObject on Python 3.9+ (moving toward support for Python \
3.11a1)
A long-standing bug in eigen.h was fixed. The bug was unmasked by newly added \
static_assert's in the Eigen 3.4.0 release.
Support multiple raw inc…
|
2021-10-26 12:20:11 by Nia Alarie | Files touched by this commit (3016) |
Log message:
archivers: Replace RMD160 checksums with BLAKE2s checksums
All checksums have been double-checked against existing RMD160 and
SHA512 hashes
Could not be committed due to merge conflict:
devel/py-traitlets/distinfo
The following distfiles were unfetchable (note: some may be only fetched
conditionally):
./devel/pvs/distinfo pvs-3.2-solaris.tgz
./devel/eclipse/distinfo eclipse-sourceBuild-srcIncluded-3.0.1.zip
|
2021-10-11 19:47:18 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-pybind11: updated to 2.8.0
Version 2.8.0
New features:
Added py::raise_from to enable chaining exceptions.
Allow exception translators to be optionally registered local to a module \
instead of applying globally across all pybind11 modules. Use \
register_local_exception_translator(ExceptionTranslator&& translator) \
instead of register_exception_translator(ExceptionTranslator&& \
translator) to keep your exception remapping code local to the module.
Add make_simple_namespace function for instantiating Python SimpleNamespace objects.
pybind11::scoped_interpreter and initialize_interpreter have new arguments to \
allow sys.argv initialization.
Allow Python builtins to be used as callbacks in CPython.
Added view to view arrays with a different datatype.
Implemented reshape on arrays.
Enable defining custom __new__ methods on classes by fixing bug preventing \
overriding methods if they have non-pybind11 siblings.
Add make_value_iterator(), and fix make_key_iterator() to return references \
instead of copies.
Improve the classes generated by bind_map:
Change .items from an iterator to a dictionary view.
Add .keys and .values (both dictionary views).
Allow __contains__ to take any object.
pybind11::custom_type_setup was added, for customizing the PyHeapTypeObject \
corresponding to a class, which may be useful for enabling garbage collection \
support, among other things.
Changes:
Set __file__ constant when running eval_file in an embedded interpreter.
Python objects and (C++17) std::optional now accepted in py::slice constructor.
The pybind11 proxy types str, bytes, bytearray, tuple, list now consistently \
support passing ssize_t values for sizes and indexes. Previously, only size_t \
was accepted in several interfaces.
Avoid evaluating PYBIND11_TLS_REPLACE_VALUE arguments more than once.
Fixes:
Bug fix: enum value's __int__ returning non-int when underlying type is bool or \
of char type
Fixes bug in setting error state in Capsule's pointer methods.
A long-standing memory leak in py::cpp_function::initialize was fixed.
Fixes thread safety for some pybind11::type_caster which require lifetime \
extension, such as for std::string_view.
Restore compatibility with gcc 4.8.4 as distributed by ubuntu-trusty, linuxmint-17.
Build system improvements:
Fix regression in CMake Python package config: improper use of absolute path.
Cached Python version information could become stale when CMake was re-run with \
a different Python version. The build system now detects this and updates this \
information.
Specified UTF8-encoding in setup.py calls of open().
Fix a harmless warning from CMake 3.21 with the classic Python discovery.
Eigen repo and version can now be specified as cmake options.
Backend and tidying up:
Reduced thread-local storage required for keeping alive temporary data for type \
conversion to one key per ABI version, rather than one key per extension module. \
This makes the total thread-local storage required by pybind11 2 keys per ABI \
version.
Optimize NumPy array construction with additional moves.
Conversion to std::string and std::string_view now avoids making an extra copy \
of the data on Python >= 3.3.
Remove const modifier from certain C++ methods on Python collections (list, set, \
dict) such as (clear(), append(), insert(), etc...) and annotated them with \
py-non-const.
Enable readability clang-tidy-const-return and remove useless consts.
The clang-tidy google-explicit-constructor option was enabled.
Mark a pytype move constructor as noexcept (perf).
Enable clang-tidy check to guard against inheritance slicing.
Legacy warning suppression pragma were removed from eigen.h. On Unix platforms, \
please use -isystem for Eigen include directories, to suppress compiler warnings \
originating from Eigen headers. Note that CMake does this by default. No \
adjustments are needed for Windows.
Format pybind11 with isort consistent ordering of imports
The warnings-suppression "pragma clamp" at the top/bottom of pybind11 \
was removed, clearing the path to refactoring and IWYU cleanup.
Enable most bugprone checks in clang-tidy and fix the found potential bugs and \
poor coding styles.
Add clang-tidy-readability rules to make boolean casts explicit improving code \
readability. Also enabled other misc and readability clang-tidy checks.
Move object in .pop() for list.
|
2021-10-07 15:44:44 by Nia Alarie | Files touched by this commit (3017) |
Log message:
devel: Remove SHA1 hashes for distfiles
|
2021-08-06 14:40:59 by Adam Ciarcinski | Files touched by this commit (2) |  |
Log message:
py-pybind11: updated to 2.7.1
Version 2.7.1
Minor missing functionality added:
Allow Python builtins to be used as callbacks in CPython.
Bug fixes:
Fix regression in CMake Python package config: improper use of absolute path.
Fix Mingw64 and add to the CI testing matrix.
Specified UTF8-encoding in setup.py calls of open().
Add clang-tidy-readability rules to make boolean casts explicit improving code \
readability. Also enabled other misc and readability clang-tidy checks.
Move object in .pop() for list.
Backend and tidying up:
Removed and fixed warning suppressions.
|
2021-08-02 22:35:42 by Adam Ciarcinski | Files touched by this commit (3) |  |
Log message:
py-pybind11: updated to 2.7.0
Version 2.7.0
New features:
Enable py::implicitly_convertible<py::none, ...> for py::class_-wrapped types.
Allow function pointer extraction from overloaded functions.
NumPy: added .char_() to type which gives the NumPy public char result, which \
also distinguishes types by bit length (unlike .kind()).
Add pybind11::bytearray to manipulate bytearray similar to bytes.
pybind11/stl/filesystem.h registers a type caster that, on C++17/Python 3.6+, \
converts std::filesystem::path to pathlib.Path and any os.PathLike to \
std::filesystem::path.
A PYBIND11_VERSION_HEX define was added, similar to PY_VERSION_HEX.
Changes:
py::str changed to exclusively hold PyUnicodeObject. Previously py::str could
also hold bytes, which is probably surprising, was never documented, and can \
mask bugs (e.g. accidental use of py::str instead of py::bytes).
Add a safety guard to ensure that the Python GIL is held when C++ calls back \
into Python via object_api<>::operator() (e.g. py::function __call__). \
(This feature is available for Python 3.6+ only.)
Catch a missing self argument in calls to __init__().
Use std::string_view if available to avoid a copy when passing an object to a \
std::ostream.
An important warning about thread safety was added to the iostream.h \
documentation; attempts to make py::scoped_ostream_redirect thread safe have \
been removed, as it was only partially effective.
Fixes:
Performance: avoid unnecessary strlen calls.
Fix auto-generated documentation string when using const T in pyarray_t.
Unify error messages thrown by simple_collector/unpacking_collector.
pybind11::builtin_exception is now explicitly exported, which means the types \
included/defined in different modules are identical, and exceptions raised in \
different modules can be caught correctly. The documentation was updated to \
explain that custom exceptions that are used across module boundaries need to be \
explicitly exported as well.
Fixed exception when printing UTF-8 to a scoped_ostream_redirect.
Pickle support enhancement: setstate implementation will attempt to setattr \
__dict__ only if the unpickled dict object is not empty, to not force use of \
py::dynamic_attr() unnecessarily.
Allow negative timedelta values to roundtrip.
Fix unchecked errors could potentially swallow signals/other exceptions.
Add null pointer check with std::localtime.
Fix the weakref constructor from py::object to create a new weakref on conversion.
Avoid relying on exceptions in C++17 when getting a shared_ptr holder from a \
shared_from_this class.
Allow the codec's exception to be raised instead of RuntimeError when casting \
from py::str to std::string.
Build system improvements:
In setup_helpers.py, test for platforms that have some multiprocessing features \
but lack semaphores, which ParallelCompile requires.
Fix pybind11_INCLUDE_DIR in case CMAKE_INSTALL_INCLUDEDIR is absolute.
Fix bug not respecting WITH_SOABI or WITHOUT_SOABI to CMake.
Fix the default Pybind11Extension compilation flags with a Mingw64 python.
Clang on Windows: do not pass /MP (ignored flag).
pybind11.setup_helpers.intree_extensions can be used to generate \
Pybind11Extension instances from cpp files placed in the Python
package source tree.
Backend and tidying up:
Enable clang-tidy performance, readability, and modernization checks throughout \
the codebase to enforce best coding practices.,
Checks for common misspellings were added to the pre-commit hooks.
Changed Werror to stricter Werror-all for Intel compiler and fixed minor issues.
Fixed compilation with GCC < 5 when the user defines _GLIBCXX_USE_CXX11_ABI.
Added nox support for easier local testing and linting of contributions. and
Avoid RTD style issue with docutils 0.17+.
Support pipx run, such as pipx run pybind11 --include for a quick compile.
|
2021-04-05 20:31:56 by Tobias Nygren | Files touched by this commit (3) |  |
Log message:
py-pybind11: update to 2.6.2
New features in 2.6.x:
Keyword-only arguments supported in Python 2 or 3 with py::kw_only().
Positional-only arguments supported in Python 2 or 3 with py::pos_only().
py::is_final() class modifier to block subclassing (CPython only).
Added py::prepend(), allowing a function to be placed at the beginning of the \
overload chain.
Access to the type object now provided with py::type::of<T>() and \
py::type::of(h).
Perfect forwarding support for methods.
Added py::error_already_set::discard_as_unraisable().
py::hash is now public.
py::class_<union_type> is now supported.
Classes now check local scope when registering members
|
2020-05-01 09:54:38 by Adam Ciarcinski | Files touched by this commit (1) |
Log message:
py-pybind11: more flexible buildlink3.mk
|