Skip to content

Commit 0c6fe6d

Browse files
committed
Squashed 'pybind11/' content from commit 441e777
git-subtree-dir: pybind11 git-subtree-split: 441e77704043f1f0944043b56e39d95342e76ac1
0 parents  commit 0c6fe6d

File tree

192 files changed

+42427
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+42427
-0
lines changed

.appveyor.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
version: 1.0.{build}
2+
image:
3+
- Visual Studio 2017
4+
- Visual Studio 2015
5+
test: off
6+
skip_branch_with_pr: true
7+
build:
8+
parallel: true
9+
platform:
10+
- x64
11+
- x86
12+
environment:
13+
matrix:
14+
- PYTHON: 36
15+
CPP: 14
16+
CONFIG: Debug
17+
- PYTHON: 27
18+
CPP: 14
19+
CONFIG: Debug
20+
- CONDA: 36
21+
CPP: latest
22+
CONFIG: Release
23+
matrix:
24+
exclude:
25+
- image: Visual Studio 2015
26+
platform: x86
27+
- image: Visual Studio 2015
28+
CPP: latest
29+
- image: Visual Studio 2017
30+
CPP: latest
31+
platform: x86
32+
install:
33+
- ps: |
34+
if ($env:PLATFORM -eq "x64") { $env:CMAKE_ARCH = "x64" }
35+
if ($env:APPVEYOR_JOB_NAME -like "*Visual Studio 2017*") {
36+
$env:CMAKE_GENERATOR = "Visual Studio 15 2017"
37+
$env:CMAKE_INCLUDE_PATH = "C:\Libraries\boost_1_64_0"
38+
$env:CXXFLAGS = "-permissive-"
39+
} else {
40+
$env:CMAKE_GENERATOR = "Visual Studio 14 2015"
41+
}
42+
if ($env:PYTHON) {
43+
if ($env:PLATFORM -eq "x64") { $env:PYTHON = "$env:PYTHON-x64" }
44+
$env:PATH = "C:\Python$env:PYTHON\;C:\Python$env:PYTHON\Scripts\;$env:PATH"
45+
python -W ignore -m pip install --upgrade pip wheel
46+
python -W ignore -m pip install pytest numpy --no-warn-script-location
47+
} elseif ($env:CONDA) {
48+
if ($env:CONDA -eq "27") { $env:CONDA = "" }
49+
if ($env:PLATFORM -eq "x64") { $env:CONDA = "$env:CONDA-x64" }
50+
$env:PATH = "C:\Miniconda$env:CONDA\;C:\Miniconda$env:CONDA\Scripts\;$env:PATH"
51+
$env:PYTHONHOME = "C:\Miniconda$env:CONDA"
52+
conda --version
53+
conda install -y -q pytest numpy scipy
54+
}
55+
- ps: |
56+
Start-FileDownload 'http://bitbucket.org/eigen/eigen/get/3.3.3.zip'
57+
7z x 3.3.3.zip -y > $null
58+
$env:CMAKE_INCLUDE_PATH = "eigen-eigen-67e894c6cd8f;$env:CMAKE_INCLUDE_PATH"
59+
build_script:
60+
- cmake -G "%CMAKE_GENERATOR%" -A "%CMAKE_ARCH%"
61+
-DPYBIND11_CPP_STANDARD=/std:c++%CPP%
62+
-DPYBIND11_WERROR=ON
63+
-DDOWNLOAD_CATCH=ON
64+
-DCMAKE_SUPPRESS_REGENERATION=1
65+
.
66+
- set MSBuildLogger="C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
67+
- cmake --build . --config %CONFIG% --target pytest -- /m /v:m /logger:%MSBuildLogger%
68+
- cmake --build . --config %CONFIG% --target cpptest -- /m /v:m /logger:%MSBuildLogger%
69+
- if "%CPP%"=="latest" (cmake --build . --config %CONFIG% --target test_cmake_build -- /m /v:m /logger:%MSBuildLogger%)
70+
on_failure: if exist "tests\test_cmake_build" type tests\test_cmake_build\*.log*

.github/workflows/format.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Format
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
branches:
8+
- master
9+
- stable
10+
- "v*"
11+
12+
jobs:
13+
pre-commit:
14+
name: Format
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v2
18+
- uses: actions/setup-python@v2
19+
- uses: pre-commit/[email protected]

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
CMakeCache.txt
2+
CMakeFiles
3+
Makefile
4+
cmake_install.cmake
5+
.DS_Store
6+
*.so
7+
*.pyd
8+
*.dll
9+
*.sln
10+
*.sdf
11+
*.opensdf
12+
*.vcxproj
13+
*.vcxproj.user
14+
*.filters
15+
example.dir
16+
Win32
17+
x64
18+
Release
19+
Debug
20+
.vs
21+
CTestTestfile.cmake
22+
Testing
23+
autogen
24+
MANIFEST
25+
/.ninja_*
26+
/*.ninja
27+
/docs/.build
28+
*.py[co]
29+
*.egg-info
30+
*~
31+
.*.swp
32+
.DS_Store
33+
/dist
34+
/build
35+
/cmake/
36+
.cache/
37+
sosize-*.txt
38+
pybind11Config*.cmake
39+
pybind11Targets.cmake

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "tools/clang"]
2+
path = tools/clang
3+
url = ../../wjakob/clang-cindex-python3

.pre-commit-config.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v3.1.0
4+
hooks:
5+
- id: check-added-large-files
6+
- id: check-case-conflict
7+
- id: check-merge-conflict
8+
- id: check-symlinks
9+
- id: check-yaml
10+
- id: debug-statements
11+
- id: end-of-file-fixer
12+
- id: mixed-line-ending
13+
- id: requirements-txt-fixer
14+
- id: trailing-whitespace
15+
- id: fix-encoding-pragma
16+
17+
- repo: https://github.com/Lucas-C/pre-commit-hooks
18+
rev: v1.1.7
19+
hooks:
20+
- id: remove-tabs
21+
exclude: (Makefile|debian/rules|.gitmodules)(\.in)?$
22+
23+
- repo: https://gitlab.com/pycqa/flake8
24+
rev: 3.8.2
25+
hooks:
26+
- id: flake8
27+
additional_dependencies: [flake8-bugbear]
28+
exclude: ^(docs/.*|tools/.*)$

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
python:
2+
version: 3
3+
requirements_file: docs/requirements.txt

0 commit comments

Comments
 (0)