-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpyproject.toml
More file actions
75 lines (66 loc) · 2.51 KB
/
pyproject.toml
File metadata and controls
75 lines (66 loc) · 2.51 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
[build-system]
requires = ["scikit-build-core", "pybind11"]
build-backend = "scikit_build_core.build"
[project]
name = "PyOpenMagnetics"
version = "1.3.6"
requires-python = ">=3.8"
authors = [
{ name="Alfonso Martinez", email="[email protected]" },
]
description = "Python wrapper for OpenMagnetics"
readme = "README.md"
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Operating System :: Microsoft :: Windows :: Windows 11",
"Operating System :: POSIX :: Linux",
"Programming Language :: C++",
"License :: OSI Approved :: MIT License",
]
[project.urls]
Homepage = "https://openmagnetics.com"
Repository = "https://github.com/OpenMagnetics/PyOpenMagnetics"
Contact = "https://www.linkedin.com/in/alfonso-martinez-de-la-torre/"
[tool.scikit-build]
build-dir = "build/{wheel_tag}"
cmake.verbose = true
sdist.exclude = [".venv*", ".venv*/**", "build", "build/**", "dist", "dist/**", "*.egg-info", "__pycache__", "*.pyc"]
# Include additional files in the wheel
wheel.packages = ["."]
wheel.install-dir = "PyOpenMagnetics"
# Ensure AGENTS.md and llms.txt are included in sdist and wheel
sdist.include = ["AGENTS.md", "llms.txt", "PyOpenMagnetics.pyi"]
[[tool.scikit-build.overrides]]
if.platform-system = "^linux"
# build.tool-args = ["-j8"]
[[tool.scikit-build.overrides]]
if.platform-system = "^win32"
# build.tool-args = ["-maxcpucount:8"]
[tool.cibuildwheel]
skip=["pp*", "*-win32", "*mul*"]
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
manylinux-ppc64le-image = "manylinux_2_28"
manylinux-s390x-image = "manylinux_2_28"
manylinux-pypy_x86_64-image = "manylinux_2_28"
manylinux-pypy_aarch64-image = "manylinux_2_28"
environment = { GIT_LFS_SKIP_SMUDGE=1 }
build-verbosity = 1
[tool.cibuildwheel.linux]
before-all = [
"rm -rf /project/build /root/.cmake",
"dnf -y module reset nodejs",
"dnf -y module enable nodejs:20",
"dnf -y install nodejs npm",
"npm --version",
"npm install -g [email protected]"
]
environment = { GIT_LFS_SKIP_SMUDGE=1, CMAKE_BUILD_PARALLEL_LEVEL="3" }
[tool.cibuildwheel.macos]
before-all = "npm --version && npm install -g [email protected]"
environment = { MACOSX_DEPLOYMENT_TARGET="14.0", GIT_LFS_SKIP_SMUDGE=1, CMAKE_BUILD_PARALLEL_LEVEL="3" }
[tool.cibuildwheel.windows]
before-all = "rmdir /S /Q build && npm --version && npm install -g [email protected]"
archs = ["AMD64"]
environment = { GIT_LFS_SKIP_SMUDGE=1, CMAKE_BUILD_PARALLEL_LEVEL="2" }