- 06 Apr, 2021 2 commits
-
-
Weiming Zhao committed
-
dependabot[bot] committed
-
- 03 Apr, 2021 1 commit
-
-
* Adding PyGILState_Check() in object_api<>::operator(). * Enabling PyGILState_Check() for Python >= 3.6 only. Possibly, this explains why PyGILState_Check() cannot safely be used with Python 3.4 and 3.5: https://github.com/python/cpython/pull/10267#issuecomment-434881587 * Adding simple micro benchmark. * Reducing test time to minimum (purely for coverage, not for accurate results). * Fixing silly oversight. * Minor code organization improvement in test. * Adding example runtimes. * Removing capsys (just run with `-k test_callback_num_times -s` and using `.format()`.
Ralf W. Grosse-Kunstleve committed
-
- 02 Apr, 2021 4 commits
-
-
env: Add surrogate for pytest.deprecated_call for ptyest<3.9
Eric Cousineau committed -
* Pybind11Extension add the "/EHsc /bigobj /std:c++14" flags on Windows. This is good for Visual C++ but not for Mingw. * According https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-python2/0410-MINGW-build-extensions-with-GCC.patch sysconfig.get_platform() is the way to check for a Mingw64
Jerome Robert committed -
Robert Haschke committed
-
JYX committed
-
- 09 Mar, 2021 1 commit
-
-
* Adding suppression for pypocketfft. * Generalize existing pypocketfft Valgrind suppression Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
Ralf W. Grosse-Kunstleve committed
-
- 08 Mar, 2021 1 commit
-
-
Use correct duration representation when casting from datetime.timdelta to std::chrono::duration (#2870) * Use correct duration representation when casting from datetime.timdelta to std::chrono::duration * When asserting datetime/timedelta/date/time we can equality-compare whole objects
Boris Staletic committed
-
- 05 Mar, 2021 1 commit
-
-
Shuffling code in test_multiple_inheritance.cpp to separate struct/class definitions from bindings code. (#2890)
Ralf W. Grosse-Kunstleve committed
-
- 25 Feb, 2021 2 commits
-
-
Tom de Geus committed
-
Shuffling code in test_smart_ptr.cpp to separate struct/class definitions from bindings code. Back-porting from smart_holder branch, to minimize diffs and potential for merge conflicts. (#2875) Thanks Wenzel!
Ralf W. Grosse-Kunstleve committed
-
- 23 Feb, 2021 3 commits
-
-
* [dtype]: add type() method to access type attribute of PyArray_Descr (eq. to dtype.char in Python) * [dtype] change type() name method to char_() to be compliant with Python numpy interface * [dtype] fix by pre-commit * [dtype] Change comments and solutions format for test * Clarify documentation and move note about dtype.char vs PyArray_Descr::type to a plain, non-doxygen comment * Fix and extend tests * Fix the supposedly fixed tests * Fix the fixed tests again Co-authored-by: Bertrand MICHEL <bertrand.michel@onera.fr> Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
Bertrand MICHEL committed -
Dustin Spicuzza committed
-
* Splitting out detail/type_caster_base.h from cast.h. * Include cleanup guided by include-what-you-use 0.12 based on clang version 9.0.1-11.
Ralf W. Grosse-Kunstleve committed
-
- 20 Feb, 2021 1 commit
-
-
jakobjw committed
-
- 17 Feb, 2021 1 commit
-
-
dependabot[bot] committed
-
- 14 Feb, 2021 1 commit
-
-
* Add initial implementation * Add few more methods * Add tests * Fix a typo * Use std::string constructor which takes size * Fix implicit sign conversion error * Add size method and test * Remove implicit conversion * Fix bytearray constructors and operator std::string() * Make implicit bytearray constructor explicit * Rerun tests * Add null check * Rerun tests * Rerun tests - 2 * Remove NULL check
Vikram Pal committed
-
- 12 Feb, 2021 1 commit
-
-
Co-authored-by: OnlineCop <onlinecop@gmail.com>
OnlineCop committed
-
- 09 Feb, 2021 1 commit
-
-
Bumps [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) from v1.4.1 to v1.4.2. - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](https://github.com/pypa/gh-action-pypi-publish/compare/v1.4.1...27b31702a0e7fc50959f5ad993c78deac1bdfc29) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] committed
-
- 08 Feb, 2021 3 commits
-
-
On Windows, clang-cl does not understand /MP. ``` clang-cl: warning: argument unused during compilation: '/MP' [-Wunused-command-line-argument] ``` with Clang 10.0.0
Axel Huebl committed -
Karthik Nishanth committed
-
Kumar Aditya committed
-
- 01 Feb, 2021 1 commit
-
-
* Make sure all warnings in pytest get turned into errors * Suppress DeprecationWarnings in test_int_convert and test_numpy_int_convert * PyLong_AsLong only shouts "Deprecated!" on Python>=3.8 * Fix remaining warnings on PyPy and CPython 3.10-dev
Yannick Jadoul committed
-
- 31 Jan, 2021 2 commits
-
-
* chore: get PyPy 3.7 wheels using NumPy 1.20 * Add Valgrind suppressions after NumPy update Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
Henry Schreiner committed -
* Demonstrate issue with weakref constructor overloads * Fix weakref constructor to convert on being passed a non-weakref object * Improve on nonlocal-scoped variable in test_weakref * Keep backwards-compatibility by introducing PYBIND11_OBJECT_CVT_DEFAULT macro * Simplify test_weakref
Yannick Jadoul committed
-
- 30 Jan, 2021 2 commits
-
-
Adding holder_caster `typename SFINAE = void` hooks to help work around the current lack of smart-pointer interoperability (#2833) * Adding move_only_holder_caster `typename SFINAE = void` to enable external specializations. * Adding SFINAE hook also to copyable_holder_caster, for uniformity, with comment to explain the purpose.
Ralf W. Grosse-Kunstleve committed -
* When determining if a shared_ptr already exists, use a test on the weak_ptr instead of a try/catch block. * When determining if a shared_ptr already exists, use a test on the weak_ptr instead of a try/catch block. * weak_from_this is only available in C++17 and later * Switch to use feature flag instead of C++ version flag. * Add Microsoft-specific check. * Avoid undefined preprocessor macro warning treated as error. * Simplify shared_from_this in init_holder * Include <version> in detail/common.h (~stolen~ borrowed from @bstaletic's #2816) * Move class_::get_shared_from_this to detail::try_get_shared_from_this * Simplify try_get_shared_from_this by using weak_ptr::lock() Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
Edward Lockhart committed
-
- 29 Jan, 2021 1 commit
-
-
* Changing pybind11::str to exclusively hold PyUnicodeObject
Ralf W. Grosse-Kunstleve committed
-
- 28 Jan, 2021 1 commit
-
-
Yannick Jadoul committed
-
- 27 Jan, 2021 6 commits
-
-
Factoring out find_registered_python_instance() from type_caster_generic::cast.
Ralf W. Grosse-Kunstleve committed -
Henry Fredrick Schreiner committed
-
Henry Fredrick Schreiner committed
-
Henry Schreiner committed
-
Henry Fredrick Schreiner committed
-
Henry Fredrick Schreiner committed
-
- 25 Jan, 2021 3 commits
-
-
* docs: prepare for 2.6.2 * chore: pre-commit autoupdate
Henry Schreiner committed -
Bumps [jwlawson/actions-setup-cmake](https://github.com/jwlawson/actions-setup-cmake) from v1.6 to v1.7. - [Release notes](https://github.com/jwlawson/actions-setup-cmake/releases) - [Commits](https://github.com/jwlawson/actions-setup-cmake/compare/v1.6...821902fd0e0da89b13fd3161d358e96bf7550883) Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dependabot[bot] committed -
* Always call PyNumber_Index when casting from Python to a C++ integral type, also pre-3.8 * Fixed on PyPy * Simplify use of PyNumber_Index, following @rwgk's idea, and ignore warnings in >=3.8 * Reproduce mismatch between pre-3.8 and post-3.8 behavior on __index__ throwing TypeError * Fix tests on 3.6 <= Python < 3.8 * No, I don't have an uninitialized variable * Fix use of __index__ on Python 2 * Make types in test_int_convert more ~boring~ descriptive
Yannick Jadoul committed
-
- 24 Jan, 2021 1 commit
-
-
* Force the builtin module key to be the correct type. Previously it was always going to be a std::string which converted into unicode. Python 2 appears to want module keys to be normal str types, so this was breaking code that expected plain string types in the builtins.keys() data structure * Add a simple unit test to ensure all built-in keys are str * Update the unit test so it will also run on pypy * Run pre-commit. Co-authored-by: Jesse Clemens <jesse.clemens@sony.com>
crimsoncor committed
-