Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
267 lines (233 loc) · 6.77 KB
/
Copy pathpyproject.toml
File metadata and controls
267 lines (233 loc) · 6.77 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
# -*- coding: utf-8 -*-
# AROSICS - Automated and Robust Open-Source Image Co-Registration Software
#
# Copyright (C) 2017–2026
# - Daniel Scheffler (GFZ Potsdam, daniel.scheffler@gfz.de)
# - GFZ Helmholtz Centre for Geosciences, Potsdam, Germany (https://www.gfz.de/)
#
# This software was developed within the context of the GeoMultiSens project funded
# by the German Federal Ministry of Education and Research
# (project grant code: 01 IS 14 010 A-C).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "arosics"
description = "An Automated and Robust Open-Source Image Co-Registration Software for Multi-Sensor Satellite Data"
authors = [{name = "Daniel Scheffler", email = "daniel.scheffler@gfz.de"}]
license = "Apache-2.0"
license-files = ["LICEN[CS]E*", "AUTHORS.rst"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
keywords = [
"arosics",
"image co-registration",
"geometric pre-processing",
"remote sensing",
"sensor fusion",
]
requires-python = ">=3.11"
dependencies = [
"cartopy",
"cmocean",
"folium>=0.6.0,!=0.12.0",
"gdal",
"geoarray>=0.15.0",
"geojson",
"geopandas",
"joblib>=1.3.0",
"matplotlib",
"numpy",
"pandas",
"plotly",
"pyproj>2.2.0",
"py_tools_ds>=0.23.2",
"scikit-image>=0.21.0",
"scipy>=1.7.0",
"shapely",
]
dynamic = ["version"]
[project.readme]
file = "README.rst"
content-type = "text/x-rst"
[project.urls]
"Source code" = "https://git.gfz.de/danschef/arosics"
"Issue Tracker" = "https://git.gfz.de/danschef/arosics/-/issues"
"Documentation" = "https://danschef.git-pages.gfz-potsdam.de/arosics/doc/"
"Change log" = "https://git.gfz.de/danschef/arosics/-/blob/main/HISTORY.rst"
"Algorithm paper" = "https://www.mdpi.com/2072-4292/9/7/676"
"Zenodo" = "https://zenodo.org/record/5093940"
[project.optional-dependencies]
interactive_plotting = [
"holoviews>1.12.7",
"ipython",
"nbformat",
]
interpolation = [
"pykrige",
"scikit-learn",
]
doc = [
"sphinx-argparse",
"sphinx_rtd_theme",
"sphinx-autodoc-typehints",
]
test = [
"pytest",
"pytest-cov",
"pytest-reporter-html1>=0.9.5", # 0.9.4 misses constraint for docutils>=0.22"
"urlchecker",
"arosics[interactive_plotting]",
"arosics[interpolation]",
]
lint = [
"flake8",
"pycodestyle",
"pydocstyle",
]
dev = [
"arosics[test]",
"arosics[doc]",
"arosics[lint]",
]
[project.scripts]
arosics = "arosics.arosics_cli:main"
[tool.hatch.version]
path = "arosics/version.py"
[tool.hatch.build.targets.wheel]
packages = ["arosics"]
[tool.hatch.build.targets.sdist]
exclude = [
".coveragerc",
".editorconfig",
".gitattributes",
".gitignore",
".gitlab-ci.yml",
".github/**",
"docs/**",
"tests/**",
"__pycache__/**",
"*.py[co]",
]
# make pytest import arosics 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.11"
cartopy = "*"
cmocean = "*"
folium = ">=0.6.0,!=0.12.0"
gdal = "*"
geoarray = ">=0.15.0"
geojson = "*"
geopandas = "*"
joblib = ">=1.3.0"
matplotlib = "*"
numpy = "*"
pandas = "*"
plotly = "*"
pyproj = ">2.2.0"
py-tools-ds = ">=0.23.2"
scikit-image = ">=0.21.0"
scipy = ">=1.7.0"
shapely = "*"
# -----------------------------
# Feature-specific dependencies
# -----------------------------
[tool.pixi.feature.test.dependencies]
pixi-pycharm = "*"
pytest = "*"
pytest-cov = "*"
[tool.pixi.feature.test.pypi-dependencies]
pytest-reporter-html1 = ">=0.9.5" # 0.9.4 misses constraint for docutils>=0.22
[tool.pixi.feature.interactive-plotting.dependencies]
holoviews = ">1.12.7"
ipython = "*"
nbformat = "*" # optional dependency of plotly
[tool.pixi.feature.interpolation.dependencies]
pykrige = "*"
scikit-learn = "*"
[tool.pixi.feature.doc.dependencies]
sphinx-argparse = "*"
sphinx-autodoc-typehints = "*"
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 = "*"
# -----------------
# Pixi environments
# -----------------
[tool.pixi.environments]
default = []
interactive-plotting = { features = ["interactive-plotting"]}
interpolation = { features = ["interpolation"]}
test = { features = ["test", "interactive_plotting", "interpolation"]}
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", "interactive_plotting", "interpolation", "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 ./build_arosics_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 arosics"
[tool.pixi.feature.doc.tasks]
docs = "python _tasks.py docs arosics"
[tool.pixi.feature.lint.tasks]
lint = "python _tasks.py lint arosics"
[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"] }