-
Notifications
You must be signed in to change notification settings - Fork 347
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (115 loc) · 3.41 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (115 loc) · 3.41 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
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
124
125
126
127
128
129
130
131
[project.urls]
"Source Code" = "https://github.com/ERGO-Code/HiGHS"
"Bug Tracker" = "https://github.com/ERGO-Code/HiGHS/issues"
[build-system]
requires = ["scikit-build-core>=0.3.3", "pybind11", "numpy"]
build-backend = "scikit_build_core.build"
[project]
name = "highspy"
version = "1.15.1"
description = "A thin set of pybind11 wrappers to HiGHS"
authors = [{ name = "HiGHS developers", email = "highsopt@gmail.com" }]
readme = "README.md"
license = "MIT"
license-files = [
"LICENSE.txt",
"THIRD_PARTY_NOTICES.md",
]
requires-python = ">=3.9"
dependencies = ["numpy", "typing_extensions; python_version < '3.10'"]
classifiers = [
# "Development Status :: 4 - Beta",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Typing :: Typed",
]
[project.optional-dependencies]
test = ["pytest", "numpy"]
extras = ["highspy-extras==1.15.1"]
[tool.scikit-build]
wheel.expand-macos-universal-tags = true
# A list of packages to auto-copy into the wheel. If this is not set, it will
# default to the first of ``src/<package>``, ``python/<package>``, or
# ``<package>`` if they exist. The prefix(s) will be stripped from the package
# name inside the wheel.
wheel.packages = ["highspy/highspy"]
# Files to include in the SDist even if they are skipped by default. Supports
# gitignore syntax.
sdist.include = [
"highspy/highs.py",
"highspy/__init__.py",
"highspy/__init__.pyi",
"highspy/py.typed",
"highspy/_core/*.pyi",
"tests/test_highspy.py",
"Version.txt",
"highs/HConfig.h.in",
"highs",
"external",
"cmake",
]
sdist.exclude = [
".github",
".gitattributes",
".gitignore",
".github",
"app",
"build",
"check",
"docs",
"subprojects",
".coin-or",
"build_webdemo.sh",
".clang-format",
"__setup.py",
"BUILD.bazel",
"**meson**",
"MODS.md",
"WORKSPACE",
"nuget/",
"nuget/README.md",
"highs/*.bazel*",
"highs/*.meson*",
"interfaces/*csharp*",
"interfaces/*fortran*",
"flake.*",
"highs.pc.in"
]
# # A set of patterns to exclude from the wheel. This is additive to the SDist
# # exclude patterns. This applies to the final paths in the wheel, and can
# # exclude files from CMake output as well. Editable installs may not respect
# # this exclusion.
wheel.exclude = ["include", "share", "lib*/", "bin", "LICENSE.txt", "README.md"]
install.components = ["python"]
[tool.scikit-build.cmake.define]
# Allows the HiPO IpxWrapper link to be compiled
HIPO = "ON"
HIPO_PYTHON = "ON"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
log_cli_level = "INFO"
filterwarnings = ["error"]
testpaths = ["highspy/tests"]
norecursedirs = ["check", ".git", "build", "dist", "*.egg-info"]
[tool.cibuildwheel]
build = "*"
archs = ["auto64", "auto32"]
# highspy does not need vcpkg dependencies (avoid unnecessary compile)
environment = { VCPKG_ROOT = "", VCPKG_INSTALLATION_ROOT = "" }
test-command = "pytest {project}/highspy/tests"
test-extras = ["test", "numpy"]
build-verbosity = 1
[tool.cibuildwheel.macos]
repair-wheel-command = """
delocate-wheel --require-archs {delocate_archs} \
--ignore-missing-dependencies \
-e libunwind \
-w {dest_dir} -v {wheel}
"""