forked from Benny44/QPALM_vLADEL
-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
120 lines (105 loc) · 3.6 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
[build-system]
requires = [
"py-build-cmake~=0.2.0a7",
"pybind11>=2.10.1,!=2.10.2,!=2.10.3,!=2.10.4,!=2.11.*",
"pybind11-stubgen~=0.16.2",
]
build-backend = "py_build_cmake.build"
[project]
name = "qpalm"
readme = "QPALM/interfaces/python/README.rst"
requires-python = ">=3.7"
license = { "file" = "LICENSE" }
authors = [{ "name" = "Ben Hermans" }]
maintainers = [{ "name" = "Pieter Pas", "email" = "[email protected]" }]
keywords = [
"optimization",
"augmented-lagrangian",
"proximal",
"qp",
"quadratic-programming",
"nonconvex",
"ladel",
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"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.7",
"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",
"Programming Language :: C",
"Programming Language :: C++",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Typing :: Typed",
]
dependencies = ["numpy>=1.19,<2", "scipy>=1.6,<2"]
dynamic = ["version", "description"]
[project.optional-dependencies]
debug = ["qpalm-debug==1.2.3"]
test = ["pytest>=7.2.0,<7.5"]
[project.urls]
Source = "https://github.com/kul-optec/QPALM"
Documentation = "https://kul-optec.github.io/QPALM"
Tracker = "https://github.com/kul-optec/QPALM/issues"
[tool.py-build-cmake.module]
directory = "QPALM/interfaces/python"
[tool.py-build-cmake.sdist]
include = ["CMakeLists.txt", "LADEL", "QPALM", "README.md"]
[tool.py-build-cmake.cmake]
minimum_version = "3.20"
source_path = "QPALM"
args = ["-Wdev"]
build_args = ["-j"]
install_args = []
install_components = ["python_modules", "python_stubs"]
[tool.py-build-cmake.cmake.options]
"QPALM_WITH_CXX:BOOL" = "On"
"QPALM_WITH_PYTHON:BOOL" = "On"
"QPALM_WITH_PY_STUBS:BOOL" = "On"
"CMAKE_POSITION_INDEPENDENT_CODE:BOOL" = "On"
[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]
packages = []
files = ["qpalm/__init__.py"]
args = ["-v", "--no-import"]
[tool.cibuildwheel]
build-verbosity = 1
environment = { PY_BUILD_CMAKE_VERBOSE="1" }
skip = "pp37-*"
test-command = "pytest {package}/QPALM/interfaces/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 = ["QPALM/interfaces/python/test"]
[tool.mypy]
plugins = ["numpy.typing.mypy_plugin"]
[tool.pyright]
# Pyright stops looking after the first match, which is usually in the
# site-packages folder. When doing an editable install, it should look in both
# site-packages and the source folder. To get the search order correct,
# explicitly point it to the source folder first (it will still look for the C++
# extension module stubs in site-packages).
extraPaths = ["QPALM/interfaces/python"]