-
Notifications
You must be signed in to change notification settings - Fork 7
/
pyproject.toml
123 lines (108 loc) · 3.65 KB
/
pyproject.toml
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
[project]
name = "alpaqa"
readme = "python/README.rst"
requires-python = ">=3.8"
license = { "file" = "LICENSE" }
authors = [{ "name" = "Pieter P", "email" = "pieter.p.dev@outlook.com" }]
keywords = ["optimization", "panoc", "alm", "mpc"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Topic :: Scientific/Engineering",
"Topic :: Scientific/Engineering :: Mathematics",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Typing :: Typed",
]
dependencies = ["numpy<2", "casadi~=3.6.0", "cmake~=3.28.3", "ninja~=1.11.1"]
dynamic = ["version", "description"]
[project.optional-dependencies]
docs = ["breathe~=4.35.0", "sphinx>=7.2.2,<8", "sphinx-tabs~=3.4.4", "sphinxcontrib-matlabdomain~=0.20.2", "sphinxcontrib-moderncmakedomain~=3.27.0", "furo==2023.08.19", "matplotlib"]
debug = ["alpaqa-debug==1.0.0a20.dev0"]
test = ["pytest>=7.2.0,<7.5", "qpalm~=1.2.1", "scipy>=1.9.3,<1.12"]
[project.urls]
"Documentation" = "https://kul-optec.github.io/alpaqa"
"Source" = "https://github.com/kul-optec/alpaqa"
"Bug Tracker" = "https://github.com/kul-optec/alpaqa/issues"
[project.scripts]
alpaqa = "alpaqa.__main__:main"
[build-system]
requires = [
"py-build-cmake~=0.2.0a12",
"pybind11==2.11.1",
"pybind11-stubgen~=2.5",
"numpy<2",
]
build-backend = "py_build_cmake.build"
[tool.py-build-cmake.module]
name = "alpaqa"
directory = "python"
[tool.py-build-cmake.sdist]
include = [
"README.md",
"CMakeLists.txt",
"src",
"cmake",
"interfaces",
"applications",
"test",
]
exclude = []
[tool.py-build-cmake.cmake]
minimum_version = "3.24"
source_path = "."
config = []
args = ["-Wdev"]
build_args = ["-j"]
install_components = ["python_modules", "python_stubs"]
[tool.py-build-cmake.cmake.options]
"ALPAQA_WITH_PYTHON:BOOL" = "On"
"ALPAQA_WITH_TESTS:BOOL" = "Off"
"ALPAQA_WITH_EXAMPLES:BOOL" = "Off"
"ALPAQA_WITH_DRIVERS:BOOL" = "Off"
"ALPAQA_WITH_LBFGSB:BOOL" = "Off"
"ALPAQA_WITH_SINGLE_PRECISION:BOOL" = "Off"
"ALPAQA_WITH_LONG_DOUBLE:BOOL" = "On"
"ALPAQA_WITH_QUAD_PRECISION:BOOL" = "Off"
"ALPAQA_WITH_UBSAN_DEBUG:BOOL" = "Off"
"ALPAQA_WITH_ASAN_DEBUG:BOOL" = "Off"
"ALPAQA_DEBUG_CHECKS_EIGEN:BOOL" = "On"
"CMAKE_BUILD_TYPE" = "Debug" # Forces pybind11 to keep debug symbols (https://github.com/pybind/pybind11/issues/4454)
[tool.py-build-cmake.linux.cmake]
config = ["Debug", "Release"]
generator = "Ninja Multi-Config"
[tool.py-build-cmake.mac.cmake]
config = ["Debug", "Release"]
generator = "Ninja Multi-Config"
[tool.py-build-cmake.windows.cmake]
config = ["RelWithDebInfo", "Release"]
[tool.py-build-cmake.windows.cmake.options]
CMAKE_CXX_FLAGS_RELWITHDEBINFO = "/Zi /Ob0 /Od /RTC1"
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO = "/INCREMENTAL:NO /DEBUG:FULL /OPT:REF"
ALPAQA_PYTHON_DEBUG_CONFIG = "RelWithDebInfo"
[tool.py-build-cmake.stubgen]
args = ["-v"]
[tool.py-build-cmake.editable]
mode = "symlink"
[tool.cibuildwheel]
build-verbosity = 1
environment = { PY_BUILD_CMAKE_VERBOSE="1" }
test-command = "pytest {package}/python/test"
test-extras = ["test"]
[tool.cibuildwheel.macos]
archs = ["universal2"]
[tool.cibuildwheel.windows]
archs = ["AMD64", "x86", "ARM64"]
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["python/test"]
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]