Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
299 lines (260 loc) · 7.91 KB
/
Copy pathpyproject.toml
File metadata and controls
299 lines (260 loc) · 7.91 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# -*- coding: utf-8 -*-
# EnPT, EnMAP Processing Tool - A Python package for pre-processing of EnMAP Level-1B data
#
# Copyright (C) 2018-2026 Karl Segl (GFZ Potsdam, segl@gfz.de), Daniel Scheffler
# (GFZ Potsdam, danschef@gfz.de), Niklas Bohn (GFZ Potsdam, nbohn@gfz.de),
# Stéphane Guillaso (GFZ Potsdam, stephane.guillaso@gfz.de)
#
# This software was developed within the context of the EnMAP project supported
# by the DLR Space Administration with funds of the German Federal Ministry of
# Economic Affairs and Energy (on the basis of a decision by the German Bundestag:
# 50 EE 1529) and contributions from DLR, GFZ and OHB System AG.
#
# This program is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 3 of the License, or (at your option) any later
# version. Please note the following exception: `EnPT` depends on tqdm, which
# is distributed under the Mozilla Public Licence (MPL) v2.0 except for the files
# "tqdm/_tqdm.py", "setup.py", "README.rst", "MANIFEST.in" and ".gitignore".
# Details can be found here: https://github.com/tqdm/tqdm/blob/master/LICENCE.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
# details.
#
# You should have received a copy of the GNU Lesser General Public License along
# with this program. If not, see <https://www.gnu.org/licenses/>.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "enpt"
description = "EnMAP Processing Tool"
authors = [
{name = "Daniel Scheffler", email = "daniel.scheffler@gfz.de"},
{name = "Niklas Bohn", email = "nbohn@gfz.de"},
{name = "Stéphane Guillaso", email = "stephane.guillaso@gfz.de"},
{name = "Alfredo Bellido Rosas", email = "alfredo.bellidorosas@awi.de"},
{name = "Brenner Silva", email = "brenner.silva@awi.de"},
{name = "Leonardo Alvarado", email = "leonardo.alvarado@awi.de"},
{name = "Karl Segl", email = "segl@gfz.de"},
]
maintainers = [
{name = "Daniel Scheffler", email = "daniel.scheffler@gfz.de"},
]
license = "GPL-3.0-or-later"
license-files = ["LICEN[CS]E*", "AUTHORS.rst"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Natural Language :: English",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
keywords = [
"EnPT",
"EnMAP",
"EnMAP-Box",
"hyperspectral",
"remote sensing",
"satellite",
"processing chain"
]
requires-python = ">=3.10"
dependencies = [
"acwater>=0.5.0",
"arosics>=1.0.0",
"cerberus",
"gdal",
"geoarray>=0.19.2",
"isofit==3.4.3", # compatiblity for >=3.5 is not yet implemented
"joblib",
"jsmin",
"lxml",
"matplotlib",
"mvgavg",
"natsort",
"numpy>=2",
"numpy-indexed",
"packaging",
"pandas",
"py_tools_ds>=0.14.25",
"pyproj>=3.4.0",
"scikit-image",
"scipy",
"sensormapgeo>=1.0.0",
"sicor>=0.19.1",
"tqdm",
"utm",
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
"Source code" = "https://git.gfz.de/EnMAP/GFZ_Tools_EnMAP_BOX/EnPT"
"Issue Tracker" = "https://git.gfz.de/EnMAP/GFZ_Tools_EnMAP_BOX/EnPT/-/work_items"
"Documentation" = "https://enmap.git-pages.gfz-potsdam.de/GFZ_Tools_EnMAP_BOX/EnPT/doc"
"Change log" = "https://git.gfz.de/EnMAP/GFZ_Tools_EnMAP_BOX/EnPT/-/blob/main/HISTORY.rst"
"Zenodo" = "https://zenodo.org/records/8229436"
[project.optional-dependencies]
doc = [
"sphinx-argparse",
"sphinx_rtd_theme",
]
test = [
"pytest",
"pytest-cov",
"pytest-reporter-html1>=0.9.5", # 0.9.4 misses constraint for docutils>=0.22"
"urlchecker",
]
lint = [
"flake8",
"pycodestyle",
"pydocstyle",
]
dev = [
"enpt[test]",
"enpt[doc]",
"enpt[lint]",
]
[project.scripts]
enpt = "enpt.cli:main"
[tool.hatch.version]
path = "enpt/version.py"
[tool.hatch.build.targets.wheel]
packages = ["enpt"]
[tool.hatch.build.targets.sdist]
exclude = [
".coveragerc",
".editorconfig",
".gitattributes",
".gitlab-ci.yml",
".github/**",
"docs/**",
"examples/**",
"tests/**",
"enpt/resources/isofit/*.zip",
"__pycache__/**",
"*.py[co]",
]
# make pytest import enpt from the source directory without installing it via pip
[tool.pytest.ini_options]
pythonpath = ["."]
testpaths = ["tests"]
# ==================
# Pixi configuration
# ==================
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["linux-64", "osx-arm64", "osx-64", "win-64"]
[tool.pixi.dependencies]
pip = "*"
python = ">=3.10"
acwater = ">=0.5.0"
arosics = ">=1.0.0"
cerberus = "*"
gdal = "*"
geoarray = ">=0.19.2"
isofit = "==3.4.3" # compatibility for >=3.5 not yet implemented
joblib = "*"
jsmin = "*"
lxml = "*"
matplotlib = "*"
mvgavg = "*"
natsort = "*"
numpy = ">=2"
numpy-indexed = "*"
packaging = "*"
pandas = "*"
py-tools-ds = ">=0.14.25"
pyproj = ">=3.4.0"
scikit-image = "*"
scipy = "*"
sensormapgeo = ">=1.0.0"
sicor = ">=0.19.1"
tqdm = "*"
utm = "*"
# =================
# Development
# =================
# force Python 3.13 on Linux and Windows
[tool.pixi.target.linux-64.dependencies]
python = ">=3.13"
[tool.pixi.target.win-64.dependencies]
python = ">=3.13"
[tool.pixi.feature.test.dependencies]
#python = ">=3.13" # currently does not work on Mac which would lock all platforms to 3.12
sixabos = "*" # for now, only in the dev requirements until !138 is merged
coverage = "*"
pixi-pycharm = "*"
pytest = ">=3"
pytest-cov = "*"
[tool.pixi.feature.test.pypi-dependencies]
pytest-reporter-html1 = ">=0.9.5" # only available via pip # 0.9.4 misses constraint for docutils>=0.22
[tool.pixi.feature.doc.dependencies]
docutils = ">=0.22"
sphinx = "*"
sphinx-argparse = "*"
sphinx_rtd_theme = "*"
[tool.pixi.feature.lint.dependencies]
flake8 = "*"
pycodestyle = "*"
pydocstyle = "*"
pylint = "*"
[tool.pixi.feature.urlcheck.dependencies]
lychee = "*"
[tool.pixi.feature.deploy.dependencies]
python-build = "*"
twine = "*"
# =================
# EnMAP-Box
# =================
[tool.pixi.feature.enmapbox.dependencies]
enmapbox = "*"
[tool.pixi.feature.enmapbox-dev.pypi-dependencies]
flake8-qgis = "*"
# =================
# Pixi environments
# =================
[tool.pixi.environments]
default = []
test = { features = ["test"]}
enmapbox = ["enmapbox"]
enmapbox-dev = ["dev", "enmapbox", "enmapbox-dev"]
doc = { features = ["doc"], no-default-feature = true }
lint = { features = ["lint"], no-default-feature = true }
urlcheck = { features = ["urlcheck"], no-default-feature = true }
deploy = { features = ["deploy"], no-default-feature = true }
dev = { features = ["test", "doc", "lint", "urlcheck", "deploy"] }
# =================
# Tasks
# =================
# Tasks available in every environment
[tool.pixi.tasks]
clean-build = "python _tasks.py clean-build"
clean-pyc = "python _tasks.py clean-pyc"
clean-test = "python _tasks.py clean-test"
clean = { depends-on = ["clean-build", "clean-pyc", "clean-test"] }
gitlab_ci_docker = """
cd ./tests/CI_docker/ && \
bash ./before_script.sh && \
bash ./build_enpt_testsuite_image.sh
"""
install = { cmd = "pip install .", depends-on = ["clean"] }
create-env-info = "python _tasks.py create-env-info"
# Feature-specific tasks
[tool.pixi.feature.test.tasks]
test = "pytest"
pytest = "python _tasks.py pytest enpt"
[tool.pixi.feature.doc.tasks]
docs = "python _tasks.py docs enpt"
[tool.pixi.feature.lint.tasks]
lint = "python _tasks.py lint enpt"
[tool.pixi.feature.urlcheck.tasks]
urlcheck = "python _tasks.py urlcheck"
[tool.pixi.feature.deploy.tasks]
dist = { cmd = "python _tasks.py dist", depends-on = ["clean"] }
release = { cmd = "twine upload dist/*", depends-on = ["dist"] }