Skip to content

Merge 'upstream/master' (1caf1d06) #43

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

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
74 commits
Select commit Hold shift + click to select a range
8e85fad
Render `py::none` as `None` in docstrings
AWhetter Jun 28, 2020
a3daf87
Add failing optional test
fatvlady Mar 14, 2020
556277d
Fix optional dereference type deduction
fatvlady Mar 14, 2020
8c06b95
Fix compile error on GCC4.8
fatvlady Mar 14, 2020
f99ff73
Add additional check to be more compliant with other casters
fatvlady Jun 29, 2020
ae2ee2a
Avoid using deprecated API in python 3.9
bstaletic Jun 15, 2020
7144243
Refactor: Extract Custom Type Casts related tests
chaitan94 Jun 21, 2020
d031efe
Typo
chaosink Jun 13, 2020
8908552
typo
guidanoli Apr 27, 2020
3618807
Fix python.lib name
vanip May 4, 2020
141e8cc
Fix uninitialized-variables cmake warnings
nilsvu Jun 26, 2020
fc3a449
Minor clarification (@AntoinePrv, #2083)
wjakob Jun 30, 2020
d54d6d8
Adding pybind11::cast overload for rvalue references (#1260)
YannickJadoul Jun 30, 2020
1b0bf35
Throw TypeError when subclasses forget to call __init__ (#2152)
virtuald Jul 7, 2020
f2226ae
Allow perfect forwarding of method args (#2048)
rhaschke Jul 7, 2020
0d70f0e
PyPy3 support (#2146)
isuruf Jul 7, 2020
f980d76
Change NAMESPACE_* macros into PYBIND11_NAMESPACE_* (#2283)
YannickJadoul Jul 8, 2020
964ab95
Fix DeprecationWarning about 'invalid escape sequence' in tools/docs …
YannickJadoul Jul 10, 2020
b2f5222
Rename embedded_module object's name (#2282)
bstaletic Jul 10, 2020
8b9eb96
Check for NULL in raw_str on Python3 (#2290)
bstaletic Jul 11, 2020
fe1392d
Silence Clang 10 compiler warnings. Fixes #2225. (#2294)
apollo13 Jul 12, 2020
aa982e1
Small fixes in numpy.h (#2293)
bstaletic Jul 12, 2020
e248869
Fix undefined memoryview format (#2223)
kyamagu Jul 15, 2020
d8c7ee0
ci: GHA basic format & pre-commit (#2309)
henryiii Jul 20, 2020
c4fd1fd
CMake improvement: support windows python on msys (#2312)
lkeegan Jul 21, 2020
96c6763
test_builtin_casters.py test_string_view: Python 2 c++17, c++2a compa…
rwgk Jul 22, 2020
441e777
Use new style __init__ in numpy docs (#2316)
bstaletic Jul 23, 2020
134a2ec
Add `.git` suffix to URL because only GitHub itself works without it.…
xkszltl Jul 23, 2020
ef057f1
test: support pypy2 7.3
henryiii Jul 22, 2020
3d20b73
test: pass through C++ std for cmake test
henryiii Jul 22, 2020
49007b7
test: fix warning/error on Python 2 in 14/17 mode
henryiii Jul 22, 2020
a59c6de
test: allow MSVC/Xcode to run the embed test
henryiii Jul 22, 2020
73dc978
style: avoid adding virtual environment directories
henryiii Jul 22, 2020
b16347e
ci: enable GHA testing
henryiii Jul 22, 2020
8b0ccf7
style: adding pre-commit check-style.sh
henryiii Jul 20, 2020
5c936d4
refactor: issue fixed upstream
henryiii Jul 21, 2020
6f3e5e3
ci: keep travis from running twice
henryiii Jul 23, 2020
2819ce6
Avoid attr("__repr__") in initialize_generic (#2317)
bstaletic Jul 24, 2020
7e0a4fb
Fix for #2168 (#2299)
tuxmaster5000 Jul 24, 2020
6a80171
ci: Add clang builds & C++17
henryiii Jul 24, 2020
e428a7f
ci: fix clang warnings
henryiii Jul 24, 2020
1f53c37
fix: C++17 mode on Clang may error
henryiii Jul 24, 2020
4470671
fix: too many braces on clang 3.6
henryiii Jul 24, 2020
5927c58
chore: update Catch
henryiii Jul 24, 2020
aab7013
ci: cache, build wheels on macOS PyPy3
henryiii Jul 24, 2020
7b067cc
Set __hash__ to None for types that defines __eq__, but not __hash__ …
sizmailov Jul 26, 2020
7806905
ci: trim down Appveyor
henryiii Jul 26, 2020
9521bc5
ci: drop parts from Travis
henryiii Jul 26, 2020
1b880df
ci: download EIGEN
henryiii Jul 26, 2020
2ee1bcd
ci: add GHA badge
henryiii Jul 26, 2020
2fbbd51
ci: add gcc
henryiii Jul 26, 2020
e450ea0
ci: add docker build to GHA
henryiii Jul 26, 2020
249a13b
ci: move docs check to GHA
henryiii Jul 26, 2020
ff39ad3
ci: include scipy for tests
henryiii Jul 26, 2020
88b3e5c
ci: nicer naming scheme
henryiii Jul 26, 2020
a632486
ci: Windows 2016 test
henryiii Jul 26, 2020
c51b3f4
ci: change caching
henryiii Jul 27, 2020
8e40e38
cast pointer to std::tuple and std::pair (#2334)
wojdyr Jul 28, 2020
1491c94
ci: cmake Configure test (#2327)
henryiii Jul 29, 2020
6ec1775
feat: drop CMake 3.6 and below, modernize CMake
henryiii Jul 28, 2020
1b92cd1
fix: address review points from @YannickJadoul
henryiii Jul 29, 2020
f64d5aa
fix: typo for warning on C++17, support Win + 2.7
henryiii Jul 30, 2020
1651c32
update: address review points
henryiii Jul 30, 2020
e2a9689
format: add cmake-format to pre-commit
henryiii Jul 29, 2020
94db5c5
format: apply cmake-format
henryiii Jul 30, 2020
6f6e939
feat: add uninstall target for CMake (#2265)
acxz Jul 31, 2020
b804724
fix: uninstall cleanup (#2346)
henryiii Jul 31, 2020
4d90f1a
Add error_scope to py::class_::dealloc() to protect destructor calls …
jbarlow83 Aug 1, 2020
1caf1d0
fix: check list validity and add missing file (#2352)
henryiii Aug 1, 2020
5225202
Merge remote-tracking branch 'upstream/master' into feature-2020-08-0…
EricCousineau-TRI Sep 4, 2020
1ed85fd
ci: Make drake-specific modifications
EricCousineau-TRI Aug 3, 2020
6e8628e
drake: Remove redundant cast(T&&) overloads
EricCousineau-TRI Aug 3, 2020
5258a69
Fix formatting errors
EricCousineau-TRI Sep 6, 2020
2211d50
README_DRAKE: Update CI information
EricCousineau-TRI Sep 6, 2020
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
45 changes: 6 additions & 39 deletions .appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,70 +1,37 @@
version: 1.0.{build}
image:
- Visual Studio 2017
- Visual Studio 2015
test: off
skip_branch_with_pr: true
build:
parallel: true
platform:
- x64
- x86
environment:
matrix:
- PYTHON: 36
CPP: 14
CONFIG: Debug
- PYTHON: 27
CPP: 14
CONFIG: Debug
- CONDA: 36
CPP: latest
CONFIG: Release
matrix:
exclude:
- image: Visual Studio 2015
platform: x86
- image: Visual Studio 2015
CPP: latest
- image: Visual Studio 2017
CPP: latest
platform: x86
install:
- ps: |
if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" }
if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") {
$env:CMAKE_GENERATOR = "Visual Studio 15 2017"
$env:CMAKE_INCLUDE_PATH = "C:\Libraries\boost_1_64_0"
$env:CXXFLAGS = "-permissive-"
} else {
$env:CMAKE_GENERATOR = "Visual Studio 14 2015"
}
if ($env:PYTHON) {
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
python -W ignore -m pip install pytest numpy --no-warn-script-location
} elseif ($env:CONDA) {
if ($env:CONDA -eq "27") { $env:CONDA = "" }
if ($env:PLATFORM -eq "x64") { $env:CONDA = "$env:CONDA-x64" }
$env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH"
$env:PYTHONHOME = "C:\Miniconda$env:CONDA"
conda --version
conda install -y -q pytest numpy scipy
}
$env:CMAKE_GENERATOR = "Visual Studio 14 2015"
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
python -W ignore -m pip install pytest numpy --no-warn-script-location
- ps: |
Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.3.zip'
7z x 3.3.3.zip -y > $null
$env:CMAKE_INCLUDE_PATH = "eigen-eigen-67e894c6cd8f;$env:CMAKE_INCLUDE_PATH"
build_script:
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%"
-DPYBIND11_CPP_STANDARD=/std:c++%CPP%
-DCMAKE_CXX_STANDARD=14
-DPYBIND11_WERROR=ON
-DDOWNLOAD_CATCH=ON
-DCMAKE_SUPPRESS_REGENERATION=1
.
- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger%
- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger%
- if "%CPP%"=="latest" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%)
on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*
73 changes: 73 additions & 0 deletions .cmake-format.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
parse:
additional_commands:
pybind11_add_module:
flags:
- THIN_LTO
- MODULE
- SHARED
- NO_EXTRAS
- EXCLUDE_FROM_ALL
- SYSTEM

format:
line_width: 99
tab_size: 2

# If an argument group contains more than this many sub-groups
# (parg or kwarg groups) then force it to a vertical layout.
max_subgroups_hwrap: 2

# If a positional argument group contains more than this many
# arguments, then force it to a vertical layout.
max_pargs_hwrap: 6

# If a cmdline positional group consumes more than this many
# lines without nesting, then invalidate the layout (and nest)
max_rows_cmdline: 2
separate_ctrl_name_with_space: false
separate_fn_name_with_space: false
dangle_parens: false

# If the trailing parenthesis must be 'dangled' on its on
# 'line, then align it to this reference: `prefix`: the start'
# 'of the statement, `prefix-indent`: the start of the'
# 'statement, plus one indentation level, `child`: align to'
# the column of the arguments
dangle_align: prefix
# If the statement spelling length (including space and
# parenthesis) is smaller than this amount, then force reject
# nested layouts.
min_prefix_chars: 4

# If the statement spelling length (including space and
# parenthesis) is larger than the tab width by more than this
# amount, then force reject un-nested layouts.
max_prefix_chars: 10

# If a candidate layout is wrapped horizontally but it exceeds
# this many lines, then reject the layout.
max_lines_hwrap: 2

line_ending: unix

# Format command names consistently as 'lower' or 'upper' case
command_case: canonical

# Format keywords consistently as 'lower' or 'upper' case
# unchanged is valid too
keyword_case: 'upper'

# A list of command names which should always be wrapped
always_wrap: []

# If true, the argument lists which are known to be sortable
# will be sorted lexicographically
enable_sort: true

# If true, the parsers may infer whether or not an argument
# list is sortable (without annotation).
autosort: false

# Causes a few issues - can be solved later, possibly.
markup:
enable_markup: false
Loading