-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
68 lines (60 loc) · 2.29 KB
/
pyproject.toml
File metadata and controls
68 lines (60 loc) · 2.29 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
[project]
name = "avaScenarioModelChain"
description = "Avalanche Model Chain workflow (Preprocessing and PRA/Avalanche simulation pipeline)"
requires-python = ">=3.9,<3.12"
# ----------------------------------------------------------------------
# Core Python dependencies
# ----------------------------------------------------------------------
dependencies = [
"numpy",
"matplotlib",
"shapely",
"ConfigUpdater",
"numba",
"whitebox",
"pyarrow",
"tqdm",
]
# ----------------------------------------------------------------------
# Pixi PROJECT configuration
# ----------------------------------------------------------------------
[tool.pixi.project]
channels = ["https://prefix.dev/conda-forge"]
platforms = ["linux-64", "win-64", "osx-64"]
# ----------------------------------------------------------------------
# GDAL/Fiona/Rasterio/PROJ stack
# ----------------------------------------------------------------------
[tool.pixi.dependencies]
python = "3.11.*"
proj = "9.5.*"
gdal = "3.10.*"
fiona = "1.10.*"
rasterio = "1.4.*"
pyproj = "3.7.*"
pyarrow = "*"
# ----------------------------------------------------------------------
# Task entrypoint
# ----------------------------------------------------------------------
[tool.pixi.tasks]
modelchain = { cmd = "python runAvaScenModelChain.py", cwd = "." }
# ----------------------------------------------------------------------
# Environments
# ----------------------------------------------------------------------
[tool.pixi.environments]
dev = { features = ["dev"] }
# ----------------------------------------------------------------------
# Environment variables for GDAL/Numba
# ----------------------------------------------------------------------
[tool.pixi.activation.env]
NUMBA_CAPTURED_ERRORS = "new_style"
CPL_LOG = "/dev/null"
GDAL_PAM_ENABLED = "NO"
GDAL_DISABLE_READDIR_ON_OPEN = "EMPTY_DIR"
# ----------------------------------------------------------------------
# LOCAL AvaFrame REQUIRED for this workflow
# This points to:
# <repo_root>/../AvaFrame
# which works for Bitbucket dev AND GitHub clones.
# ----------------------------------------------------------------------
[tool.pixi.feature.dev.pypi-dependencies]
avaframe = { path = "../AvaFrame", editable = true }