Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
62 lines (55 loc) · 1.99 KB
/
Copy pathpyproject.toml
File metadata and controls
62 lines (55 loc) · 1.99 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
[build-system]
requires = ["scikit-build-core>=0.8", "pybind11>=2.11"]
build-backend = "scikit_build_core.build"
[project]
name = "dasio"
version = "0.2.0"
description = "Lightweight standalone IO + basic processing for DAS (Distributed Acoustic Sensing) data"
readme = "README.md"
license = { text = "MIT" }
authors = [{ name = "Jiaxuan Li" }]
requires-python = ">=3.10"
dependencies = [
"numpy>=1.23",
"h5py>=3",
"scipy>=1.9",
"numba>=0.57",
"pandas>=1.5",
"pyarrow>=14",
"matplotlib>=3.6",
"joblib>=1.2",
"tqdm>=4",
]
[project.optional-dependencies]
dev = ["pytest>=7"]
# ipykernel, not jupyterlab: the env has to be usable *as a kernel*, which is
# what both VSCode and a browser JupyterLab connect to, and ipywidgets does not
# pull it. JupyterLab itself is the frontend application -- VSCode replaces it
# outright, and a browser install is made once in the launching env -- so
# declaring it would add 66 packages (jupyter-server, nbconvert, tornado, ...)
# that the viewer never calls. The widget renderer, jupyterlab_widgets, does
# come with ipywidgets.
viewer = ["fastplotlib>=0.3", "ipywidgets>=8", "ipykernel>=6"]
noise = ["torch>=2"]
pick = ["phasenet>=0.2"]
[project.scripts]
das-desample = "dasio.desample:main"
das-extract-events = "dasio.extract_events:main"
[project.urls]
Homepage = "https://github.com/jxli2a/dasio"
Documentation = "https://jxli2a.github.io/dasio/"
[tool.scikit-build]
cmake.version = ">=3.15"
wheel.packages = ["dasio"]
[tool.cibuildwheel]
build = "cp310-* cp311-* cp312-* cp313-* cp314-*"
# numba has no musllinux or 32-bit wheels
skip = "*-musllinux_*"
archs = ["native"]
test-requires = ["pytest"]
test-command = "pytest {project}/tests/test_bandpass_numeric.py"
[tool.cibuildwheel.macos]
# Apple clang ships without OpenMP. delocate refuses a libomp built for a
# newer macOS than the deployment target, so match the runner's.
before-all = "brew install libomp"
environment = { OpenMP_ROOT = "$(brew --prefix libomp)", MACOSX_DEPLOYMENT_TARGET = "14.0" }