-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathpyproject.toml
83 lines (73 loc) · 2.56 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
[build-system]
requires = ["scikit-build-core", "pybind11"]
build-backend = "scikit_build_core.build"
[project]
name = "osqp"
dynamic = ["version"]
description = "OSQP: The Operator Splitting QP Solver"
readme = "README.md"
requires-python = ">=3.8"
authors = [
{ name = "Bartolomeo Stellato", email = "[email protected]" },
{ name = "Goran Banjac" },
{ name = "Vineet Bansal", email = "[email protected]" },
{ name = "Amit Solomon", email = "[email protected]" },
{ name = "Henry Schreiner", email = "[email protected]" },
]
dependencies = [
"jinja2",
"numpy>=1.7",
"scipy>=0.13.2",
"setuptools",
"joblib",
]
[project.urls]
Homepage = "https://osqp.org/"
[project.optional-dependencies]
mkl = [
"osqp-mkl",
]
# Include this `dev` extra till pip completely supports PEP735
dev = [
"pre-commit",
"pytest>=6",
"torch",
# Exclude scipy 1.12 because the random sparse array function started returning
# the transpose of the original, breaking the unit tests. This was fixed in 1.13.0.
# This shouldn't actually affect the users, so there shouldn't be a need to exclude
# 1.12 on a user's machine.
# ref: https://github.com/scipy/scipy/issues/20027
"scipy!=1.12.0",
]
cu12 = [
"osqp-cu12",
]
[dependency-groups]
# Exclude scipy 1.12 because the random sparse array function started returning
# the transpose of the original, breaking the unit tests. This was fixed in 1.13.0.
# This shouldn't actually affect the users, so there shouldn't be a need to exclude
# 1.12 on a user's machine.
# ref: https://github.com/scipy/scipy/issues/20027
# Some newer platforms (e.g. cp313-macosx_x86_64 as of 03/13/25), do not
# support installation of torch at all, which is why it is useful to have this
# dependency group.
test-no-nn = ["pytest>=6"]
test = ["torch", "scipy!=1.12.0", { include-group = "test-no-nn" }]
dev = ["pre-commit", { include-group = "test" }]
[tool.scikit-build]
install.components = ["python", "codegen"]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
minimum-version = "0.8"
wheel.install-dir = "osqp"
sdist.include = ["src/osqp/_version.py"]
[tool.scikit-build.cmake.define]
OSQP_ALGEBRA_BACKEND = "builtin"
OSQP_EXT_MODULE_NAME = "ext_builtin"
OSQP_ENABLE_INTERRUPT = {env="OSQP_ENABLE_INTERRUPT"}
OSQP_CODEGEN = {env="OSQP_CODEGEN"}
OSQP_BUILD_SHARED_LIB = {env="OSQP_BUILD_SHARED_LIB"}
CMAKE_OSX_ARCHITECTURES = {env="CMAKE_OSX_ARCHITECTURES"}
[tool.pytest.ini_options]
testpaths = ["src/osqp/tests"]
[tool.setuptools_scm]
write_to = "src/osqp/_version.py"