-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathpyproject.toml
More file actions
80 lines (73 loc) · 1.54 KB
/
pyproject.toml
File metadata and controls
80 lines (73 loc) · 1.54 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
[build-system]
requires = ["scikit-build-core>=0.9.0", "pybind11>=2.11.0", "numpy", "scipy"]
build-backend = "scikit_build_core.build"
[project]
name = "cupdlpx"
version = "0.2.9"
description = "Python bindings for cuPDLPx (GPU-accelerated first-order LP solver)"
readme = "README.md"
license = { text = "Apache-2.0" }
requires-python = ">=3.8"
authors = [
{ name = "Haihao Lu" },
{ name = "Zedong Peng" },
{ name = "Jinwen Yang" },
{ name = "Bo Tang" }
]
dependencies = ["numpy>=1.21", "scipy>=1.8"]
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
cmake.version = ">=3.21"
cmake.build-type = "Release"
wheel.packages = ["python/cupdlpx"]
sdist.include = [
"CMakeLists.txt",
"src/**",
"include/**",
"internal/**",
"python_bindings/**",
"python/**",
"pyproject.toml",
"README.md",
"LICENSE",
]
[tool.scikit-build.cmake.define]
CMAKE_CUDA_ARCHITECTURES = "all"
CMAKE_CUDA_STANDARD = "17"
CUPDLPX_BUILD_PYTHON = "ON"
CUPDLPX_BUILD_STATIC_LIB = "ON"
CUPDLPX_BUILD_SHARED_LIB = "OFF"
CUPDLPX_BUILD_CLI = "OFF"
CUPDLPX_BUILD_TESTS = "OFF"
[project.optional-dependencies]
test = [
"pytest>=8",
"pytest-cov>=4",
"numpy",
"scipy"
]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = """
-q
-ra
--strict-markers
--maxfail=1
--cov=cupdlpx
--cov-report=term-missing
--cov-report=xml
"""
markers = [
"gpu: requires a CUDA-capable GPU"
]
xfail_strict = true
filterwarnings = [
"error::FutureWarning",
]
[tool.coverage.run]
branch = true
source = ["cupdlpx"]
[tool.coverage.report]
fail_under = 80
show_missing = true
skip_covered = true