-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy pathpyproject.toml
71 lines (62 loc) · 1.91 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
[build-system]
requires = ["setuptools>=67", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "maraboupy"
version = "2.0.0"
authors = [{ name = "The Marabou Development Team" }]
description = "A package wrapping the Marabou Neural Network Verification tool."
readme = "README.md"
license = { file = "COPYING" }
requires-python = ">=3.8,<=3.12"
[project.optional-dependencies]
test = [
# NOTE: These dependencies must be kept in-sync with the legacy requirements file 'maraboupy/test_requirements.txt'
"numpy>=1.21.0,<2",
# NOTE: The ONNX version must be kept in sync with 'ONNX_VERSION' in CMakeLists
"onnx>=1.15.0,<2",
"onnxruntime>=1.12.0,<2",
"pytest>=7.2.1,<8",
"pytest-cov>=4.0.0,<5"
]
[project.scripts]
Marabou = "maraboupy.MarabouMain:main"
[tool.setuptools]
packages = ["maraboupy"]
[tool.bumpver]
current_version = "v2.0.0"
version_pattern = "vMAJOR.MINOR.PATCH[-TAG]"
commit_message = "bump version {old_version} -> {new_version}"
commit = true
tag = true
push = true
[tool.bumpver.file_patterns]
"pyproject.toml" = [
'^version = "{pep440_version}"$',
'^current_version = "{version}"$',
]
"CMakeLists.txt" = ['^set(MARABOU_VERSION {pep440_version})$']
[tool.cibuildwheel]
# 2023-04-17: cross-compilation with cibuildwheel does not work with our CMake configuration
archs = ["native"]
build-frontend = "build"
skip = [
# 2023-04-16: pybind11 does not support PyPy
"pp*",
# 2023-04-16: skip building musllinux wheels
"*musllinux*",
# 2024-8-22: have to skip building macox arm64
"cp38-macosx_arm64"
]
before-test = ["python {package}/setup.py build_ext --inplace"]
test-command = "pytest {package}/maraboupy/test"
test-extras = ["test"]
test-skip = []
[tool.cibuildwheel.linux]
before-all = "yum install -y wget"
[tool.cibuildwheel.macos]
test-skip = [
# 2023-04-15: Skip trying to test arm64 builds on Intel Macs
"*-macosx_arm64",
"*-macosx_universal2:arm64"
]