- 16 Sep, 2020 2 commits
-
-
* refactor: replace .get_type with type::handle_of * refactor: use impl for handle_of * fix: deprecate h.get_type()
Henry Schreiner committed -
* Add vcpkg installation instructions * Casing * Move instructions Co-authored-by: Henry Fredrick Schreiner <henry.fredrick.schreiner@cern.ch>
Griffin Downs committed
-
- 15 Sep, 2020 12 commits
-
-
* fix: use OVERRIDE instead of OVERLOAD * docs: more accurate statement
Henry Schreiner committed -
Change base parameter type in register_exception and exception constructor from PyObject* to handle (#2467) * Change base parameter type in register_exception and excepion constructor from PyObject* to handle * Fix compilation error passing `handle` to `PyObject*`
Yannick Jadoul committed -
``` /pybind11/include/pybind11/iostream.h:71:9: warning: Call to virtual method 'pythonbuf::sync' during destruction bypasses virtual dispatch [clang-analyzer-optin.cplusplus.VirtualCall] sync(); ^ /pybind11/tests/test_iostream.cpp:72:5: note: Calling '~scoped_ostream_redirect' }); ```Henry Schreiner committed -
Henry Schreiner committed
-
Henry Schreiner committed
-
Henry Schreiner committed
-
Henry Schreiner committed
-
Henry Schreiner committed
-
Henry Schreiner committed
-
Henry Schreiner committed
-
Resolve empty statement warning when using PYBIND11_OVERLOAD_PURE_NAME and PYBIND11_OVERLOAD_PURE (#2325) * Wrap PYBIND11_OVERLOAD_NAME and PYBIND11_OVERLOAD_PURE_NAME in do { ... } while (false), and resolve trailing semicolon * Deprecate PYBIND11_OVERLOAD_* and get_overload in favor of PYBIND11_OVERRIDE_* and get_override * Correct erroneous usage of 'overload' instead of 'override' in the implementation and internals * Fix tests to use non-deprecated PYBIND11_OVERRIDE_* macros * Update docs to use override instead of overload where appropriate, and add warning about deprecated aliases * Add semicolons to deprecated PYBIND11_OVERLOAD macros to match original behavior * Remove deprecation of PYBIND11_OVERLOAD_* macros and get_overload * Add note to changelog and upgrade guideYannick Jadoul committed -
Stop py::array_t arguments from accepting arrays that do not match the C- or F-contiguity flags (#2484) * Stop py::array_t arguments from accepting arrays that do not match the C- or F-contiguity flags * Add trivially-contiguous arrays to the tests
Yannick Jadoul committed
-
- 14 Sep, 2020 2 commits
-
-
* feat: type<T>() * refactor: using py::type as class * refactor: py::object as base * wip: tigher api * refactor: fix conversion and limit API further * docs: some added notes from @EricCousineau-TRI * refactor: use py::type::of
Henry Schreiner committed -
Why only for pointers? Because C casts are hard to grep for.
Boris Staletic committed
-
- 13 Sep, 2020 1 commit
-
-
Boris Staletic committed
-
- 12 Sep, 2020 1 commit
-
-
* Added guards to the includes Added new CI config Added new trigger Changed CI workflow name Debug CI Debug CI Debug CI Debug CI Added flags fro PGI Disable Eigen Removed tests that fail Uncomment lines * fix: missing include fix: minor style cleanup tests: support skipping ci: remove and tighten a bit fix: try msvc workaround for pgic * tests: split up prealoc tests * fix: PGI compiler fix * fix: PGI void_t only * fix: try to appease nvcc * ci: better ordering for slow tests * ci: minor improvements to testing * ci: Add NumPy to testing * ci: Eigen generates CUDA warnings / PGI errors * Added CentOS7 back for a moment * Fix YAML * ci: runs-on missing * centos7 is missing pytest * ci: use C++11 on CentOS 7 * ci: test something else * Try just adding flags on CentOS 7 * fix: CentOS 7 * refactor: move include to shared location * Added verbose flag * Try to use system cmake3 on CI * Try to use system cmake3 on CI, attempt2 * Try to use system cmake3 on CI, attempt3 * tests: not finding pytest should be a warning, not a fatal error * tests: cleanup * Weird issue? * fix: final polish Co-authored-by: Andrii Verbytskyi <andrii.verbytskyi@mpp.mpg.de> Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by: Andrii Verbytskyi <averbyts@cern.ch>
andriish committed
-
- 11 Sep, 2020 1 commit
-
-
Add check if `str(handle)` correctly converted the object, and throw py::error_already_set if not (bis) (#2477) * Add check if `str(handle)` correctly converted the object, and throw py::error_already_set if not * Fix tests on Python 3 * Apply @rwgk's fixes to cherry-picked commits from #2392
Yannick Jadoul committed
-
- 10 Sep, 2020 2 commits
-
-
The variables PYBIND11_HAS_OPTIONAL, PYBIND11_HAS_EXP_OPTIONAL, PYBIND11_HAS_VARIANT, __clang__, __APPLE__ were not checked for defined in a minortity of instances. If the project using pybind11 sets -Wundef, the warnings will show. The test build is also modified to catch the problem.
Ciro Santilli committed -
* fix: support nvcc and test * fixup! fix: support nvcc and test * docs: mention what compilers fail * fix: much simpler logic * refactor: slightly faster / clearer
Henry Schreiner committed
-
- 09 Sep, 2020 1 commit
-
-
* Add py::object casting example to embedding docs * Move implicit cast example to object.rst * Move to bottom and improve implicit casting text * Fix xref * Improve wording as per @bstaletic's suggestion
Holger Kohr committed
-
- 08 Sep, 2020 1 commit
-
-
* ci: only annotate linux for now * style: block some common mistakes
Henry Schreiner committed
-
- 06 Sep, 2020 3 commits
-
-
Wenzel Jakob committed
-
Wenzel Jakob committed
-
* Add note about specifying custom base. * Update exception docs based on PR feedback. * Fix trailing whitespace. Co-authored-by: Michal Sustr <michal.sustr@aic.fel.cvut.cz>
michalsustr committed
-
- 05 Sep, 2020 2 commits
-
-
* fix: use classic extension handling unless otherwise requested * fix: variable must be cached to be used externally
Henry Schreiner committed -
* feat: py::pos_only * fix: review points from @YannickJadoul * fix: review points from @bstaletic * refactor: kwonly -> kw_only
Henry Schreiner committed
-
- 04 Sep, 2020 1 commit
-
-
Eric Cousineau committed
-
- 03 Sep, 2020 1 commit
-
-
Henry Schreiner committed
-
- 01 Sep, 2020 1 commit
-
-
* doc: avoid C++ types in docstrings * A bit of rewording * Another bit of rewording * Third rewording
Sergei Izmailov committed
-
- 31 Aug, 2020 2 commits
-
-
* ci: harden chrono test, mark another macos 4.9 dev failure This should help with a little of the flakiness seen with the timing test * Update tests/test_chrono.py * Can also fail
Henry Schreiner committed -
Daniel Saxton committed
-
- 28 Aug, 2020 2 commits
-
-
Adding missing `bytes` type to `test_constructors()`, to exercise the code change. The changes in the PR were cherry-picked from PR #2409 (with a very minor modification in test_pytypes.py related to flake8). Via PR #2409, these changes were extensively tested in the Google environment, as summarized here: https://docs.google.com/document/d/1TPL-J__mph_yHa1quDvsO12E_F5OZnvBaZlW9IIrz8M/ The changes in this PR did not cause an issues at all. Note that `test_constructors()` before this PR passes for Python 2 only because `pybind11::str` can hold `PyUnicodeObject` or `PyBytesObject`. As a side-effect of this PR, `test_constructors()` no longer relies on this permissive `pybind11::str` behavior. However, the permissive behavior is still exercised/exposed via the existing `test_pybind11_str_raw_str()`. The test code change is designed to enable easy removal later, when Python 2 support is dropped. For completeness: confusingly, the non-test code changes travelled through PR Example `ambiguous conversion` error fixed by this PR: ``` pybind11/tests/test_pytypes.cpp:214:23: error: ambiguous conversion for functional-style cast from 'pybind11::detail::item_accessor' (aka 'accessor<accessor_policies::generic_item>') to 'py::bytes' "bytes"_a=py::bytes(d["bytes"]), ^~~~~~~~~~~~~~~~~~~~ pybind11/include/pybind11/detail/../pytypes.h:957:21: note: candidate constructor PYBIND11_OBJECT(bytes, object, PYBIND11_BYTES_CHECK) ^ pybind11/include/pybind11/detail/../pytypes.h:957:21: note: candidate constructor pybind11/include/pybind11/detail/../pytypes.h:987:15: note: candidate constructor inline bytes::bytes(const pybind11::str &s) { ^ 1 error generated. ```
Ralf W. Grosse-Kunstleve committed -
Fix bug roundtripping datetime.time objects after midnight in eastern hemisphere timezones (#2417) (#2438) * Fix bug roundtripping datetime.time objects after midnight in eastern hemisphere timezones (#2417) * tests: check more timezones * Fix review remarks: remove useless comment and skip setting TZ environment variable on Windows
Yannick Jadoul committed
-
- 26 Aug, 2020 3 commits
-
-
Dekken committed
-
* fix: respect PYTHON_VERSION if set in classic mode * fix: add warning when using PYTHON_VERSION
Henry Schreiner committed -
tests: fix CI by including <algorithm> to stop MSVC from complaining about std::count_if in tests/test_sequences_and_iterators.cpp (#2435)
Yannick Jadoul committed
-
- 25 Aug, 2020 1 commit
-
-
Throw exception on returning a unique_ptr or shared_ptr nullptr (or any other holder type) from py::init, rather than crashing (#2430)
Yannick Jadoul committed
-
- 24 Aug, 2020 1 commit
-
-
Henry Schreiner committed
-