-
Notifications
You must be signed in to change notification settings - Fork 795
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'wrap/' changes from 49d831588..314b121fd
314b121fd Merge pull request #6 from varunagrawal/feature/pybind-upgrade 5e49bb867 Merge commit '62e790da1cc53cb9910ac5271a3514d88562bdce' into feature/docstring 62e790da1 Squashed 'pybind11/' changes from 441e777..d3c999c e51526702 Merge pull request #5 from varunagrawal/feature/docstring f503ddb2d document use_boost 2bb7158fc complete arguments documentation for pybind_wrap function git-subtree-dir: wrap git-subtree-split: 314b121fd4017338a3a6833728cd646d8ff5be12
- Loading branch information
1 parent
dc9ed2b
commit cd21057
Showing
146 changed files
with
6,261 additions
and
2,418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
Start-FileDownload 'https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.zip' | ||
7z x eigen-3.3.7.zip -y > $null | ||
$env:CMAKE_INCLUDE_PATH = "eigen-3.3.7;$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* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FormatStyle: file | ||
|
||
Checks: ' | ||
llvm-namespace-comment, | ||
modernize-use-override, | ||
readability-container-size-empty, | ||
modernize-use-using, | ||
modernize-use-equals-default, | ||
modernize-use-auto, | ||
modernize-use-emplace, | ||
' | ||
|
||
HeaderFilterRegex: 'pybind11/.*h' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.