-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathpyproject.toml
More file actions
78 lines (66 loc) · 2.5 KB
/
Copy pathpyproject.toml
File metadata and controls
78 lines (66 loc) · 2.5 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
[build-system]
requires = ["scikit-build-core", "numpy"]
build-backend = "scikit_build_core.build"
[project]
name = "slycot"
dynamic = ["version"]
description = "A wrapper for the SLICOT control and systems library"
readme = "README.rst"
authors = [{ name = "Enrico Avventi et al." }]
maintainers = [{ name = "Slycot developers", email = "python-control-discuss@lists.sourceforge.net"}]
license = "GPL-2.0 AND BSD-3-Clause AND GPL-3.0-with-GCC-exception AND BSD-2-Clause"
# the * is important: it allows adding SLICOT and OpenBLAS licenses when building wheels
license-files = ["AUTHORS", "LICENSE*.txt"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
"Programming Language :: C",
"Programming Language :: Fortran",
"Programming Language :: Python",
"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",
"Topic :: Software Development",
"Topic :: Scientific/Engineering",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX",
"Operating System :: Unix",
"Operating System :: MacOS",
]
requires-python = ">=3.10"
dependencies = [
"numpy>=2",
]
[project.optional-dependencies]
test = ["pytest", "scipy"]
[project.urls]
homepage = "https://github.com/python-control/Slycot"
[tool.scikit-build]
metadata.version.provider = "scikit_build_core.metadata.setuptools_scm"
wheel.exclude = ["slycot/src/", "slycot/CMakeLists.txt", "slycot/slicot-source.cmake", "slycot/scipy-openblas-symbols"]
[tool.pytest.ini_options]
# run the tests with compiled and installed package
addopts = "--pyargs slycot"
[tool.ruff.lint]
ignore = [ "E741" ]
[tool.cibuildwheel]
# scipy-openblas32 version specified here
before-build = "python {project}/build-tools/cibw_before_build.py 0.3.31.22.1 {project}"
test-command = "pytest --pyargs slycot"
test-extras = ['test']
skip = ["cp38-*", "cp39-*", "cp3??t-*", "*-win32", "*-win_arm64"]
[tool.cibuildwheel.linux]
repair-wheel-command = [
"LD_LIBRARY_PATH=./build-libs",
"auditwheel repair -w {dest_dir} {wheel}",
]
[tool.cibuildwheel.windows]
repair-wheel-command = [
"pip install delvewheel",
"delvewheel repair --add-path build-libs -w {dest_dir} {wheel}"
]
[tool.cibuildwheel.macos]
repair-wheel-command = "bash {project}/build-tools/cibw_repair_wheel_macos.sh {dest_dir} {wheel} {project}"