Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge 'upstream/master' (v2.10.0, aa304c9c) #61

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
444 commits
Select commit Hold shift + click to select a range
b3573ac
feat: add `.keys` and `.values` to bind_map (#3310)
bmerry Oct 1, 2021
ad96655
fix: replace free() with std::free() (#3321)
Skylion007 Oct 4, 2021
d7a7edc
tests: support Eigen configuration
henryiii Oct 4, 2021
9f146a5
All `-DDOWNLOAD_EIGEN=OFF` (to work around gitlab eigen outage).
Oct 3, 2021
591db0b
docs: update CHANGELOG for 2.8
henryiii Oct 1, 2021
20aae3e
ci: disable Eigen due to Cert issue on CentOS
henryiii Oct 4, 2021
c9a319c
chore: version 2.8.0 final
henryiii Oct 4, 2021
3747dc2
Revert "All `-DDOWNLOAD_EIGEN=OFF` (to work around gitlab eigen outag…
henryiii Oct 4, 2021
97976c1
[pre-commit.ci] pre-commit autoupdate (#3325)
pre-commit-ci[bot] Oct 4, 2021
e315e1f
Merge branch 'master' into stable
henryiii Oct 4, 2021
ba9f919
chore: get back to work after 2.8.0
henryiii Oct 4, 2021
47ed124
Fix some formatting in the v2.8.0 changelog (#3339)
bmerry Oct 8, 2021
ed09664
chore(deps): bump ilammy/msvc-dev-cmd from 1.9.0 to 1.10.0 (#3338)
dependabot[bot] Oct 8, 2021
f4c81e0
maint: Add additional linter-related pre-commit hooks (#3337)
Skylion007 Oct 8, 2021
750e38d
Update eval.h (#3344)
naddu77 Oct 9, 2021
8a7c266
Fix make_key_iterator/make_value_iterator for prvalue iterators (#3348)
bmerry Oct 11, 2021
02c0557
[pre-commit.ci] pre-commit autoupdate (#3353)
pre-commit-ci[bot] Oct 11, 2021
7c58058
Correct options on Eigen::MappedSparseMatrix & adding MSVC C4127 supp…
Oct 11, 2021
56b49c2
ci: fix mingw checks by pinning (#3375)
jeromerobert Oct 18, 2021
931f664
ci: cancel in-progress on repeated pushes (#3370)
henryiii Oct 18, 2021
f791dc8
fix: deprecate make_simple_namespace, fix Python 3.11 (#3374)
henryiii Oct 19, 2021
2d6014e
docs: fix minor typo (#3390)
gmgunter Oct 21, 2021
606f81a
style: drop pycln (#3397)
henryiii Oct 22, 2021
076c89f
tests: test recursive dispatch using visitor pattern (#3365)
dyershov Oct 22, 2021
78ee782
feat: Add C++ binding to throw AttributeError (#3387)
Skylion007 Oct 23, 2021
9379b39
fix: MSVC 2017 C++17 on Python 3 regression (#3407)
henryiii Oct 25, 2021
d45a881
[pre-commit.ci] pre-commit autoupdate (#3409)
pre-commit-ci[bot] Oct 25, 2021
c2d3e22
fix: the types for return_value_policy_override in optional_caster (#…
ryancahoon-zoox Oct 26, 2021
e7e2c79
fix: improve support for Python 3.11-dev (#3368)
henryiii Oct 26, 2021
90707b4
fix(build): support conan's multiple includes of all files (#3420)
henryiii Oct 27, 2021
f1594cb
docs: changelog update for 2.8.1 (#3416)
henryiii Oct 27, 2021
f7b4996
[skip ci] Tweaks in preparation for the 2.8.1 release. (#3421)
Oct 27, 2021
acae930
Merge branch 'master' into stable
Oct 27, 2021
a80b223
chore: get back to work after 2.8.1
Oct 27, 2021
e7c9753
feat: allow kw-only args after a py::args (#3402)
jagerman Oct 29, 2021
dd2d127
Correct "which" versus "that" error. (#3430)
hovey Nov 1, 2021
6de30d3
[pre-commit.ci] pre-commit autoupdate (#3432)
pre-commit-ci[bot] Nov 1, 2021
a61e354
docs: touch up manual release suggestion (#3422)
henryiii Nov 6, 2021
01f938e
fix: add missing std::forward calls (#3443)
Boris-Rasin Nov 7, 2021
b322018
[pre-commit.ci] pre-commit autoupdate (#3449)
pre-commit-ci[bot] Nov 8, 2021
b11ff91
fix(setup =_helpers): don't add -g0 CFLAGS sets -g (#3436)
anntzer Nov 8, 2021
aebd21b
docs: rework CI a bit, more modern skipping (#3424)
henryiii Nov 10, 2021
e450eb6
Removed duplicated word in docs/advanced/cast/eigen.rst (#3458)
Gjacquenot Nov 12, 2021
270b11d
Revert "style: drop pycln" (#3466)
henryiii Nov 14, 2021
afdc09d
[master] Wrong caching of overrides (#3465)
Trigve Nov 15, 2021
9422d98
[pre-commit.ci] pre-commit autoupdate (#3473)
pre-commit-ci[bot] Nov 16, 2021
d2b2131
cmake: report version type in the version string (#3472)
sergiud Nov 16, 2021
1eb5996
Removed duplicated word in docs/advanced/exceptions.rst (#3476)
Gjacquenot Nov 16, 2021
72282f7
ci: support development releases of Python (#3419)
henryiii Nov 17, 2021
ff51fcb
docs: fix broken link (again)
henryiii Nov 18, 2021
15f8d7c
fix(build): cleaner CMake printouts & IDE folders (#3479)
henryiii Nov 18, 2021
56322da
fixed include for filesystem::path (#3482)
ngc92 Nov 18, 2021
673b4be
Fix py::kw_only when used before the first arg of a method (#3488)
jagerman Nov 21, 2021
9281faf
Fixing `stict` vs `strict` typo. (#3493)
Nov 22, 2021
5d067e8
fix: remove redundant copy operation to fix warning (#3486)
Lishen1 Nov 22, 2021
fe65693
[pre-commit.ci] pre-commit autoupdate (#3500)
pre-commit-ci[bot] Nov 22, 2021
70a58c5
Replace usage of deprecated Eigen class MappedSparseMatrix. (#3499)
rmlarsen Nov 23, 2021
cd176ce
chore: update changelog with recent PRs (#3524)
henryiii Dec 2, 2021
b4939fc
Expand std::string_view support to str, bytes, memoryview (#3521)
jagerman Dec 3, 2021
a224d0c
fix: vs2022 compilation, issue #3477 (#3497)
Boris-Rasin Dec 3, 2021
59aa998
[pre-commit.ci] pre-commit autoupdate (#3533)
pre-commit-ci[bot] Dec 6, 2021
7516811
fix(setup_helpers): ensure ThreadPool is closed (#3548)
bobbyi Dec 13, 2021
d0406c7
[pre-commit.ci] pre-commit autoupdate (#3563)
pre-commit-ci[bot] Dec 21, 2021
b3d9c35
vi: replacing currently broken ICC Latest C++17 with C++14. (#3551)
Dec 21, 2021
39fbc79
fix: avoiding usage of _ if already defined (#3423)
henryiii Dec 21, 2021
e50f841
fix: do not use LTS on mips64 and ppc64le (#3557)
henryiii Dec 21, 2021
d4b9f34
docs: update changelog (#3556)
henryiii Dec 21, 2021
cb30230
fix: restore full range of _ functions (#3571)
henryiii Dec 23, 2021
89769e6
[pre-commit.ci] pre-commit autoupdate (#3574)
pre-commit-ci[bot] Dec 27, 2021
45f792e
chore: prepare for 2.9
henryiii Dec 28, 2021
9371614
Merge branch 'master' into stable
henryiii Dec 28, 2021
9b4f71d
docs: remove duplication in changelog for 2.9.0
henryiii Dec 28, 2021
1bbaeb3
Adding dedicated test_const_name. (#3578)
Dec 29, 2021
2cd32e5
[pre-commit.ci] pre-commit autoupdate (#3589)
pre-commit-ci[bot] Jan 3, 2022
fb9a222
chore(deps): bump pypa/gh-action-pypi-publish from 1.4.2 to 1.5.0 (#3…
dependabot[bot] Jan 10, 2022
b66328b
[pre-commit.ci] pre-commit autoupdate (#3609)
pre-commit-ci[bot] Jan 11, 2022
ef070f7
Add additional info to TypeError when C++->Python casting fails (#3605)
Skylion007 Jan 11, 2022
f588810
Replacing ICC C++14 with C++17 (#3570)
Jan 11, 2022
d434b5f
(chore): Remove deprecated c-headers (#3610)
Skylion007 Jan 11, 2022
21911e1
A way to register additional test targets and support .py only tests.…
iwanders Jan 12, 2022
f8d4aa4
Add clang-tidy readability checks for sus args (#3611)
Skylion007 Jan 12, 2022
d2ec836
Add support for nested C++11 exceptions (#3608)
Skylion007 Jan 14, 2022
7e7c558
Fixing obvious minor typo (missing `D` in `-DOWNLOAD_EIGEN=ON`).
Jan 15, 2022
5194855
Render `py::bool_` and `py::float_` without `_` in docstrings (#3622)
sizmailov Jan 16, 2022
3a1edda
chore(deps): bump jwlawson/actions-setup-cmake from 1.11 to 1.12 (#3625)
dependabot[bot] Jan 17, 2022
9ec1128
Fix typo in doc (#3628)
Nimrod0901 Jan 19, 2022
dedda22
Fix a typo in class.rst (#3648)
Jan 26, 2022
bcb6d63
fix msys ci python issue (#3651)
lkeegan Jan 26, 2022
ec81e8e
Propagate py::multiple_inheritance to all children (#3650)
virtuald Jan 27, 2022
1779288
Document how to bind templates (#3665)
virtuald Jan 29, 2022
07103d6
Remove extra semicolon (#3666)
mbasaglia Jan 29, 2022
dc4717b
fix: module extension detection for python 3.10 (#3663)
mbasaglia Jan 31, 2022
bf7e5f9
fix(setup): support overriding CMake args (#3577)
henryiii Jan 31, 2022
3a8d923
Fix caster optimization regression introduced in #3650 (#3659)
Skylion007 Jan 31, 2022
978617f
fix issue 3668 by removing bool casts in numpy.h (#3669)
Skylion007 Jan 31, 2022
ce18721
Ensure TypeError use raise_from for C++->Python overload res. (#3671)
Skylion007 Jan 31, 2022
21e1094
ci: move centos 8 to stream (#3675)
henryiii Feb 2, 2022
0f6ad91
docs: update changelog for 2.9.1 (#3670)
henryiii Feb 2, 2022
3899dc6
Documenting missing unit test coverage. (#3673)
Feb 2, 2022
ffa3468
chore: bump to 2.9.1
henryiii Feb 2, 2022
1d3b04e
test: Strip whitespace when comparing numpy dtypes for 1.22 compat (#…
mgorny Feb 3, 2022
36813cf
chore: back to work
henryiii Feb 3, 2022
94a9487
docs: fix imported target name (#3689)
skoslowski Feb 6, 2022
96b943b
tests: update catch to 2.13.5 to fix glibc 2.34 failures (#3679)
mgorny Feb 6, 2022
1b84188
Minor change to improve readability (#3695)
Skylion007 Feb 7, 2022
af056b6
fix: __index__ on Enum should always be present. (#3700)
henryiii Feb 8, 2022
8581584
Manual fix-ups in preparation for clang-tidy readability-braces-aroun…
Feb 8, 2022
ddbc74c
Adding .clang-tidy readability-braces-around-statements option.
Feb 8, 2022
b4f5350
chore: use member initializer (#3704)
Feb 9, 2022
7769e77
clang-tidy readability-qualified-auto (#3702)
Feb 9, 2022
abc3869
Manually applying two clang-format changes that need fix-ups for clan…
Feb 9, 2022
7f97581
chore(clang-tidy): Enable static downcast and decl naming check (#3709)
Skylion007 Feb 9, 2022
dc9803c
Add missing clang-tidy fixes (#3715)
Skylion007 Feb 10, 2022
d6c66d2
chore(clang-tidy): Add clang-tidy rules: prefer-member-initializer an…
Skylion007 Feb 10, 2022
e96221b
Final manual curation in preparation for global `clang-format`ing (#3…
Feb 10, 2022
ec24786
Fully-automatic clang-format with include reordering (#3713)
Feb 10, 2022
46dcd9b
fix: minor CMake warning fix for unused variable (#3718)
henryiii Feb 10, 2022
6493f49
Python 2 removal part 1: tests (C++ code is intentionally ~untouched)…
Feb 11, 2022
1a432b4
docs: Correct minor typos (#3721)
utilForever Feb 11, 2022
522c59c
chore: drop Python 3.5 (#3719)
henryiii Feb 12, 2022
4415647
Adding MSVC 2022 C++20 GitHub Action (#3732)
Feb 14, 2022
a97e9d8
Dropping MSVC 2015 (#3722)
Feb 14, 2022
a25d40c
tests: use 'build' in tests instead of running setup.py (#3734)
henryiii Feb 15, 2022
0986af6
[pre-commit.ci] pre-commit autoupdate (#3672)
pre-commit-ci[bot] Feb 15, 2022
c14170a
Removing `// clang-format off` - `on` directives from test_pickling.c…
Feb 15, 2022
4b42c37
style: pylint (#3720)
henryiii Feb 15, 2022
009ffc3
MSVC C++20 test_eigen (#3741)
Feb 16, 2022
44596bc
Fix exception handling when pybind11::weakref() fails. (#3739)
hawkinsp Feb 18, 2022
9aa676d
fix: clear local internals after finalizing interpreter #2101 (#3744)
StarQTius Feb 20, 2022
91f597b
[pre-commit.ci] pre-commit autoupdate (#3754)
pre-commit-ci[bot] Feb 23, 2022
da15bb2
Cast bytearray to string (#3707)
porrashuang Feb 23, 2022
f495dfc
cast: Qualify symbol usage in PYBIND11_TYPE_CASTER (#3758)
EricCousineau-TRI Feb 25, 2022
061c617
[pre-commit.ci] pre-commit autoupdate (#3765)
pre-commit-ci[bot] Mar 1, 2022
5f9b090
ci: fix PyPy (#3768)
henryiii Mar 1, 2022
465b2e0
Use sysconfig in Python >= 3.10 (#3764)
stefanor Mar 1, 2022
42a8e31
Improve Python 3.11 support (#3694)
Skylion007 Mar 2, 2022
af08a95
fix: potential memory leak in pypy (#3774)
Skylion007 Mar 2, 2022
2dd5254
fix: missing move in eval.h (#3775)
Skylion007 Mar 2, 2022
d75b353
CI: MSVC Debug Build (#3784)
ax3l Mar 10, 2022
91a6e12
PYBIND11_OBJECT_CVT should use namespace for error_already_set() (#3797)
oleksandr-pavlyk Mar 11, 2022
f8a532a
[pre-commit.ci] pre-commit autoupdate (#3800)
pre-commit-ci[bot] Mar 15, 2022
a7e7a6e
Docs: No Strip in Debug (#3779)
ax3l Mar 17, 2022
8b1944d
Remove idioms in code comments (#3809)
JonTriebenbach Mar 17, 2022
b3a43d1
Use rvalue reference for std::variant cast_op<T> (#3811)
laramiel Mar 18, 2022
67089cd
[pre-commit.ci] pre-commit autoupdate (#3817)
pre-commit-ci[bot] Mar 22, 2022
b22ee64
Add type_caster<std::monostate> (#3818)
laramiel Mar 22, 2022
47079b9
(perf): Add missing move in sp matrix caster and microopt char concat…
Skylion007 Mar 24, 2022
146695a
fix: better exception and error handling for capsules (#3825)
Skylion007 Mar 25, 2022
461937d
ci: test pypy 3.9 (#3789)
henryiii Mar 25, 2022
7742be0
Revert "ci: test pypy 3.9" (#3828)
henryiii Mar 25, 2022
3a183d4
fix: improve str exceptions and consistency with python (#3826)
Skylion007 Mar 25, 2022
42d8593
style: bump black (#3831)
henryiii Mar 28, 2022
65ec5de
chore: bump changelog for 2.9.2 (#3834)
henryiii Mar 31, 2022
b3ebd11
feature: support compilers that use std::experimental::filesystem (#…
Llcoolsouder Apr 1, 2022
f2f0c69
[pre-commit.ci] pre-commit autoupdate (#3848)
pre-commit-ci[bot] Apr 4, 2022
c4e2952
perf: Add more moves and optimize (#3845)
Skylion007 Apr 5, 2022
ab59f45
Prefer make_caster<T> to type_caster<T> (#3859)
laramiel Apr 11, 2022
1b27b74
chore: Make stl_bind take slice as const_ref (#3852)
Skylion007 Apr 11, 2022
e3aa215
Add perfect forwarding to make_iterator calls (#3860)
Skylion007 Apr 11, 2022
088ad4f
Cleanup cast_safe<void> specialization (#3861)
laramiel Apr 11, 2022
9969f3b
ci: drop win2016 (#3854)
henryiii Apr 11, 2022
ad0de0f
[pre-commit.ci] pre-commit autoupdate (#3863)
pre-commit-ci[bot] Apr 11, 2022
fa98804
Adds set_name method of pybind11::capsule class (#3866)
oleksandr-pavlyk Apr 14, 2022
ba7a0fa
Expand dtype accessors (#3868)
oleksandr-pavlyk Apr 14, 2022
45164c1
Added deleted copy constructor for error_scope to comply with rule of…
oleksandr-pavlyk Apr 14, 2022
3829b76
chore: simplify numpy dtype ctor (#3869)
Skylion007 Apr 14, 2022
30716c6
Also add error_scope assignment operator to complete the rule-of-3 (f…
Apr 15, 2022
fbcde3f
chore: enable clang-tidy check modernize-use-nullptr (#3881)
Skylion007 Apr 18, 2022
1c636f4
chore: Change numpy dtype from_args call sig to const ref (#3878)
Skylion007 Apr 18, 2022
e8e229f
[pre-commit.ci] pre-commit autoupdate (#3885)
pre-commit-ci[bot] Apr 18, 2022
1a8603e
ci: dependabot major versions for official actions (#3888)
henryiii Apr 24, 2022
b58b772
chore(deps): bump actions/setup-python from 2 to 3 (#3895)
dependabot[bot] Apr 24, 2022
e79293c
chore(deps): bump actions/cache from 2 to 3 (#3898)
dependabot[bot] Apr 24, 2022
2a7cb00
chore(deps): bump actions/download-artifact from 2 to 3 (#3897)
dependabot[bot] Apr 24, 2022
82455a4
Minor opt to cache tuple casting (#3894)
Skylion007 Apr 24, 2022
be4a634
chore(deps): bump actions/checkout from 2 to 3 (#3896)
dependabot[bot] Apr 24, 2022
0325206
chore(deps): bump actions/upload-artifact from 2 to 3 (#3899)
dependabot[bot] Apr 24, 2022
9bc2704
Add tests for cast from tuple to sequence containers (#3900)
ecatmur Apr 24, 2022
75007dd
chore: rule of 3 for strdup guard (#3905)
Skylion007 Apr 26, 2022
f0b9f75
Replace error printing code gated by NDEBUG with a new flag: PYBIND11…
voznesenskym May 2, 2022
287e4f2
Test pickling a simple callable (does not work). (#3906)
May 2, 2022
bdc7dd8
chore: update NVIDIA-PGI CI workflow (#3922)
Skylion007 May 4, 2022
f306012
fix: file extension on windows with cp36 and cp37 (#3919)
HaarigerHarald May 4, 2022
9a16e55
[pre-commit.ci] pre-commit autoupdate (#3903)
pre-commit-ci[bot] May 5, 2022
68a0b2d
Add anyset & frozenset, enable copying (cast) to std::set (#3901)
ecatmur May 5, 2022
2e33130
chore: remove unused include from stl.h (#3928)
Skylion007 May 6, 2022
ad146b2
[pre-commit.ci] pre-commit autoupdate (#3933)
pre-commit-ci[bot] May 9, 2022
5621ab8
Do we have a unit test for the traceback code in error_string()?
May 16, 2022
48c7be4
Undoing previous accidental commit. Sorry I forgot to git branch.
May 16, 2022
72eea20
Fix py::cast from pytype rvalue to pytype (#3949)
MaartenBaert May 16, 2022
1a7b129
ci: fix cuda issue & MSVC spurious warning (#3950)
henryiii May 16, 2022
dff6fa0
fix(cmake): avoid issue with NVCC + Windows (#3947)
henryiii May 17, 2022
a8b3ff3
chore: add a couple of moves in pybind11.h (#3941)
Skylion007 May 17, 2022
1e4bd22
fix(cmake): support release and debug at the same time (#3948)
henryiii May 19, 2022
918d448
fix(cmake): support cross-compiles with classic Python (#3959)
henryiii May 20, 2022
c42414d
(perf): use a rvalue cast in func_wrapper (#3966)
Skylion007 May 23, 2022
4624e8e
Don't return pointers to static objects with return_value_policy::tak…
MaartenBaert May 24, 2022
2d4a20c
chore: add missing moves for buffer_func and staticmethod in pybind11…
Skylion007 May 25, 2022
2c549eb
Move `PyErr_NormalizeException()` up a few lines (#3971)
May 26, 2022
8d14e66
fix: avoid `catch (...)` for expected `import numpy` failures (#3974)
May 26, 2022
68f8010
chore: add err guard to capsule destructor and add a move to iostream…
Skylion007 May 27, 2022
748ae22
Add missing error handling to `module_::def_submodule` (#3973)
May 28, 2022
8da58da
chore: perfectly forward all make_iterator args (#3980)
Skylion007 May 28, 2022
de4ba92
Add `error_scope` to `detail::get_internals()` (#3981)
May 31, 2022
b24c5ed
Replace "Unknown internal error occurred" with a more helpful message…
May 31, 2022
9f7b3f7
addl unit tests for PR #3970 (#3977)
May 31, 2022
58802de
perf: Add object rvalue overload for accessors. Enables reference ste…
Skylion007 Jun 1, 2022
a05bc3d
error_already_set::what() is now constructed lazily (#1895)
superbobry Jun 2, 2022
42a41bf
remove useless ctor (#3989)
Skylion007 Jun 3, 2022
554c045
enable two new clang-tidy checks (#3988)
Skylion007 Jun 6, 2022
c5fa343
[pre-commit.ci] pre-commit autoupdate (#3951)
pre-commit-ci[bot] Jun 6, 2022
918892b
Make dtype::num() return type consistent with other functions (#3995)
MaartenBaert Jun 6, 2022
e2dcd95
chore: optimize dictionary access in strip_padding numpy (#3994)
Skylion007 Jun 7, 2022
0e956a2
chore(deps): bump pre-commit/action from 2.0.3 to 3.0.0 (#3992)
dependabot[bot] Jun 8, 2022
21f0e72
[pre-commit.ci] pre-commit autoupdate (#4003)
pre-commit-ci[bot] Jun 14, 2022
0964a90
Add a missing std::move in numpy.h (#4005)
Skylion007 Jun 14, 2022
2ad974c
[pre-commit.ci] pre-commit autoupdate (#4021)
pre-commit-ci[bot] Jun 21, 2022
c3e9173
ci: use almalinux instead of centos, add 9 (#4020)
henryiii Jun 21, 2022
dd3bf7f
[pre-commit.ci] pre-commit autoupdate (#4030)
pre-commit-ci[bot] Jun 27, 2022
374a5b0
[docs] Fix "Enumerations and internal types" example (#4034)
crcrpar Jun 28, 2022
479e9a5
Fix arrays with zero-size dimensions (#4038)
mwoehlke-kitware Jun 29, 2022
5a3a1e3
chore: simpler dependabot (#4035)
henryiii Jul 4, 2022
bc1f9f9
chore(deps): bump actions/setup-python from 3 to 4 (#3999)
dependabot[bot] Jul 4, 2022
c42e3ab
[pre-commit.ci] pre-commit autoupdate (#4041)
pre-commit-ci[bot] Jul 5, 2022
2af163d
Fix: 3.11 beta support (#3923)
Skylion007 Jul 6, 2022
0ab1fcf
docs: update changelog (#4042)
henryiii Jul 6, 2022
cd08869
PYBIND11_NAMESPACE consistency fixes. (#4043)
Jul 6, 2022
85bc088
Report `C++ Info:` via `pytest_report_header()` (#4046)
Jul 8, 2022
432bc5c
Add `std::string clean_type_id(const char *typeid_name)` overload (in…
Jul 8, 2022
f9f0049
Properly visit self in >=3.9 traverse (#4051)
Skylion007 Jul 10, 2022
790241b
[pre-commit.ci] pre-commit autoupdate (#4058)
pre-commit-ci[bot] Jul 12, 2022
023b3f3
Undo accidental one-line change under PR #3913 (#4060)
Jul 12, 2022
7c3a031
chore: bump clang-tidy to 13 (#3997)
henryiii Jul 13, 2022
6b60d97
docs: use Furo (#3109)
henryiii Jul 13, 2022
bc9315f
chore: optimize sparse matrix casting with python tuple (#4064)
Skylion007 Jul 13, 2022
1d81191
Disable implicit conversion of `0` to `pybind11::handle`. (#4008)
Jul 14, 2022
87f64c4
docs: update changelog for 2.10.0 (#4066)
henryiii Jul 15, 2022
aa304c9
chore: preapre for 2.10.0 release (#4068)
henryiii Jul 15, 2022
986d492
squashed changes from Drake
EricCousineau-TRI Oct 12, 2023
94bc246
Merge commit '9371614764941a8f51fb75979b6bc09f94e55a43' (v2.9.0) into…
EricCousineau-TRI Oct 12, 2023
e788107
Merge tag 'v2.9.1' into feature-bump-merge
EricCousineau-TRI Oct 12, 2023
5951b24
import clang tidy setup
EricCousineau-TRI Oct 12, 2023
f0a4dd5
Merge commit 'ec24786eab~' into feature-bump-merge-fmt
EricCousineau-TRI Oct 12, 2023
dbed3e4
run re-format
EricCousineau-TRI Oct 12, 2023
a022f1b
Merge commit 'ec24786eab' into feature-bump-merge-fmt
EricCousineau-TRI Oct 12, 2023
6bc7413
re-run pre-commit
EricCousineau-TRI Oct 12, 2023
773f343
Merge tag 'v2.10.0' into feature-bump-merge-fmt
EricCousineau-TRI Oct 12, 2023
224d0b3
huh, missed carrying this one over - oops!
EricCousineau-TRI Oct 12, 2023
cc8f36e
partial revert to proper form of 8adef2c
EricCousineau-TRI Oct 12, 2023
53a0de4
Multi-step, slightly messy merge of v2.10.0 (aa304c9c)
EricCousineau-TRI Oct 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
version: 1.0.{build}
image:
- Visual Studio 2015
- Visual Studio 2017
test: off
skip_branch_with_pr: true
build:
Expand All @@ -11,11 +11,9 @@ environment:
matrix:
- PYTHON: 36
CONFIG: Debug
- PYTHON: 27
CONFIG: Debug
install:
- ps: |
$env:CMAKE_GENERATOR = "Visual Studio 14 2015"
$env:CMAKE_GENERATOR = "Visual Studio 15 2017"
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
python -W ignore -m pip install --upgrade pip wheel
Expand Down
19 changes: 19 additions & 0 deletions .clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,36 @@
# clang-format --style=llvm --dump-config
BasedOnStyle: LLVM
AccessModifierOffset: -4
AllowShortLambdasOnASingleLine: true
AlwaysBreakTemplateDeclarations: Yes
BinPackArguments: false
BinPackParameters: false
BreakBeforeBinaryOperators: All
BreakConstructorInitializers: BeforeColon
ColumnLimit: 99
CommentPragmas: 'NOLINT:.*|^ IWYU pragma:'
IncludeBlocks: Regroup
IndentCaseLabels: true
IndentPPDirectives: AfterHash
IndentWidth: 4
Language: Cpp
SpaceAfterCStyleCast: true
Standard: Cpp11
StatementMacros: ['PyObject_HEAD']
TabWidth: 4
IncludeCategories:
- Regex: '<pybind11/.*'
Priority: -1
- Regex: 'pybind11.h"$'
Priority: 1
- Regex: '^".*/?detail/'
Priority: 1
SortPriority: 2
- Regex: '^"'
Priority: 1
SortPriority: 3
- Regex: '<[[:alnum:]._]+>'
Priority: 4
- Regex: '.*'
Priority: 5
...
116 changes: 63 additions & 53 deletions .clang-tidy
Original file line number Diff line number Diff line change
@@ -1,65 +1,75 @@
FormatStyle: file

Checks: '
*bugprone*,
cppcoreguidelines-init-variables,
cppcoreguidelines-slicing,
clang-analyzer-optin.cplusplus.VirtualCall,
google-explicit-constructor,
llvm-namespace-comment,
misc-misplaced-const,
misc-non-copyable-objects,
misc-static-assert,
misc-throw-by-value-catch-by-reference,
misc-uniqueptr-reset-release,
misc-unused-parameters,
modernize-avoid-bind,
modernize-make-shared,
modernize-redundant-void-arg,
modernize-replace-auto-ptr,
modernize-replace-disallow-copy-and-assign-macro,
modernize-replace-random-shuffle,
modernize-shrink-to-fit,
modernize-use-auto,
modernize-use-bool-literals,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-default-member-init,
modernize-use-noexcept,
modernize-use-emplace,
modernize-use-override,
modernize-use-using,
*performance*,
readability-avoid-const-params-in-decls,
readability-const-return-type,
readability-container-size-empty,
readability-delete-null-pointer,
readability-else-after-return,
readability-implicit-bool-conversion,
readability-make-member-function-const,
readability-misplaced-array-index,
readability-non-const-parameter,
readability-redundant-function-ptr-dereference,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-uniqueptr-delete-release,
-bugprone-exception-escape,
-bugprone-reserved-identifier,
-bugprone-unused-raii,
'
Checks: |
*bugprone*,
*performance*,
clang-analyzer-optin.cplusplus.VirtualCall,
clang-analyzer-optin.performance.Padding,
cppcoreguidelines-init-variables,
cppcoreguidelines-prefer-member-initializer,
cppcoreguidelines-pro-type-static-cast-downcast,
cppcoreguidelines-slicing,
google-explicit-constructor,
llvm-namespace-comment,
misc-definitions-in-headers,
misc-misplaced-const,
misc-non-copyable-objects,
misc-static-assert,
misc-throw-by-value-catch-by-reference,
misc-uniqueptr-reset-release,
misc-unused-parameters,
modernize-avoid-bind,
modernize-loop-convert,
modernize-make-shared,
modernize-redundant-void-arg,
modernize-replace-auto-ptr,
modernize-replace-disallow-copy-and-assign-macro,
modernize-replace-random-shuffle,
modernize-shrink-to-fit,
modernize-use-auto,
modernize-use-bool-literals,
modernize-use-default-member-init,
modernize-use-emplace,
modernize-use-equals-default,
modernize-use-equals-delete,
modernize-use-noexcept,
modernize-use-nullptr,
modernize-use-override,
modernize-use-using,
readability-avoid-const-params-in-decls,
readability-braces-around-statements,
readability-const-return-type,
readability-container-size-empty,
readability-delete-null-pointer,
readability-else-after-return,
readability-implicit-bool-conversion,
readability-inconsistent-declaration-parameter-name,
readability-make-member-function-const,
readability-misplaced-array-index,
readability-non-const-parameter,
readability-qualified-auto,
readability-redundant-function-ptr-dereference,
readability-redundant-smartptr-get,
readability-redundant-string-cstr,
readability-simplify-subscript-expr,
readability-static-accessed-through-instance,
readability-static-definition-in-anonymous-namespace,
readability-string-compare,
readability-suspicious-call-argument,
readability-uniqueptr-delete-release,
-bugprone-easily-swappable-parameters,
-bugprone-exception-escape,
-bugprone-reserved-identifier,
-bugprone-unused-raii,

CheckOptions:
- key: performance-for-range-copy.WarnOnAllAutoCopies
value: true
- key: performance-inefficient-string-concatenation.StrictMode
value: true
- key: performance-unnecessary-value-param.AllowedTypes
value: 'exception_ptr$;'
- key: readability-implicit-bool-conversion.AllowPointerConditions
value: true

HeaderFilterRegex: 'pybind11/.*h'

WarningsAsErrors: '*'
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docs/*.svg binary
26 changes: 14 additions & 12 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,18 @@ cmake --build build -j4

Tips:

* You can use `virtualenv` (from PyPI) instead of `venv` (which is Python 3
only).
* You can use `virtualenv` (faster, from PyPI) instead of `venv`.
* You can select any name for your environment folder; if it contains "env" it
will be ignored by git.
* If you dont have CMake 3.14+, just add cmake to the pip install command.
* If you don't have CMake 3.14+, just add "cmake" to the pip install command.
* You can use `-DPYBIND11_FINDPYTHON=ON` to use FindPython on CMake 3.12+
* In classic mode, you may need to set `-DPYTHON_EXECUTABLE=/path/to/python`.
FindPython uses `-DPython_ROOT_DIR=/path/to` or
`-DPython_EXECUTABLE=/path/to/python`.

### Configuration options

In CMake, configuration options are given with “-D”. Options are stored in the
In CMake, configuration options are given with "-D". Options are stored in the
build directory, in the `CMakeCache.txt` file, so they are remembered for each
build directory. Two selections are special - the generator, given with `-G`,
and the compiler, which is selected based on environment variables `CXX` and
Expand All @@ -115,12 +114,12 @@ after the initial run.
The valid options are:

* `-DCMAKE_BUILD_TYPE`: Release, Debug, MinSizeRel, RelWithDebInfo
* `-DPYBIND11_FINDPYTHON=ON`: Use CMake 3.12+s FindPython instead of the
* `-DPYBIND11_FINDPYTHON=ON`: Use CMake 3.12+'s FindPython instead of the
classic, deprecated, custom FindPythonLibs
* `-DPYBIND11_NOPYTHON=ON`: Disable all Python searching (disables tests)
* `-DBUILD_TESTING=ON`: Enable the tests
* `-DDOWNLOAD_CATCH=ON`: Download catch to build the C++ tests
* `-DOWNLOAD_EIGEN=ON`: Download Eigen for the NumPy tests
* `-DDOWNLOAD_EIGEN=ON`: Download Eigen for the NumPy tests
* `-DPYBIND11_INSTALL=ON/OFF`: Enable the install target (on by default for the
master project)
* `-DUSE_PYTHON_INSTALL_DIR=ON`: Try to install into the python dir
Expand Down Expand Up @@ -159,8 +158,9 @@ tests with these targets:
* `test_cmake_build`: Install / subdirectory tests

If you want to build just a subset of tests, use
`-DPYBIND11_TEST_OVERRIDE="test_callbacks.cpp;test_pickling.cpp"`. If this is
empty, all tests will be built.
`-DPYBIND11_TEST_OVERRIDE="test_callbacks;test_pickling"`. If this is
empty, all tests will be built. Tests are specified without an extension if they need both a .py and
.cpp file.

You may also pass flags to the `pytest` target by editing `tests/pytest.ini` or
by using the `PYTEST_ADDOPTS` environment variable
Expand Down Expand Up @@ -235,12 +235,14 @@ directory inside your pybind11 git clone. Files will be modified in place,
so you can use git to monitor the changes.

```bash
docker run --rm -v $PWD:/mounted_pybind11 -it silkeh/clang:12
docker run --rm -v $PWD:/mounted_pybind11 -it silkeh/clang:13
apt-get update && apt-get install -y python3-dev python3-pytest
cmake -S /mounted_pybind11/ -B build -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);-fix" -DDOWNLOAD_EIGEN=ON -DDOWNLOAD_CATCH=ON -DCMAKE_CXX_STANDARD=17
cmake --build build -j 2 -- --keep-going
cmake -S /mounted_pybind11/ -B build -DCMAKE_CXX_CLANG_TIDY="$(which clang-tidy);--use-color" -DDOWNLOAD_EIGEN=ON -DDOWNLOAD_CATCH=ON -DCMAKE_CXX_STANDARD=17
cmake --build build -j 2
```

You can add `--fix` to the options list if you want.

### Include what you use

To run include what you use, install (`brew install include-what-you-use` on
Expand All @@ -256,7 +258,7 @@ The report is sent to stderr; you can pipe it into a file if you wish.
### Build recipes

This builds with the Intel compiler (assuming it is in your path, along with a
recent CMake and Python 3):
recent CMake and Python):

```bash
python3 -m venv venv
Expand Down
32 changes: 32 additions & 0 deletions .github/matchers/pylint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"problemMatcher": [
{
"severity": "warning",
"pattern": [
{
"regexp": "^([^:]+):(\\d+):(\\d+): ([A-DF-Z]\\d+): \\033\\[[\\d;]+m([^\\033]+).*$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
],
"owner": "pylint-warning"
},
{
"severity": "error",
"pattern": [
{
"regexp": "^([^:]+):(\\d+):(\\d+): (E\\d+): \\033\\[[\\d;]+m([^\\033]+).*$",
"file": 1,
"line": 2,
"column": 3,
"code": 4,
"message": 5
}
],
"owner": "pylint-error"
}
]
}
Loading
Loading