Skip to content

Commit e599ad0

Browse files
committed
nanobind As Test Dep
1 parent af9edd7 commit e599ad0

File tree

6 files changed

+14
-8
lines changed

6 files changed

+14
-8
lines changed

docs/build-backend/configuration.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ List of C++ dependencies in PEP 508-style format.
6868
[tool.cppython]
6969
dependencies = [
7070
"fmt>=11.0.0",
71-
"nanobind>=2.4.0",
7271
"boost>=1.84.0",
7372
]
7473
```
@@ -159,7 +158,6 @@ build-path = "build"
159158

160159
dependencies = [
161160
"fmt>=11.0.0",
162-
"nanobind>=2.4.0",
163161
"spdlog>=1.14.0",
164162
]
165163

docs/build-backend/index.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ install-path = "install" # Where provider tools are cached
7171

7272
dependencies = [
7373
"fmt>=11.0.0",
74-
"nanobind>=2.4.0",
7574
]
7675

7776
[tool.cppython.generators.cmake]

examples/conan_cmake/extension/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
cmake_minimum_required(VERSION 4.0)
22
project(example_extension LANGUAGES CXX)
33

4-
# Find Python and nanobind (nanobind will be found via Conan toolchain)
54
find_package(Python REQUIRED COMPONENTS Interpreter Development.Module)
65
find_package(nanobind REQUIRED)
6+
77
find_package(fmt REQUIRED)
88

99
# Create the Python extension module using nanobind

examples/conan_cmake/extension/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ authors = [{ name = "Synodic Software", email = "contact@synodic.software" }]
77
requires-python = ">=3.10"
88

99
[build-system]
10-
requires = ["cppython[conan, cmake, git]"]
10+
requires = ["cppython[conan, cmake, git]", "nanobind>=2.4.0"]
1111
build-backend = "cppython.build"
1212

1313
[tool.scikit-build]
@@ -20,7 +20,7 @@ wheel.packages = ["src/example_extension"]
2020
# and inject the toolchain file into scikit-build-core
2121
install-path = "install"
2222

23-
dependencies = ["fmt>=11.0.2", "nanobind>=2.4.0"]
23+
dependencies = ["fmt>=11.0.2"]
2424

2525
[tool.cppython.generators.cmake]
2626
# Use the CMakePresets.json in this directory

pdm.lock

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ cppython = "cppython.test.pytest.fixtures"
4949

5050
[dependency-groups]
5151
lint = ["ruff>=0.14.7", "pyrefly>=0.43.1"]
52-
test = ["pytest>=9.0.1", "pytest-cov>=7.0.0", "pytest-mock>=3.15.1"]
52+
test = ["pytest>=9.0.1", "pytest-cov>=7.0.0", "pytest-mock>=3.15.1", "nanobind>=2.4.0"]
5353
docs = ["zensical>=0.0.10"]
5454

5555
[project.scripts]

0 commit comments

Comments
 (0)