-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
143 lines (127 loc) · 3.92 KB
/
pyproject.toml
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
[project]
name = "darts-nextgen"
version = "0.3.2"
description = "Panarctic Database of Active Layer Detachment Slides and Retrogressive Thaw Slumps from Deep Learning on High Resolution Satellite Imagery."
dependencies = [
# General
"numpy>=1.26.3, <2",
"xarray>=2024.9.0",
"ray[data]>=2.37.0",
"rich>=13.9.2",
"cyclopts>=2.9.9",
# Utils
"lovely-tensors>=0.1.17",
"lovely-numpy>=0.2.13",
# IO
"h5netcdf>=1.3.0",
"rasterio>=1.4.0",
"rioxarray>=0.17.0",
"geopandas>=1.0.1",
"shapely>=2.0.0",
# Training and Inference
"segmentation-models-pytorch>=0.3.4",
# Processing
"scikit-image>=0.20",
"scipy>=1.14.1",
"earthengine-api>=1.1.5",
"xee>=0.0.19",
]
readme = "README.md"
requires-python = ">= 3.11"
authors = [
{ name = "Ingmar Nitze", email = "[email protected]" },
{ name = "Konrad Heidler", email = "[email protected]" },
{ name = "Jonas Küpper", email = "[email protected]" },
{ name = "Tobias Hölzer", email = "[email protected]" },
{ name = "Lucas von Chamier", email = "[email protected]" }
]
[project.optional-dependencies]
cpu = ["torch==2.2.0+cpu", "torchvision==0.17.0+cpu"]
cuda11 = [
"torch==2.2.0+cu118",
"torchvision==0.17.0+cu118",
"cupy-cuda11x>=13.3.0",
"cucim-cu11>=24.8.0",
]
cuda12 = [
"torch==2.2.0+cu121",
"torchvision==0.17.0+cu121",
"cupy-cuda12x>=13.3.0",
"cucim-cu12==24.8.*",
]
gdal393 = ["gdal==3.9.3"]
gdal39 = ["gdal==3.9.2"]
gdal38 = ["gdal==3.8.5"]
gdal384 = ["gdal==3.8.4"]
gdal37 = ["gdal==3.7.3"]
gdal36 = ["gdal==3.6.4"]
gdal384_win64 = ["gdal @ https://github.com/cgohlke/geospatial-wheels/releases/download/v2024.2.18/GDAL-3.8.4-cp311-cp311-win_amd64.whl"]
[project.scripts]
darts = "darts.cli:start_app"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["darts/src/darts"]
[tool.rye]
managed = true
dev-dependencies = [
"ipykernel>=6.29.5",
"matplotlib>=3.9.2",
"ruff>=0.6.8",
"mkdocs>=1.6.1",
"mkdocs-material[imaging]>=9.5.38",
"mike>=2.1.3",
"mkdocstrings[python]>=0.26.1",
"mkdocs-git-revision-date-localized-plugin>=1.2.9",
"mkdocs-git-committers-plugin-2>=2.3.0",
"pyright>=1.1.384",
"pytest>=8",
"ipywidgets>=8.1.5",
"folium>=0.17.0",
"mapclassify>=2.8.1",
]
[tool.rye.workspace]
members = ["darts-*"]
[[tool.rye.sources]]
name = "nvidia"
url = "https://pypi.nvidia.com"
[[tool.rye.sources]]
name = "pytorch-cpu"
url = "https://download.pytorch.org/whl/cpu"
[[tool.rye.sources]]
name = "pytorch-cu11"
url = "https://download.pytorch.org/whl/cu118"
[[tool.rye.sources]]
name = "pytorch-cu12"
url = "https://download.pytorch.org/whl/cu121"
[tool.ruff]
line-length = 120
indent-width = 4 # This is the default
[tool.ruff.lint]
# Default selected Rules are F, E4, E7 and E9 (all stable)
# We also enable preview Rules from E
# See https://docs.astral.sh/ruff/rules/ which rules do what
# F: Pyflakes
# E, W: Pycodestyle
# C: McCabe (code complexity)
# I: isort (import sorting)
# N: pip8-naming (naming conventions)
# D: pydocstyle (docstring formatting) <- this should help us to write documentation
# UP: pyupgrade <- this should help writing up-to-date code
# PD: pandas-vet <- this should help writing better pandas code
# FLY: flynt <- write f-strings
# NPY: numpy <- this should help writing better numpy code
# FURB: refurb <- this should help writing up-to-date code
# DOC: pydoclint <- this should help writing better docstrings
# RUF: ruff
preview = true
select = ["F", "E", "W", "C", "I", "N", "D", "UP", "PD", "FLY", "NPY", "FURB", "DOC", "RUF"]
# Ignore `E402` (import violations) in all `__init__.py` files, and in selected subdirectories.
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402"]
"**/{test,tests,docs,tools}/*" = ["E402", "D1"]
[tool.ruff.lint.pep8-naming]
extend-ignore-names = ["test_*"]