forked from Vcholerae1/tide-GPR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
99 lines (88 loc) · 2.59 KB
/
pyproject.toml
File metadata and controls
99 lines (88 loc) · 2.59 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
[project]
name = "tide-GPR"
version = "0.0.18"
description = "Torch-based Inversion & Development Engine for electromagnetic wave propagation"
readme = "README.md"
license = {text = "MIT"}
requires-python = ">=3.12"
authors = [
{name = "V.cholerae", email = "v.cholerae1@gmail.com"}
]
maintainers = [
{name = "V.cholerae", email = "v.cholerae1@gmail.com"}
]
keywords = [
"pytorch",
"electromagnetic",
"wave-propagation",
"maxwell-equations",
"fdtd",
"full-waveform-inversion",
"fwi",
"geophysics",
"inverse-problems",
"cuda"
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: C",
"Programming Language :: C++",
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Scientific/Engineering :: Mathematics",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
]
dependencies = [
"matplotlib>=3.10.7",
"numpy>=2.3.5",
"scipy>=1.16.3",
"torch>=2.9.1",
]
[project.optional-dependencies]
dev = [
"pytest>=7.0",
"pytest-cov>=4.0",
]
[build-system]
requires = ["scikit-build-core>=0.10"]
build-backend = "scikit_build_core.build"
[tool.scikit-build]
cmake.source-dir = "src/tide/csrc"
cmake.build-type = "Release"
wheel.packages = ["src/tide"]
wheel.install-dir = "tide"
wheel.py-api = "py3"
build-dir = "build/{wheel_tag}"
ninja.make-fallback = true
[tool.cibuildwheel]
# Build for Python 3.12 only (python-independent wheel)
build = "cp312-*"
skip = ["*musllinux*"]
# Use manylinux_2_28 for better glibc and compiler support
manylinux-x86_64-image = "manylinux_2_28"
manylinux-aarch64-image = "manylinux_2_28"
build-verbosity = 1
archs = ["auto64"]
# Test configuration
test-requires = "pytest numpy scipy torch"
[tool.cibuildwheel.linux]
# Install GCC 13 for better OpenMP SIMD support
before-all = "dnf install -y gcc-toolset-13"
environment = { PATH="/opt/rh/gcc-toolset-13/root/usr/bin:$PATH", CC="gcc", CXX="g++" }
test-command = "pytest {project}/tests"
# Don't bundle CUDA libraries
repair-wheel-command = "auditwheel repair -w {dest_dir} {wheel} --exclude libcuda.so.1 --exclude 'libcudart.so.*'"
before-test = "pip install torch --index-url https://download.pytorch.org/whl/cpu"
[tool.cibuildwheel.windows]
test-command = "pytest {project}/tests"
[tool.cibuildwheel.macos]
test-command = "pytest {project}/tests"
[dependency-groups]
dev = [
"pytest>=9.0.2",
]