Commit Graph

  • 0dfebe1698 style: pre-commit fixes pre-commit-ci[bot] 2024-07-14 23:23:36 +0000
  • 60314d5369 Merge remote-tracking branch 'upstream/master' into jiwaszki/add_warn_wrappers jiwaszki 2024-07-15 01:09:24 +0200
  • 89da1e2ef7 Use memcpy instead of strcpy to resolve MSVC errors. Ralf W. Grosse-Kunstleve 2024-07-14 01:12:43 -0700
  • c65d5dfaa8 Systematically use is_base_of<type_caster_generic, make_caster<D>> in property_cpp_function<> specializations. Ralf W. Grosse-Kunstleve 2024-07-14 00:42:45 -0700
  • 3406be6877 New test_class_sh_property_bakein.py Ralf W. Grosse-Kunstleve 2024-07-13 20:45:31 -0700
  • 2600bb67c5 Remove test_ccccccccccccccccccccc.cpp,py (not needed anymore). Ralf W. Grosse-Kunstleve 2024-07-13 00:35:26 -0700
  • 6fa0a2e439 PYBIND11_HAVE_HOLDER_CASTER_WITH_SMART_HOLDER_SUPPORT Ralf W. Grosse-Kunstleve 2024-07-12 22:55:23 -0700
  • 092d236b4e Remove test_wip.cpp,py (not needed anymore). Ralf W. Grosse-Kunstleve 2024-07-12 08:33:55 -0700
  • d021bb10aa Remove redundant check_holder_compat() no-op implementation. Ralf W. Grosse-Kunstleve 2024-07-12 08:31:35 -0700
  • 63044cc199 Bring in default_holder_type from smart_holder branch including using it in pybind11/stl_bind.h Ralf W. Grosse-Kunstleve 2024-07-12 08:26:34 -0700
  • d373a082ad Remove remaining BAKEIN_BREAK in test_class_sh_property.cpp,py and adjust (simplify) the property_cpp_function<...unique_ptr...>::write implementation (all tests pass). Ralf W. Grosse-Kunstleve 2024-07-12 02:33:30 -0700
  • 0b14d5bce9 test_class_sh_property.py test_valu_getter() works without any further changes. Ralf W. Grosse-Kunstleve 2024-07-12 02:24:27 -0700
  • 048e36df40 Bring in shared_ptr_with_responsible_parent() from smart_holder branch: Ralf W. Grosse-Kunstleve 2024-07-12 01:27:02 -0700
  • 18af993ba8 test: embed multiprocessing.Process can be created with spawn context Austin Raney 2024-07-11 17:14:24 -0400
  • 1bcf572780 First pass adapting all property_cpp_function<> implementations. Still needs debugging and more testing: Ralf W. Grosse-Kunstleve 2024-07-10 15:20:31 -0700
  • f852cf5714 Copy code property_cpp_function<> code from smart_holder branch as-is. Ifdef out all but the "classic" implementation. Ralf W. Grosse-Kunstleve 2024-07-10 10:07:51 -0700
  • 127058cb16 Replace loaded_v_h.type = get_type_info(typeid(type)) with loaded_v_h.type = typeinfo in unique_ptr type_caster and remove pytest.skip() in test_class_sh_disowning_mi.py Ralf W. Grosse-Kunstleve 2024-07-10 08:18:24 -0700
  • 1230ebd917 Copy test_ccccccccccccccccccccc.cpp,py from bakein branch as-is. Ralf W. Grosse-Kunstleve 2024-07-09 22:07:58 -0700
  • f855283be4 Restore test_class_sh_disowning_mi.cpp,py as it last worked with GHA (commit 575919098a). Ralf W. Grosse-Kunstleve 2024-07-09 20:48:53 -0700
  • 7e1eced440 test_ccccccccccccccccccccc Ralf W. Grosse-Kunstleve 2024-07-09 20:46:20 -0700
  • d3537e4236 Reducing 2: rename C++ namespace from class_sh_disowning_mi to wip. Ralf W. Grosse-Kunstleve 2024-07-09 20:37:47 -0700
  • 1ea3855b22 Reducing 1. Ralf W. Grosse-Kunstleve 2024-07-09 20:29:58 -0700
  • 575919098a Remove all LOOOK in type_caster_base.h Ralf W. Grosse-Kunstleve 2024-07-09 15:14:05 -0700
  • e254264cc5 Restore original test_class_sh_disowning.py from smart_holder branch. Ralf W. Grosse-Kunstleve 2024-07-09 15:09:39 -0700
  • c6a87e8897 Call new load_helper.get_void_ptr_or_nullptr() instead of calling type_caster_generic::load_value() in shared_ptr and unique_ptr casters. Ralf W. Grosse-Kunstleve 2024-07-09 15:07:10 -0700
  • 36bbac1b47 LOOOK to trace disowning Ralf W. Grosse-Kunstleve 2024-07-09 14:03:35 -0700
  • c5278145a0 Transfer test_mixed from test_class_sh_disowning to test_wip (preparation for debugging behavior difference). Ralf W. Grosse-Kunstleve 2024-07-09 13:34:27 -0700
  • c0f5078263 Pull in from smart_holder branch: Additional assert is_disowned() in test_class_sh_disowning.py (#5234) Ralf W. Grosse-Kunstleve 2024-07-09 13:31:59 -0700
  • 9193b8e714
    Additional assert is_disowned() in test_class_sh_disowning.py (#5234) Ralf W. Grosse-Kunstleve 2024-07-09 13:27:31 -0700
  • eadcbab4d7 Additional assert is_disowned() in test_class_sh_disowning.py Ralf W. Grosse-Kunstleve 2024-07-09 13:08:51 -0700
  • 5a4442f583 pytest.skip() right before m.disown_b(...) in test_class_sh_property_non_owning.py. Remove pytest.skip() in test_class_sh_shared_ptr_copy_move.py and test_class_sh_property_non_owning.py Ralf W. Grosse-Kunstleve 2024-07-09 11:31:57 -0700
  • 752626d607 SegFault 20.04 C++11 MinSizeRel all tests, but only first pass after git clean -fdx NO SegFault 20.04 C++11 Debug all tests, even in first pass after git clean -fdx BUT then suddenly SegFaults not reproducible anymore even with MinSizeRel!? Ralf W. Grosse-Kunstleve 2024-07-09 08:13:33 -0700
  • 75d3a8a432 Strip out smart_holder code and tests from test_class_sh_shared_ptr_copy_move. Ralf W. Grosse-Kunstleve 2024-07-08 18:08:04 -0700
  • 7e344330cd Bring in tests/pure_cpp/test_class_sh_shared_ptr_copy_move.cpp,py from smart_holder branch as-is (does not build). Ralf W. Grosse-Kunstleve 2024-07-08 17:57:56 -0700
  • 0296d33b1d Stress test: use PYBIND11_SMART_HOLDER_PADDING unconditionally. Ralf W. Grosse-Kunstleve 2024-07-08 17:43:31 -0700
  • 625c88b845 Add two more pytest.skip("BAKEIN_BREAK: Segmentation fault") in test_class_sh_shared_ptr_copy_move.py Ralf W. Grosse-Kunstleve 2024-07-08 16:12:44 -0700
  • 3ddfc58a2f Add two pytest.skip("BAKEIN_BREAK: Segmentation fault") in test_class_sh_shared_ptr_copy_move.py (suspected (!) holder mismatch). Ralf W. Grosse-Kunstleve 2024-07-08 15:58:59 -0700
  • cc86fb3256 test_class_sh_property_non_owning.py appears to cause memory corruption leading to failures in test_class_sh_shared_ptr_copy_move.py: Ralf W. Grosse-Kunstleve 2024-07-08 11:57:02 -0700
  • b044b4faef Merge branch 'master' into sh_merge_master Ralf W. Grosse-Kunstleve 2024-07-08 10:08:58 -0700
  • 835ec96d0b
    Merge branch 'pybind:master' into master Steve R. Sun 2024-07-08 09:37:47 +0800
  • 91d40035a2 Disable for now (to be debugged later): CI / 🐍 3 • GCC 7 • C++17• x64 Ralf W. Grosse-Kunstleve 2024-07-07 13:27:16 -0700
  • 68c9d1311f Bring in tests/*class_sh_module_local* from smart_holder branch as-is (tests pass without any further changes). Ralf W. Grosse-Kunstleve 2024-07-07 13:22:43 -0700
  • 9e3bee066b Bring in tests/test_classh_mock.cpp,py from smart_holder branch as-is (tests pass without any further changes). Ralf W. Grosse-Kunstleve 2024-07-07 13:17:27 -0700
  • ac055a41fc Add BAKEIN_BREAK in test_class_sh_property_non_owning.cpp,py Ralf W. Grosse-Kunstleve 2024-07-07 13:04:41 -0700
  • f52456e07a Bring in tests/test_class_sh_property_non_owning.cpp,py from smart_holder branch as-is (does not build). Ralf W. Grosse-Kunstleve 2024-07-07 13:01:30 -0700
  • b89ec00202 Add BAKEIN_BREAK in test_class_sh_property.cpp,py Ralf W. Grosse-Kunstleve 2024-07-07 12:59:17 -0700
  • c7bd78ccd6 Bring in tests/test_class_sh_property.cpp,py from smart_holder branch as-is (does not build). Ralf W. Grosse-Kunstleve 2024-07-07 12:51:50 -0700
  • c453013583 Move pytest.skip("BAKEIN_BREAK: ...) in test_class_sh_shared_ptr_copy_move.py to top level (still appears to fail on ~17 platforms). Ralf W. Grosse-Kunstleve 2024-07-07 10:25:24 -0700
  • f1f0eef3cb Remove cruft from smart_holder_type_caster_support::load_helper<> Ralf W. Grosse-Kunstleve 2024-07-07 10:14:06 -0700
  • 7fc2ef4be5 Merge branch 'master' into bakein Ralf W. Grosse-Kunstleve 2024-07-07 09:54:59 -0700
  • 89c58c4f7f Add pytest.skip("BAKEIN_BREAK: ...) in test_class_sh_shared_ptr_copy_move.py test_properties() (appears to fail on ~17 platforms). Ralf W. Grosse-Kunstleve 2024-07-07 09:54:41 -0700
  • b82892ae6f Resolve clang-tidy errors and warnings. Ralf W. Grosse-Kunstleve 2024-07-07 09:43:53 -0700
  • 56019a2d68 Clean out debug code in test_class_sh_mi_thunks.cpp,py Ralf W. Grosse-Kunstleve 2024-07-07 09:06:00 -0700
  • 011c795b5f test_class_sh_disowning.py: BAKEIN_WIP: Why is the behavior different? Ralf W. Grosse-Kunstleve 2024-07-07 09:01:25 -0700
  • bd37d69b67 Bug fix: typeid(cpptype) -> cpptype->name() Ralf W. Grosse-Kunstleve 2024-07-07 08:54:55 -0700
  • 1158dbc57b Remove pytest.skip("BAKEIN_BREAK: ...") in test_class_sh_disowning_mi.py (tests pass without any further changes). Ralf W. Grosse-Kunstleve 2024-07-07 08:47:04 -0700
  • 042ea81fbe Pass thunk-corrected pointer to loaded_as_unique_ptr(). With this all test_class_sh_mi_thunks tests pass. Ralf W. Grosse-Kunstleve 2024-07-07 07:34:00 -0700
  • 103666ad40 Micro-scale cleanup/consolidation. Ralf W. Grosse-Kunstleve 2024-07-07 06:58:07 -0700
  • 1fbc4a2f54 Clean out dead-end and debug code. Ralf W. Grosse-Kunstleve 2024-07-07 06:46:04 -0700
  • bb6b429a2f MESSY but success for: test_get_vec_size_raw_shared[get_drvd_as_base0_raw_ptr-vec_size_base0_shared_ptr] Ralf W. Grosse-Kunstleve 2024-07-06 15:27:04 -0700
  • eb15f1a384 WIP: remove convert_type() call from loaded_as_shared_ptr() Ralf W. Grosse-Kunstleve 2024-07-06 14:29:22 -0700
  • b201eece19 Remove pytest.skip("BAKEIN_BREAK: ...") in test_class_sh_mi_thunks.py (tests still fail) Ralf W. Grosse-Kunstleve 2024-07-06 13:17:20 -0700
  • 4114e975d4 throw from convert_type() to expose bug. Ralf W. Grosse-Kunstleve 2024-07-06 13:11:15 -0700
  • 50acb81b0a
    chore(deps): bump certifi from 2024.2.2 to 2024.7.4 in /docs (#5226) dependabot[bot] 2024-07-06 12:22:52 -0700
  • af467ea1a6 WIP Ralf W. Grosse-Kunstleve 2024-07-06 11:17:00 -0700
  • 70ba91f721 Inline smart_holder_type_caster_support, trampoline_self_life_support in type_caster_base.h: the organization of the existing code makes it very difficult to factor the added code properly. Ralf W. Grosse-Kunstleve 2024-07-06 10:49:22 -0700
  • abf0f62cec Update the changelog for PR #5208, which Wenqing Wang 2024-07-06 12:00:59 +0200
  • 0af3114a30
    chore(deps): bump certifi from 2024.2.2 to 2024.7.4 in /docs dependabot[bot] 2024-07-06 01:58:59 +0000
  • 2180dd4b6b Add test_class_sh_disowning_mi, test_class_sh_mi_thunks in CMakeLists.txt Ralf W. Grosse-Kunstleve 2024-07-05 15:33:39 -0700
  • 34b8d360a2 Add pytest.skip("BAKEIN_BREAK: ...") in test_class_sh_disowning_mi.py Ralf W. Grosse-Kunstleve 2024-07-05 15:27:05 -0700
  • 7173a3ab9d Bring in tests/test_class_sh_disowning_mi.cpp,py from smart_holder branch as-is (AssertionError). Ralf W. Grosse-Kunstleve 2024-07-05 15:21:49 -0700
  • 3466ce5f63 Add pytest.skip("BAKEIN_BREAK: ...") in test_class_sh_mi_thunks.py Ralf W. Grosse-Kunstleve 2024-07-05 15:17:12 -0700
  • 25c8edf994 Bring in tests/test_class_sh_mi_thunks.cpp,py from smart_holder branch as-is (Segmentation fault). Ralf W. Grosse-Kunstleve 2024-07-05 14:47:39 -0700
  • 288442cd5c Add more test_class_sh_* in tests/CMakeLists.txt Ralf W. Grosse-Kunstleve 2024-07-05 14:38:59 -0700
  • fcc868df59 Add PYBIND11_TYPE_CASTER_BASE_HOLDER(...) (no-op) Ralf W. Grosse-Kunstleve 2024-07-05 14:37:15 -0700
  • 4ce1524c61 Bring in tests/test_class_sh_shared_ptr_copy_move.cpp,py from smart_holder branch as-is (does not build). Ralf W. Grosse-Kunstleve 2024-07-05 14:25:44 -0700
  • d9d96118e6 Bring in all tests/test_class_*.cpp,py from smart_holder branch as-is that pass without any further changes. Ralf W. Grosse-Kunstleve 2024-07-05 12:52:41 -0700
  • 470a765804 Bring in tests/test_class_sh_factory_constructors.cpp,py from smart_holder branch as-is (tests pass without any further changes). Ralf W. Grosse-Kunstleve 2024-07-05 12:35:32 -0700
  • 46ab14ebb4 Add missing explicit to resolve clang-tidy error. Ralf W. Grosse-Kunstleve 2024-07-05 12:33:19 -0700
  • c84dacc379 Factor out smart_holder_value_and_holder_support.h to avoid code duplication. Ralf W. Grosse-Kunstleve 2024-07-05 11:55:37 -0700
  • e593589c61 inline unique_ptr_to_python() in cast.h Ralf W. Grosse-Kunstleve 2024-07-05 10:12:21 -0700
  • 12c0eb3889 inline shared_ptr_to_python() in cast.h Ralf W. Grosse-Kunstleve 2024-07-05 10:05:29 -0700
  • 0b7a628a04 Check for Python instance is uninitialized/disowned in type_caster_base.h. CRUDE intermediate state, needs refactoring. Ralf W. Grosse-Kunstleve 2024-07-05 00:20:23 -0700
  • fd1afdb2b9 move_only_holder_caster<...unique_ptr...>::load_value(): throw instead of return false (i.e. prefer noisy failure over potentially silent failure). Ralf W. Grosse-Kunstleve 2024-07-04 23:57:34 -0700
  • 66fb5c942c
    Merge branch 'master' into bakein Ralf W. Grosse-Kunstleve 2024-07-04 18:21:55 -0700
  • 874f69d898 Add cast(const std::unique_ptr<type, deleter> &, ...). Remove the last 3 remaining BAKEIN_BREAK in test_class_sh_basic.cpp Ralf W. Grosse-Kunstleve 2024-07-04 16:09:01 -0700
  • ebbe066841 Implement operator std::unique_ptr<type, deleter>(). Resolves all but 1 block of 4 BAKEIN_BREAK in test_class_sh_basic.py Ralf W. Grosse-Kunstleve 2024-07-04 11:15:16 -0700
  • 0eb23f2ad1 Remove all but 3 BAKEIN_BREAK in test_class_sh_basic.cpp Ralf W. Grosse-Kunstleve 2024-07-04 08:47:34 -0700
  • 391d7726ad Remove operator type *() unique_ptr, and & (not sure how they would be useful). Ralf W. Grosse-Kunstleve 2024-07-04 08:25:06 -0700
  • d4fc392ebe move_only_holder_caster<type, std::unique_ptr<T, D>>: inherit from type_caster_base<T> Ralf W. Grosse-Kunstleve 2024-07-03 14:37:39 -0700
  • 224e9343d2 Implement operator std::shared_ptr<type> &(), remove 2 BAKEIN_BREAK: pass_shmp, pass_shcp Ralf W. Grosse-Kunstleve 2024-07-03 13:27:11 -0700
  • af66246fb6 Resolve clang-tidy errors: Ralf W. Grosse-Kunstleve 2024-07-03 12:54:41 -0700
  • fc5678b08b Add value_and_holder loaded_v_h; member (set, but currently unused). Ralf W. Grosse-Kunstleve 2024-07-03 11:26:04 -0700
  • 2837df178e Rename holder to shared_ptr_holder to improve readability. No functional changes. Ralf W. Grosse-Kunstleve 2024-07-03 10:49:17 -0700
  • 17c0354050 copyable_holder_caster<type, std::shared_ptr<type>>: split load_value_shared_ptr(), load_value_smart_holder() (the latter just throws right now) Ralf W. Grosse-Kunstleve 2024-07-03 10:30:14 -0700
  • 556f28a1a4 Add smart_holder_from_shared_ptr() specialization for std::shared_ptr<T const> Ralf W. Grosse-Kunstleve 2024-07-03 07:41:48 -0700
  • 5957133b6e Add smart_holder_from_unique_ptr() specialization for std::unique_ptr<T const, D> Ralf W. Grosse-Kunstleve 2024-07-03 06:22:54 -0700
  • 7a6d30ca58 Fix rtrn_shmp, rtrn_shmp by transferring smart_holder_from_shared_ptr() functionality from smart_holder branch. Ralf W. Grosse-Kunstleve 2024-07-02 18:04:57 -0700
  • a46371c2bc
    Merge branch 'pybind:master' into master Steve R. Sun 2024-07-03 08:58:26 +0800
  • a332fe8cf4 Fix oversights: Add pybind11/smart_holder.h in CMakeLists.txt, tests/extra_python_package/test_files.py Ralf W. Grosse-Kunstleve 2024-07-02 15:15:19 -0700