Ralf W. Grosse-Kunstleve
cc0402ef19
Tracking ci.yml changes from master.
2021-06-18 01:43:25 -07:00
Ralf W. Grosse-Kunstleve
516bdae115
Merge branch 'master' into smart_holder
2021-06-18 01:40:28 -07:00
Ralf W. Grosse-Kunstleve
19d99a87fe
Working around Centos 8 failure. ( #3030 )
...
* Experiment using -DCMAKE_BUILD_TYPE=Debug for Centos 8.
* Moving comment because the current placement seems to mess up the cmake command.
* Using `echo > VAR_XXX` and `$(cat VAR_XXX)` trick to emulate using variables (https://github.com/actions/starter-workflows/issues/68#issuecomment-524937002 ).
2021-06-18 01:35:36 -07:00
Ralf W. Grosse-Kunstleve
c48f887cd8
Merge branch 'master' into smart_holder
2021-06-17 14:01:07 -07:00
Aaron Gokaslan
b4b67f026b
Fix typos ( #3044 )
2021-06-17 13:39:59 -07:00
Aaron Gokaslan
cd4b49a2c8
Update py::kwargs examples to pass by reference ( #3038 )
2021-06-17 13:20:17 -07:00
Ralf W. Grosse-Kunstleve
840eb84aff
Removing std::get_deleter
const_cast
to retest because the code has changed significantly. ( #3045 )
2021-06-17 13:13:21 -07:00
Ralf W. Grosse-Kunstleve
4f61912646
py::smart_holder
std::shared_ptr
deleter simplification & optimization. (#3041 )
2021-06-16 17:47:22 -07:00
Ralf W. Grosse-Kunstleve
8f6ca71390
Disabling broken Centos 8 CI.
2021-06-08 12:16:57 -07:00
Ralf W. Grosse-Kunstleve
a6b2aadf45
Merge branch 'smart_holder' of https://github.com/pybind/pybind11 into smart_holder
2021-06-08 12:15:34 -07:00
Ralf W. Grosse-Kunstleve
48c7a3a68f
Merge branch 'master' into smart_holder
2021-06-08 12:05:19 -07:00
Jack S. Hale
4c7697dbe9
Add const T to docstring generation. ( #3020 )
...
* Add const T to docstring generation.
* Change order.
* See if existing test triggers for a const type.
* Add tests.
* Fix test.
* Remove experiment.
* Reformat.
* More tests, checks run.
* Adding `test_fmt_desc_` prefix to new test functions.
* Using pytest.mark.parametrize to 1. condense test; 2. exercise all functions even if one fails; 3. be less platform-specific (e.g. C++ float is not necessarily float32).
Co-authored-by: Ralf W. Grosse-Kunstleve <rwgk@google.com>
2021-06-08 11:56:45 -07:00
Robert Haschke
91f97ca401
smart_holder fixups ( #3012 )
...
* Drop constraints on casting of std::shared_ptr
std::shared_ptrs can be shared across python and C++ by design.
* Correctly report casting error
It is important to return an empty handle.
Simply returning None, would skip the error handling in
simple_collector / unpacking_collector, although a python exception is set.
A function call would then be processed with a (wrong) None argument!
* Return None for nullptr
* Revert "Drop constraints on casting of std::shared_ptr"
This reverts commit 7cf53ae8b4
.
2021-05-28 06:35:50 -07:00
Ralf W. Grosse-Kunstleve
f5bc2040bf
Merge branch 'master' into smart_holder
2021-05-27 12:59:42 -07:00
Ralf W. Grosse-Kunstleve
e25b1505db
Adjusting valgrind suppression for pypocketfft to resolve systematic failures that started to appear on 2020-05-27. ( #3022 )
2021-05-27 12:51:46 -07:00
Ralf W. Grosse-Kunstleve
c47f6aaf43
Tracking ci.yml changes from master.
2021-05-27 11:31:54 -07:00
Ralf W. Grosse-Kunstleve
2cfc017e2d
Merge branch 'master' into smart_holder
2021-05-27 11:30:03 -07:00
Yichen
3ac690b88b
Explicitly export exception types. ( #2999 )
...
* Set visibility of exceptions to default.
Co-authored-by: XZiar <czktc2007@gmail.com>
* add test
* update docs
* Skip failed test.
2021-05-27 08:00:18 -07:00
dependabot[bot]
14023c9cda
chore(deps): bump ilammy/msvc-dev-cmd from 1.8.0 to 1.8.1 ( #3021 )
2021-05-27 06:10:28 +00:00
Ralf W. Grosse-Kunstleve
1f99e8e63a
Tracking ci.yml changes from master.
2021-05-21 13:44:41 -07:00
Ralf W. Grosse-Kunstleve
9be81c84fa
Merge branch 'master' into smart_holder
2021-05-21 13:42:19 -07:00
dependabot[bot]
f61855b9d8
chore(deps): bump ilammy/msvc-dev-cmd from 1 to 1.8.0 ( #3001 )
2021-05-13 23:21:13 -04:00
dependabot[bot]
bc7cf6ef17
chore(deps): bump jwlawson/actions-setup-cmake from 1.8 to 1.9 ( #3000 )
2021-05-13 23:19:51 -04:00
Ralf W. Grosse-Kunstleve
29e46381e4
Merge branch 'master' into smart_holder
2021-05-06 09:48:55 -07:00
Eric Cousineau
b6ec0e950c
functions: Add doc on incorrect argument index ( #2979 )
...
test_call_policies: Explicitly check free-functions and static methods
2021-05-06 10:13:30 -04:00
Ralf W. Grosse-Kunstleve
b00a3f930e
Merge branch 'master' into smart_holder
2021-05-06 00:21:03 -07:00
Akira Kawata
417fd120cc
Fix: fix typo of WITHOUT_SOABI ( #2992 )
2021-05-06 00:19:05 -07:00
Ralf W. Grosse-Kunstleve
6cca66b276
Merge branch 'master' into smart_holder
2021-05-03 22:15:44 -07:00
Ralf W. Grosse-Kunstleve
bc3cd8a8a8
Splitting out include/pybind11/detail/pragma_warning_block.h ( #2988 )
...
* Splitting out include/pybind11/detail/pragma_warning_block.h
* Always including pragma_warning_block.h before common.h (resolved 8 CI failures).
2021-05-03 22:08:04 -07:00
Pieter P
0c93a0f3fc
Fix Unicode support for ostream redirects ( #2982 )
...
* Crash when printing Unicode to redirected cout
Add failing tests
* Fix Unicode crashes redirected cout
* pythonbuf::utf8_remainder check end iterator
* Remove trailing whitespace and formatting iostream
* Avoid buffer overflow if ostream redirect races
This doesn't solve the actual race, but at least it now has a much lower
probability of reading past the end of the buffer even when data races
do occur.
2021-05-03 22:04:38 -07:00
Ralf W. Grosse-Kunstleve
2256f2a2e1
Updating ci_sh_def.yml, ci_sh_def.yml.patch after git merge master
. Pushing directly for this mechanical update.
2021-04-22 06:33:17 -07:00
Ralf W. Grosse-Kunstleve
212a083dc0
Merge branch 'master' into smart_holder
2021-04-22 06:30:10 -07:00
Ralf W. Grosse-Kunstleve
c169a5e025
Adding link to PR #2644 . Pushing directly for this minor addition to the documentation.
2021-04-22 06:26:39 -07:00
Henry Schreiner
54430436fe
ci: install Boost for boost checks ( #2968 )
2021-04-22 00:03:07 -04:00
Ralf W. Grosse-Kunstleve
91e81b07d7
Re-enabling Python 3.10-dev jobs, made possible by PR #2967 . Pushing directly because this just affects the CI config.
2021-04-21 12:42:06 -07:00
Ralf W. Grosse-Kunstleve
7d093a1906
Merge branch 'master' into smart_holder
2021-04-21 12:36:53 -07:00
dependabot[bot]
bca4b36ba7
chore(deps): bump pre-commit/action from v2.0.2 to v2.0.3 ( #2964 )
...
Bumps [pre-commit/action](https://github.com/pre-commit/action ) from v2.0.2 to v2.0.3.
- [Release notes](https://github.com/pre-commit/action/releases )
- [Commits](https://github.com/pre-commit/action/compare/v2.0.2...9b88afc9cd57fd75b655d5c71bd38146d07135fe )
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-21 15:00:00 -04:00
Henry Schreiner
5e4804bb66
tests: use master commit for pytest on 3.10 ( #2967 )
2021-04-21 13:30:01 -04:00
Ralf W. Grosse-Kunstleve
d7f98ac9a1
Adding CI-SH-DEF GitHub Actions workflow, based on PR #2930 . ( #2963 )
...
* Adding ci_sh_def.yml, based on PR #2930 .
* Adding exludes for .patch files.
2021-04-20 14:34:31 -07:00
Ralf W. Grosse-Kunstleve
7c7c336d6d
Merge branch 'master' into smart_holder
2021-04-19 11:32:47 -07:00
Ralf W. Grosse-Kunstleve
99de498b26
Bug fix: adding back !is_alias<Class>(ptr)
that were accidentally omitted. ( #2958 )
...
* Bug fix: adding back `!is_alias<Class>(ptr)` that were accidentally omitted.
* Introducing PYBIND11_SH_AVL, PYBIND11_SH_DEF macros. Applying PYBIND11_SH_DEF to test_factory_constructors.py to complete test coverage.
* Using PYBIND11_SH_DEF in test_methods_and_attributes.cpp, for more complete test coverage.
* Using PYBIND11_SH_DEF in test_multiple_inheritance.cpp, for more complete test coverage.
* Cleaning up test_classh_mock.cpp.
* Better explanations for PYBIND11_SH_AVL, PYBIND11_SH_DEF.
* Disabling 3.10-dev builds.
2021-04-19 10:54:37 -07:00
mvoelkle-cern
e08a58111d
Fix compilation with gcc < 5 ( #2956 )
...
When the user defines _GLIBCXX_USE_CXX11_ABI=0 to force the pre-c++11 ABI, numpy.h assumes that is_trivially_copyable is available.
It is not necessarily the case. This patch uses clang's feature detection instead.
The workaround is for certain libstdc++ versions, so the test should target these particular versions.
2021-04-19 13:53:57 -04:00
Ralf W. Grosse-Kunstleve
0032083113
Merge branch 'master' into smart_holder
2021-04-16 07:27:12 -07:00
Ralf W. Grosse-Kunstleve
d368b72881
Connecting PYBIND11_INTERNALS_VERSION to PYBIND11_USE_SMART_HOLDER_AS_DEFAULT. ( #2939 )
...
* Connecting PYBIND11_INTERNALS_VERSION to PYBIND11_USE_SMART_HOLDER_AS_DEFAULT.
* Adding section: Classic / Conservative / Progressive cross-module compatibility
2021-04-16 07:15:23 -07:00
Henry Schreiner
114be7f4ad
docs: remove recommonmark ( #2955 )
2021-04-15 18:27:16 -04:00
Ralf W. Grosse-Kunstleve
1c8795a205
Changing PYBIND11_SMART_HOLDER_TYPE_CASTERS to use __VA_ARGS__.
2021-04-15 10:33:44 -07:00
Ralf W. Grosse-Kunstleve
ab590c624b
Disabling deadsnakes 3.10-dev CI (currently broken).
2021-04-14 15:00:56 -07:00
Ralf W. Grosse-Kunstleve
cf89b865bb
Adding documentation with associated test: Using py::classh but with fallback to classic pybind11
2021-04-14 15:00:56 -07:00
Ralf W. Grosse-Kunstleve
793adbda50
Revert "Adding documentation with associated test: Using py::classh but with fallback to classic pybind11"
...
This reverts commit 49f8f60ec4
.
The direct commit was accidental. I meant to create a PR.
2021-04-14 12:31:41 -07:00
Ralf W. Grosse-Kunstleve
5f050c4a7e
Merge branch 'master' into smart_holder
2021-04-14 12:21:49 -07:00