- 12 Feb, 2022 1 commit
-
-
Henry Schreiner authored
* chore: drop Python 3.5 support * chore: more fstrings with flynt's help * ci: drop Python 3.5 * chore: bump dependency versions * docs: touch up py::args * tests: remove deprecation warning * Ban smartquotes * Very minor tweaks (by-product of reviewing PR #3719). Co-authored-by:
Aaron Gokaslan <skylion.aaron@gmail.com> Co-authored-by:
Ralf W. Grosse-Kunstleve <rwgk@google.com>
-
- 11 Feb, 2022 1 commit
-
-
Ralf W. Grosse-Kunstleve authored
* `#error BYE_BYE_GOLDEN_SNAKE` * Removing everything related to 2.7 from ci.yml * Commenting-out Centos7 * Removing `PYTHON: 27` from .appveyor.yml * "PY2" removal, mainly from tests. C++ code is not touched. * Systematic removal of `u` prefix from `u"..."` and `u'...'` literals. Collateral cleanup of a couple minor other things. * Cleaning up around case-insensitive hits for `[^a-z]py.*2` in tests/. * Removing obsolete Python 2 mention in compiling.rst * Proper `#error` for Python 2. * Using PY_VERSION_HEX to guard `#error "PYTHON 2 IS NO LONGER SUPPORTED.` * chore: bump pre-commit * style: run pre-commit for pyupgrade 3+ * tests: use sys.version_info, not PY * chore: more Python 2 removal * Uncommenting Centos7 block (PR #3691 showed that it is working again). * Update pre-commit hooks * Fix pre-commit hook * refactor: remove Python 2 from CMake * refactor: remove Python 2 from setup code * refactor: simplify, better static typing * feat: fail with nice messages * refactor: drop Python 2 C++ code * docs: cleanup for Python 3 * revert: intree revert: intree * docs: minor touchup to py2 statement Co-authored-by:
Henry Schreiner <henryschreineriii@gmail.com> Co-authored-by:
Aaron Gokaslan <skylion.aaron@gmail.com>
-
- 22 Sep, 2021 1 commit
-
-
Aaron Gokaslan authored
* Apply blacken-docs and fix language-hints * Add blacken-docs pre-commit hook * Add pycln pre-commit hook * Enable a few builtin hooks * Black no longer ignores pyi files
-
- 10 Jul, 2021 1 commit
-
-
Jan Iwaszkiewicz authored
* py::pickle typo * correct dots and parentheses
-
- 04 Jul, 2021 1 commit
-
-
luzpaz authored
Found via `codespell -q 3 -L nd,ot,thist`
-
- 20 Feb, 2021 1 commit
-
-
jakobjw authored
-
- 09 Oct, 2020 1 commit
-
-
Henry Schreiner authored
* docs: FAQ CMake updates * docs: limitations * ci: don't over label * docs: update CHANGELOG, add a bit more structure * ci: label PRs with more labels, and sooner * docs: updates from @rwgk * docs: address @YannickJadoul's points
-
- 03 Oct, 2020 1 commit
-
-
Henry Schreiner authored
* WIP: module -> module_ without typedef * refactor: allow py::module to work again
-
- 08 Sep, 2020 1 commit
-
-
Henry Schreiner authored
* ci: only annotate linux for now * style: block some common mistakes
-
- 30 Jun, 2020 1 commit
-
-
Lin Hsu authored
-
- 25 Nov, 2019 2 commits
-
-
Eric Cousineau authored
-
Charles Brossollet authored
* Add FAQ entry, with code example, for dealing with long functions interruption
-
- 10 Jun, 2019 1 commit
-
-
Ivor Wanders authored
* Adds section to the reference. * Adds section to advanced classes page describing how to use `get_overload`.
-
- 13 Nov, 2018 1 commit
-
-
Ahuva Kroizer authored
* Add possible solution to ImportError issue
-
- 11 Sep, 2018 1 commit
-
-
Semen Yesylevskyy authored
* Info about inconsistent detection of Python version between pybind11 and CMake in FAQ
-
- 24 Apr, 2018 1 commit
-
-
David Caron authored
-
- 10 Mar, 2018 1 commit
-
-
Marc Schlaich authored
-
- 17 Nov, 2017 1 commit
-
-
Wenzel Jakob authored
-
- 16 Sep, 2017 1 commit
-
-
Dean Moldovan authored
MSCV does not allow `&typeid(T)` in constexpr contexts, but the string part of the type signature can still be constexpr. In order to avoid `typeid` as long as possible, `descr` is modified to collect type information as template parameters instead of constexpr `typeid`. The actual `std::type_info` pointers are only collected in the end, as a `constexpr` (gcc/clang) or regular (MSVC) function call. Not only does it significantly reduce binary size on MSVC, gcc/clang benefit a little bit as well, since they can skip some intermediate `std::type_info*` arrays.
-
- 14 Aug, 2017 1 commit
-
-
Jason Rhinelander authored
This updates the compilation to always apply hidden visibility to resolve the issues with default visibility causing problems under debug compilations. Moreover using the cmake property makes it easier for a caller to override if absolutely needed for some reason. For `pybind11_add_module` we use cmake to set the property; for the targets, we append to compilation option to non-MSVC compilers.
-
- 29 May, 2017 1 commit
-
-
Dean Moldovan authored
This commit also adds `doc()` to `object_api` as a shortcut for the `attr("__doc__")` accessor. The module macro changes from: ```c++ PYBIND11_PLUGIN(example) { pybind11::module m("example", "pybind11 example plugin"); m.def("add", [](int a, int b) { return a + b; }); return m.ptr(); } ``` to: ```c++ PYBIND11_MODULE(example, m) { m.doc() = "pybind11 example plugin"; m.def("add", [](int a, int b) { return a + b; }); } ``` Using the old macro results in a deprecation warning. The warning actually points to the `pybind11_init` function (since attributes don't bind to macros), but the message should be quite clear: "PYBIND11_PLUGIN is deprecated, use PYBIND11_MODULE".
-
- 13 Dec, 2016 1 commit
-
-
Lori A. Burns authored
-
- 16 Nov, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 22 Oct, 2016 1 commit
-
-
Jason Rhinelander authored
* Remove obsolete example reference * Make example fully-working (except for #includes) Fixes #456.
-
- 21 Sep, 2016 1 commit
-
-
Jason Rhinelander authored
-
- 06 Sep, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 05 Sep, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 03 Jun, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 17 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 03 May, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 28 Apr, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 26 Apr, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 18 Apr, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 14 Apr, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 11 Apr, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 15 Mar, 2016 1 commit
-
-
Wenzel Jakob authored
-
- 09 Mar, 2016 2 commits
-
-
Wenzel Jakob authored
-
Wenzel Jakob authored
-