1. 12 Feb, 2022 1 commit
  2. 11 Feb, 2022 1 commit
    • Ralf W. Grosse-Kunstleve's avatar
      Python 2 removal part 1: tests (C++ code is intentionally ~untouched) (#3688) · 6493f496
      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: default avatarHenry Schreiner <henryschreineriii@gmail.com>
      Co-authored-by: default avatarAaron Gokaslan <skylion.aaron@gmail.com>
      6493f496
  3. 22 Sep, 2021 1 commit
  4. 10 Jul, 2021 1 commit
  5. 04 Jul, 2021 1 commit
  6. 20 Feb, 2021 1 commit
  7. 09 Oct, 2020 1 commit
    • Henry Schreiner's avatar
      docs: known issues (#2565) · e4e5c49a
      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
      e4e5c49a
  8. 03 Oct, 2020 1 commit
  9. 08 Sep, 2020 1 commit
  10. 30 Jun, 2020 1 commit
    • Lin Hsu's avatar
      Typo · d031efe7
      Lin Hsu authored
      d031efe7
  11. 25 Nov, 2019 2 commits
  12. 10 Jun, 2019 1 commit
  13. 13 Nov, 2018 1 commit
  14. 11 Sep, 2018 1 commit
  15. 24 Apr, 2018 1 commit
  16. 10 Mar, 2018 1 commit
  17. 17 Nov, 2017 1 commit
  18. 16 Sep, 2017 1 commit
    • Dean Moldovan's avatar
      Use semi-constexpr signatures on MSVC · 56613945
      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.
      56613945
  19. 14 Aug, 2017 1 commit
    • Jason Rhinelander's avatar
      Compile with hidden visibility always; set via cmake property rather than compiler flag · 97aa54fe
      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.
      97aa54fe
  20. 29 May, 2017 1 commit
    • Dean Moldovan's avatar
      Replace PYBIND11_PLUGIN with PYBIND11_MODULE · 443ab594
      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".
      443ab594
  21. 13 Dec, 2016 1 commit
  22. 16 Nov, 2016 1 commit
  23. 22 Oct, 2016 1 commit
  24. 21 Sep, 2016 1 commit
  25. 06 Sep, 2016 1 commit
  26. 05 Sep, 2016 1 commit
  27. 03 Jun, 2016 1 commit
  28. 17 May, 2016 1 commit
  29. 03 May, 2016 1 commit
  30. 28 Apr, 2016 1 commit
  31. 26 Apr, 2016 1 commit
  32. 18 Apr, 2016 1 commit
  33. 14 Apr, 2016 1 commit
  34. 11 Apr, 2016 1 commit
  35. 15 Mar, 2016 1 commit
  36. 09 Mar, 2016 2 commits