Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
101 lines (89 loc) · 2.33 KB
/
Copy pathpyproject.toml
File metadata and controls
101 lines (89 loc) · 2.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[project]
name = "sleipnirgroup-jormungandr"
description = "Reverse mode autodiff library and NLP solver DSL"
readme = "README.md"
requires-python = ">=3.12"
dependencies = ["matplotlib", "numpy", "scipy"]
dynamic = ["version"]
license = "BSD-3-Clause"
license-files = ["LICENSE.txt"]
[project.urls]
Documentation = "https://sleipnirgroup.github.io/Sleipnir/"
[build-system]
requires = [
"nanobind~=3.1.0",
"py-build-cmake~=0.5.1",
"pybind11-mkdoc~=3.0.0",
]
build-backend = "py_build_cmake.build"
[dependency-groups]
dev = [
"mypy>=2.4.0",
"pytest>=9.1.1",
"scipy-stubs",
]
docstrings = ["pybind11-mkdoc~=3.0.0"]
[tool.py-build-cmake.cmake]
build_type = "Release"
source_path = "."
build_args = ["--target", "_sleipnir"]
install_components = ["python_modules"]
install_args = []
[tool.py-build-cmake.cmake.options]
BUILD_TESTING = "OFF"
SLEIPNIR_BUILD_PYTHON = "ON"
[tool.py-build-cmake.module]
name = "sleipnir"
directory = "python/src"
[tool.py-build-cmake.sdist]
include = [
"CMakeLists.txt",
"SleipnirConfig.cmake.in",
"cmake/*.cmake",
"include",
"python",
"src"
]
exclude = []
[tool.py-build-cmake.wheel]
python_abi = "abi3"
abi3_minimum_cpython_version = 312
[tool.mypy]
files = [
"benchmarks",
"docs/generate_website.py",
"examples",
"python/postprocess_stubs.py",
"python/test",
"tools",
]
allow_redefinition_new = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
explicit_package_bases = true
local_partial_types = true
mypy_path = ["examples/current_manager", "python/test/optimization"]
[[tool.mypy.overrides]]
module = "mpl_toolkits.*"
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "6.0"
pythonpath = ["examples/current_manager", "python/test/optimization"]
testpaths = ["python/test", "examples/current_manager/test"]
[tool.uv]
cache-keys = [
{ file = "CMakeLists.txt" },
{ file = "SleipnirConfig.cmake.in" },
{ file = "cmake/*.cmake" },
{ file = "include/**" },
{ file = "pyproject.toml" },
{ file = "python/cpp/**/*.cpp" },
{ file = "python/cpp/arity.hpp" },
{ file = "python/cpp/binders.hpp" },
{ file = "python/cpp/for_each_type.hpp" },
{ file = "python/cpp/slice_tuple.hpp" },
{ file = "python/cpp/text_wrap.hpp" },
{ file = "python/cpp/try_cast.hpp" },
{ file = "python/src/**" },
{ file = "src/**" },
]