- 17 Sep, 2020 7 commits
-
-
Henry Schreiner committed
-
Henry Schreiner committed
-
* docs: read version from pybind11 file * docs: show full PEP 440 version everywhere
Henry Schreiner committed -
Eric Cousineau committed
-
Henry Fredrick Schreiner committed
-
This now tests the old form too, and fixes the bug introduced.
Henry Fredrick Schreiner committed -
* docs: installing section * docs: feedback from @wjakob
Henry Schreiner committed
-
- 16 Sep, 2020 5 commits
-
-
Support C++20. For backwards compatibility, we provide an alias for the old name. This change is necessary to easily avoid errors when a compiler thinks `module` is used as a keyword.
Boris Staletic committed -
* refactor: drop mkdoc * docs: update changelog
Henry Schreiner committed -
* feat: setup.py redesign and helpers * refactor: simpler design with two outputs * refactor: helper file update and Windows support * fix: review points from @YannickJadoul * refactor: fixes to naming and more docs * feat: more customization points * feat: add entry point pybind11-config * refactor: Try Extension-focused method * refactor: rename alt/inplace to global * fix: allow usage with git modules, better docs * feat: global as an extra (@YannickJadoul's suggestion) * feat: single version location * fix: remove the requirement that setuptools must be imported first * fix: some review points from @wjacob * fix: use .in, add procedure to docs * refactor: avoid monkeypatch copy * docs: minor typos corrected * fix: minor points from @YannickJadoul * fix: typo on Windows C++ mode * fix: MSVC 15 update 3+ have c++14 flag See <https://docs.microsoft.com/en-us/cpp/build/reference/std-specify-language-standard-version?view=vs-2019> * docs: discuss making SDists by hand * ci: use pep517.build instead of manual setup.py * refactor: more comments from @YannickJadoul * docs: updates from @ktbarrett * fix: change to newly recommended tool instead of pep517.build This was intended as a proof of concept; build seems to be the correct replacement. See https://github.com/pypa/pep517/pull/83 * docs: updates from @wjakob * refactor: dual version locations * docs: typo spotted by @wjakob
Henry Schreiner committed -
* 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
-