Skip to content

Commit

Permalink
move submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMVale committed Jan 2, 2025
1 parent b816b4c commit 3acda63
Show file tree
Hide file tree
Showing 491 changed files with 134,431 additions and 0 deletions.
23 changes: 23 additions & 0 deletions python/extern/nanobind/.github/ISSUE_TEMPLATE/all-other.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Other
description: Ask a question or request a new feature
title: "[OTHER]: "
body:
- type: markdown
attributes:
value: |
## Important information
For all types of questions, feature requests, and other issues that aren't nanobind bugs, please start a post on the separate "Discussions" tab and *not* under "Issues".
If have found a nanobind bug, then please open a ticket with a reproducer using the separate "Bug Report" template.
- type: textarea
id: description
attributes:
label: Please don't use.
placeholder: >-
For all types of questions, feature requests, and other issues that aren't nanobind bugs, please start a post on the separate "Discussions" tab and *not* under "Issues".
If have found a nanobind bug, then please open a ticket with a reproducer using the separate "Bug Report" template.
validations:
required: true
33 changes: 33 additions & 0 deletions python/extern/nanobind/.github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Bug report
description: File an issue about a critical issue in nanobind
title: "[BUG]: "
body:
- type: markdown
attributes:
value: |
## Important information
The author's time for processing GitHub issues is unfortunately very limited. Because of this, _nanobind_ cannot accept feature requests. Furthermore, questions should not be submitted here, please use the separate "Discussions" tab. I will unfortunately need to close feature requests or questions maquerading as bug reports.
- type: textarea
id: description
attributes:
label: Problem description
placeholder: >-
Provide a short description, state the expected behavior and what
actually happens. Include relevant information like what version of
Python and nanobind you are using, what system you are on, and any
useful commands / output.
validations:
required: true

- type: textarea
id: code
attributes:
label: Reproducible example code
placeholder: >-
The code should be minimal, have no external dependencies, and isolate the
function(s) that cause breakage. Please submit matched and complete C++ and
Python snippets that can be easily compiled and run to diagnose the
issue. If possible, make a PR with a failing test to provide a
starting point for me to work on.
render: text
173 changes: 173 additions & 0 deletions python/extern/nanobind/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,173 @@
name: Tests

on:
workflow_dispatch:
pull_request:
push:
branches:
- master
- stable
- v*

concurrency:
group: test-${{ github.ref }}
cancel-in-progress: false

jobs:
# This is the "main" test suite, which tests a large number of different
# versions of default compilers and Python versions in GitHub Actions.
standard:
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-2022', 'macos-13']
python: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13.0-rc.2', 'pypy3.9-v7.3.16', 'pypy3.10-v7.3.17']

name: "Python ${{ matrix.python }} / ${{ matrix.os }}"
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'

- name: Install the latest CMake
uses: lukka/get-cmake@latest

- name: Install Eigen
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get -y install libeigen3-dev

- name: Install PyTest
run: |
python -m pip install pytest pytest-github-actions-annotate-failures typing_extensions
- name: Install NumPy
if: ${{ !startsWith(matrix.python, 'pypy') && !contains(matrix.python, 'rc.2') }}
run: |
python -m pip install numpy scipy
- name: Configure
run: >
cmake -S . -B build -DNB_TEST_STABLE_ABI=ON -DNB_TEST_SHARED_BUILD="$(python3 -c 'import sys; print(int(sys.version_info.minor>=11))')"
- name: Build C++
run: cmake --build build -j 2

- name: Run tests
run: >
cd build;
python -m pytest
nvcc-ubuntu:
runs-on: ubuntu-latest
container: nvidia/cuda:12.5.1-devel-ubuntu24.04
name: "Python 3 / NVCC (CUDA 12.6.1) / ubuntu-latest"

steps:
- name: Install dependencies
run: apt-get update && DEBIAN_FRONTEND="noninteractive" apt-get install -y cmake git python3-dev python3-pytest python3-pip libeigen3-dev python3-typing-extensions python3-numpy

- uses: actions/checkout@v4
with:
submodules: true

- name: Configure
run: >
cmake -S . -B build -DNB_TEST_CUDA=ON
- name: Build C++
run: cmake --build build -j 2

- name: Run tests
run: >
cd build;
python3 -m pytest
old-compilers:
strategy:
fail-fast: false
matrix:
include:
- cc: gcc-8
cxx: g++-8
apt: gcc-8 g++-8
- cc: gcc-9
cxx: g++-9
apt: gcc-9
- cc: clang-8
cxx: clang++-8
apt: clang-8
- cc: clang-9
cxx: clang++-9
apt: clang-9
- cc: clang-10
cxx: clang++-10
apt: clang-10

runs-on: ubuntu-20.04
name: "${{matrix.cc}} on Ubuntu 20.04"
env:
CC: ${{matrix.cc}}
CXX: ${{matrix.cxx}}

steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install python3-numpy python3-pytest libeigen3-dev ${{matrix.apt}}
python3 -m pip install typing_extensions
- uses: actions/checkout@v4
with:
submodules: true

- name: Configure
run: cmake -S . -B build

- name: Build C++
run: cmake --build build -j 2

- name: Run tests
run: >
cd build;
python -m pytest
free-threaded:
name: "Python 3.13-dev / ubuntu.latest [free-threaded]"
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: deadsnakes/[email protected]
with:
python-version: 3.13-dev
nogil: true

- name: Install the latest CMake
uses: lukka/get-cmake@latest

- name: Install PyTest
run: |
python -m pip install pytest pytest-github-actions-annotate-failures
- name: Configure
run: >
cmake -S . -B build -DNB_TEST_FREE_THREADED=ON
- name: Build C++
run: cmake --build build -j 2

- name: Run tests
run: >
cd build;
python -m pytest
45 changes: 45 additions & 0 deletions python/extern/nanobind/.github/workflows/nvcc-win.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Tests

on:
workflow_dispatch:

jobs:
nvcc-windows:
runs-on: windows-latest
name: "Python 3.12.7 / NVCC (CUDA 12.5.0) / windows-latest"

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: Jimver/[email protected]
id: cuda-toolkit
with:
cuda: '12.5.0'

- name: Setup Python 3.12.5
uses: actions/setup-python@v5
with:
python-version: 3.12.5
cache: 'pip'

- name: Install PyTest
run: |
python -m pip install pytest pytest-github-actions-annotate-failures typing_extensions
- name: Install NumPy
run: |
python -m pip install numpy scipy
- name: Configure
run: >
cmake -S . -B build -DNB_TEST_CUDA=ON
- name: Build C++
run: cmake --build build -j 2 --config Release

- name: Run tests
run: >
cd build;
python3 -m pytest
42 changes: 42 additions & 0 deletions python/extern/nanobind/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
libnanobind-static.a
libnanobind-static-abi3.a
libnanobind-static-ft.a
libnanobind.so
libnanobind-abi3.so
libnanobind-ft.so
libnanobind.dylib
libnanobind-abi3.dylib
libnanobind-ft.dylib
nanobind.dll
nanobind-abi3.dll
nanobind-ft.dll

libinter_module.dylib
libinter_module.so
inter_module.dll

/.ninja_deps
/.ninja_log
/.cache
/build.ninja
/build
/src/nanobind/cmake
/src/nanobind/include
/src/nanobind/ext
/src/nanobind/src
/dist
/bench
compile_commands.json

CMakeFiles
CMakeCache.txt
cmake_install.cmake
nanobind-config-version.cmake
\.DS_Store
\.cmake
__pycache__
nanobind.egg-info
test_*_ext*.so
test_*_ext*.pyd
py\.typed
.mypy_cache
3 changes: 3 additions & 0 deletions python/extern/nanobind/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "ext/robin_map"]
path = ext/robin_map
url = https://github.com/Tessil/robin-map
18 changes: 18 additions & 0 deletions python/extern/nanobind/.readthedocs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
version: 2

build:
os: ubuntu-22.04
apt_packages:
- librsvg2-bin
tools:
python: "3.11"

sphinx:
configuration: docs/conf.py

python:
install:
- requirements: docs/requirements.txt

formats:
- pdf
Loading

0 comments on commit 3acda63

Please sign in to comment.