-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathpyproject.toml
More file actions
128 lines (113 loc) · 3.4 KB
/
Copy pathpyproject.toml
File metadata and controls
128 lines (113 loc) · 3.4 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
[build-system]
requires = ["setuptools", "setuptools-scm"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["eoreader*", "data"]
namespaces = false
[tool.setuptools.package-data]
eoreader = ["*.xml"]
[project]
name = "eoreader"
authors = [
{name = "ICube-SERTIT", email = "dev-sertit@unistra.fr"},
]
description = "Remote-sensing opensource python library reading optical and SAR constellations, loading and stacking bands, clouds, DEM and spectral indices in a sensor-agnostic way."
readme = "README.md"
requires-python = ">=3.10"
license = {text = "Apache 2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: GIS",
"Topic :: Software Development :: Libraries :: Python Modules",
]
dependencies = [
"lxml",
"h5netcdf",
"scipy",
"rasterio>=1.3.10", # numpy >= 2
"xarray>=2024.06.0", # numpy >= 2
"rioxarray>=0.15.0",
"odc-geo[tiff]>=0.5.0",
"geopandas>=0.14.4",
"sertit[full]>=1.54.0",
"spyndex>=0.7.1",
"pyresample",
"zarr",
"rtree",
"cloudpathlib[s3]>=0.15.0",
"validators",
"methodtools",
"dict2xml",
"tifffile",
"ephem",
]
dynamic = ["version"]
[project.optional-dependencies]
"stac" = [
"pystac[validation]",
"stac-asset",
"planetary_computer",
]
[tool.setuptools.dynamic]
version = {attr = "eoreader.__version__"}
[project.urls]
Bug_Tracker = "https://github.com/sertit/eoreader/issues"
Documentation = "https://eoreader.readthedocs.io/latest/"
Source_Code = "https://github.com/sertit/eoreader"
[tool.ruff]
exclude = [
"docs"
]
[tool.ruff.lint]
select = [
# pycodestyle
"E",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
]
ignore = ["E501"]
[tool.ruff.lint.pyupgrade]
# Preserve types, even if a file imports `from __future__ import annotations`.
keep-runtime-typing = true
# Pytest options
[tool.pytest.ini_options]
log_cli = true
log_cli_format = "%(name)s: %(asctime)s - [%(levelname)s] - %(message)s"
log_cli_date_format = "%Y-%m-%d %H:%M:%S"
log_cli_level = "INFO"
filterwarnings = [
"ignore::pytest.PytestReturnNotNoneWarning",
"ignore::rasterio.errors.NotGeoreferencedWarning",
]
[tool.coverage.run]
omit = ["*/__init__.py"]
[tool.coverage.report]
exclude_also = [
"def __repr__", # Printable epresentational string does not typically execute during testing
"raise NotImplementedError", # Abstract methods are not testable
"raise RuntimeError", # Exceptions for defensive programming that cannot be tested a head
"if TYPE_CHECKING:", # Code that only runs during type checks
"@abstractmethod", # Abstract methods are not testable
]
[tool.typos]
files.extend-exclude = ["*.ipynb", "*.html", ".git/*"]
default.extend-ignore-re = ["_.*_", "\"\\w*\"", "PN", ", fo", "FRE", "THR", "T60HTE", "_BA", "ANC_"]