- 03 Aug, 2021 5 commits
-
-
Henry Schreiner committed
-
Henry Schreiner committed
-
* chore: changelog update * Update docs/changelog.rst
Henry Schreiner committed -
* Fix func_handle for rule of two * Apply reviewer suggestion
Aaron Gokaslan committed -
updates: - [github.com/asottile/pyupgrade: v2.23.0 → v2.23.1](https://github.com/asottile/pyupgrade/compare/v2.23.0...v2.23.1) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pre-commit-ci[bot] committed
-
- 30 Jul, 2021 3 commits
-
-
* Moving pragma for C4505 from pybind11.h to existing list in detail/common.h. * Removing 4 existing suppressions to 1. see what is still needed and 2. capture the MSVC messages. * It turns out none of the 4 pragmas are needed anymore.
Ralf W. Grosse-Kunstleve committed -
* mingw64 platform string is like mingw_xxx not "mingw" See https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-python/0099-Change-the-get_platform-method-in-sysconfig-and-dist.patch * Mingw: Do not dllexport exceptions This is a fix for errors like: D:/a/pybind11/pybind11/include/pybind11/detail/common.h:735:23: error: 'dllexport' implies default visibility, but 'class pybind11::builtin_exception' has already been declared with a different visibility 735 | class PYBIND11_EXPORT builtin_exception : public std::runtime_error { | ^~~~~~~~~~~~~~~~~ * GHA: Test Mingw64 build * fix: avoid thin binaries on mingw * fix: drop lto on MinGW * Mingw64: disable PYBIND11_DEPRECATED It trigger many warnings for unknown reasons Co-authored-by: Henry Schreiner <henryschreineriii@gmail.com>
Jerome Robert committed -
* Moving pragma for ignoring -Wnoexcept-type to the one location where it is needed. * Trying a second location. * The previous commit worked (GitHub Actions green), but see the added comment about the dicy nature of -Wnoexcept-type ("if and only if"). * Applying reviewer suggestion.Ralf W. Grosse-Kunstleve committed
-
- 29 Jul, 2021 10 commits
-
-
Accommodating environments that define __STDC_WANT_LIB_EXT1__ even if __STDC_LIB_EXT1__ is not defined by the implementation. (#3151) Follow-on to PR #3129.
Ralf W. Grosse-Kunstleve committed -
* Fixing `pragma warning pop` for `__INTEL_COMPILER`. * Adding push/pop to 3 tests. Removing #878 from top of pybind11.h (it was/is only needed for 1 test). * Trying again after CI failure, moving the push to the top of 2 tests. * Trying more after CI failure, adding push/pop to pybind11_tests.h, constructor_stats.h. * Moving ICC #2196 suppression to CMakeLists.txt * Fixing condition for `pragma GCC diagnostic push` in pybind11.h * Moving `pragma warning disable 2196` to common.h * Revising #ifdef to be more conservative. * Undoing insertion of notes that will hopefully soon be completely obsolete anyway.
Ralf W. Grosse-Kunstleve committed -
* maint(clang-tidy) Improve code readability * Fix minor typos * Revert optimization that removed test case * Fix comment formatting * Revert another optimization to repro an issue * Remove make_unique since it C++14 and newer only * eformat comments * Fix unsignedness of comparison * Update comment
Aaron Gokaslan committed -
Henry Schreiner committed
-
* Allow python builtins to be used as callbacks * Try to fix pypy segfault * Add expected fail for PyPy * Fix typo * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add more info to xfail * Add env * Try returning false * Try removing the move for pypy * Fix bugs * Try removing move * Just keep ignoring for PyPy * Add back xfail * Fix ctors * Revert change of std::move * Change to skip * Fix bug and edit comments * Remove clang-tidy bugprone fix skip bug Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
David Hewitt committed -
* Adding PYBIND11_COMPAT_BOOL_CAST to appease MSVC 2015 warning C4800. * Replacing PYBIND11_COMPAT_BOOL_CAST with simpler != 0 * Extra parentheses (almost all compilers failed without these).
Ralf W. Grosse-Kunstleve committed -
updates: - [github.com/asottile/pyupgrade: v2.21.2 → v2.23.0](https://github.com/asottile/pyupgrade/compare/v2.21.2...v2.23.0) Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
pre-commit-ci[bot] committed -
Ralf W. Grosse-Kunstleve committed
-
* Removing MSVC C4996 from pragma block at the top of pybind11.h * localtime_thread_safe, PYBIND11_COMPAT_STRDUP * Adding #include <ctime> (attempt to fix MSVC 2015, 2017 errors).
Ralf W. Grosse-Kunstleve committed -
* Specified encoding in setup.py calls of open() * Fix for Python2 Co-authored-by: Karsten Bock <karsten.bock@dlr.de>
ka-bo committed
-
- 20 Jul, 2021 2 commits
-
-
* Move item instead of copy. * Make Clang 3.6 happy. Co-authored-by: c99 <email@dummy.com>
blacktea committed -
updates: - [github.com/asottile/pyupgrade: v2.21.0 → v2.21.2](https://github.com/asottile/pyupgrade/compare/v2.21.0...v2.21.2) - [github.com/psf/black: 21.6b0 → 21.7b0](https://github.com/psf/black/compare/21.6b0...21.7b0) - https://gitlab.com/pycqa/flake8 → https://github.com/PyCQA/flake8
pre-commit-ci[bot] committed
-
- 17 Jul, 2021 2 commits
-
-
Ralf W. Grosse-Kunstleve committed
-
Henry Schreiner committed
-
- 16 Jul, 2021 2 commits
-
-
Henry Schreiner committed
-
Henry Schreiner committed
-
- 15 Jul, 2021 6 commits
-
-
* Introducing PYBIND11_VERSION_HEX (better late than never!) * PYBIND11_VERSION_HEX consistency check in setup.py
Ralf W. Grosse-Kunstleve committed -
Henry Schreiner committed
-
The docutils 0.17+ release uses more semantic HTML5 tags, which the RTD theme does not (yet) know. This breaks side bar, lists and other elements.
Axel Huebl committed -
Henry Schreiner committed
-
Henry Schreiner committed
-
* Enable -Wstrict-aliasing warning * Narrow down the scope of -Wstrict-aliasing * Go home, MSVC, you're drunk * Make sure "pragma GCC" is not executed on ICC Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
Boris Staletic committed
-
- 14 Jul, 2021 4 commits
-
-
Aaron Gokaslan committed
-
* style: disallow PyTest (should be pytest) * style: cleanup spell checking a bit * style: add a few items to the .gitignore
Henry Schreiner committed -
* Raise codec errors when casting to std::string Allow the codec's exception to be raised instead of RuntimeError when casting from py::str to std::string. PY2 allows ucs surrogates in UTF-8 conversion Signed-off-by: Shane Loretz <sloretz@openrobotics.org> Signed-off-by: Shane Loretz <sloretz@osrfoundation.org> * Attempt to fix py2 error * Revert all unicode literals * Fixed Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
Shane Loretz committed -
* Removing stray semicolons (discovered by running clang-format v12 followed by tools/check-style.sh). (#3087) * Manually moving `// NOLINT` comments so that clang-format does not move them to the wrong places. * Manually reformatting comments related to `static_assert`s so that clang-format does not need two passes. * Empty lines between #includes, to prevent clang-format from shuffling the order and thereby confusing MSVC 2015. * git diff -U0 --no-color HEAD^ | python3 $HOME/clone/llvm-project/clang/tools/clang-format/clang-format-diff.py -p1 -style=file -i
Ralf W. Grosse-Kunstleve committed
-
- 13 Jul, 2021 6 commits
-
-
For single-file extensions, a convenient pattern offered by cython is to place the source files directly in the python source tree (`foo/__init__.py`, `foo/ext.pyx`), deriving the package names from their filesystem location. Adapt this pattern for pybind11, using an `intree_extensions` helper, which should be thought of as the moral equivalent to `cythonize`. Differences with cythonize: I chose not to include globbing support (`intree_extensions(glob.glob("**/*.cpp"))` seems sufficient), nor to provide extension-customization kwargs (directly setting the attributes on the resulting Pybind11Extension objects seems sufficient). We could choose to have `intree_extension` (singular instead) and make users write `[*map(intree_extension, glob.glob("**/*.cpp"))]`; no strong opinion here. Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>Antony Lee committed -
* Improve documentation of discard_as_unraisable() API * Update pytypes.h Remove "the above" * Update pytypes.h Fix precommit error Co-authored-by: Aaron Gokaslan <skylion.aaron@gmail.com>
jbarlow83 committed -
fix(clang-tidy): Add cppcoreguidelines-init-vars,slicing, and throw-by-value-catch-by-reference checks (#3094) * clang-tidy: guard against more UB behavior * Remove slicing check for now
Aaron Gokaslan committed -
* docs: update changelog * docs: add one more and merge tidy
Henry Schreiner committed -
Henry Schreiner committed
-
Henry Schreiner committed
-