This repository was archived by the owner on Sep 15, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpyproject.toml
More file actions
145 lines (130 loc) · 3.69 KB
/
Copy pathpyproject.toml
File metadata and controls
145 lines (130 loc) · 3.69 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
[project]
name = "tide-GPR"
version = "0.1.2"
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 = [
"beartype>=0.22.9",
"jaxtyping>=0.3.10",
"numpy>=2.3.5",
"scipy>=1.16.3",
"torch>=2.12",
]
[project.optional-dependencies]
experiments = [
"h5py>=3.16.0",
"matplotlib>=3.10.9",
"geomloss>=0.2.6",
"pyyaml>=6.0",
]
[build-system]
requires = ["scikit-build-core>=0.10", "cmake>=3.18", "ninja"]
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
sdist.exclude = [
"outputs/**",
"artifacts/**",
"benchmarks/**",
"build/**",
"dist/**",
"examples/**",
"experiments/**",
"data/**",
"references/**",
"tools/**",
"*.h5",
"*.mat",
"*.npy",
"*.npz",
"*.png",
"*.jpg",
"*.vtk",
]
[tool.scikit-build.cmake.define]
CMAKE_CUDA_ARCHITECTURES = "89"
[tool.pytest.ini_options]
testpaths = ["tests"]
markers = [
"numerical: small deterministic numerical correctness checks",
"cuda: requires a native CUDA backend",
"slow: long-running stability or stress checks",
"openmp: executes native OpenMP cases in fresh processes",
"benchmark: measures performance rather than correctness",
]
[tool.coverage.run]
branch = true
source = ["tide"]
[tool.coverage.report]
fail_under = 73
show_missing = true
skip_covered = 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 -q -m "not cuda and not slow and not benchmark" {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 -q -m "not cuda and not slow and not benchmark" {project}/tests'
[tool.cibuildwheel.macos]
test-command = 'pytest -q -m "not cuda and not slow and not benchmark" {project}/tests'
[dependency-groups]
dev = [
"coverage>=7.13",
"pytest>=9.0.2",
"ruff>=0.15.2",
]