File: pyproject.toml

package info (click to toggle)
satpy 0.59.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 39,296 kB
  • sloc: python: 93,630; xml: 3,343; makefile: 146; javascript: 23
file content (188 lines) | stat: -rw-r--r-- 6,013 bytes parent folder | download
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
[project]
name = "satpy"
dynamic = ["version"]
description = "Python package for earth-observing satellite data processing"
authors = [
    { name = "The Pytroll Team", email = "pytroll@googlegroups.com" }
]
dependencies = [
    "platformdirs",
    "dask[array]>=0.17.1",
    "donfig",
    "numpy>=1.21",
    "packaging",
    "pillow",
    "pooch",
    "pykdtree",
    "pyorbital",
    "pyproj>=2.2",
    "pyresample>=1.24.0",
    "pyyaml>=5.1",
    "trollimage>=1.24",
    "trollsift",
    "xarray>=0.14.1",
    "zarr",
    "universal_pathlib",
]
readme = "README.rst"
requires-python = ">=3.10"
license = { text = "GPLv3" }
classifiers = [
    "Development Status :: 5 - Production/Stable",
    "Intended Audience :: Science/Research",
    "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)",
    "Operating System :: OS Independent",
    "Programming Language :: Python",
    "Topic :: Scientific/Engineering"
]

[project.optional-dependencies]
avhrr_l1b_eps = ["defusedxml"]
avhrr_l1b_gaclac = ["pygac >= 1.3.0"]
modis_l1b = ["pyhdf", "python-geotiepoints >= 1.1.7"]
geocat = ["pyhdf"]
goci2 = ["netCDF4 >= 1.1.8"]
generic_image = ["rasterio", "rioxarray"]
acspo = ["netCDF4 >= 1.1.8"]
clavrx = ["netCDF4 >= 1.1.8"]
vii_l1b = ["python-geotiepoints"]
viirs_l1b = ["netCDF4 >= 1.1.8"]
viirs_sdr = ["h5py >= 2.7.0"]
viirs_compact = ["h5py >= 2.7.0"]
omps_edr = ["h5py >= 2.7.0"]
amsr2_l1b = ["h5py >= 2.7.0"]
hrpt = ["pyorbital >= 1.3.1", "pygac", "python-geotiepoints >= 1.1.7"]
hrit_msg = ["pytroll-schedule"]
msi_safe = ["rioxarray", "bottleneck", "python-geotiepoints", "defusedxml"]
nc_nwcsaf_msg = ["netCDF4 >= 1.1.8"]
sar_c = ["python-geotiepoints >= 1.1.7", "rasterio", "rioxarray", "defusedxml"]
abi_l1b = ["h5netcdf"]
seviri_l1b_hrit = ["pyorbital >= 1.3.1", "pyPublicDecompWT"]
seviri_l1b_native = ["pyorbital >= 1.3.1"]
seviri_l1b_nc = ["pyorbital >= 1.3.1", "netCDF4 >= 1.1.8"]
seviri_l2_bufr = ["eccodes"]
seviri_l2_grib = ["eccodes"]
hsaf_grib = ["pygrib"]
remote_reading = ["fsspec"]
insat_3d = ["xarray>=2024.10.0"]
gms5-vissr_l1b = ["numba"]
# Writers:
cf = ["h5netcdf >= 0.7.3"]
awips_tiled = ["netCDF4 >= 1.1.8"]
geotiff = ["rasterio", "trollimage[geotiff]"]
ninjo = ["pyninjotiff", "pint"]
units = ["pint-xarray"]
# Composites/Modifiers:
rayleigh = ["pyspectral >= 0.10.1"]
angles = ["pyorbital >= 1.3.1"]
filters = ["dask-image"]
# MultiScene:
animations = ["imageio"]
# Documentation:
doc = ["sphinx", "sphinx_rtd_theme", "sphinxcontrib-apidoc"]
# Other
# geoviews = ["geoviews"]
# holoviews = ["holoviews"]
# hvplot = ["hvplot", "geoviews", "cartopy", "holoviews"]
overlays = ["pycoast", "pydecorate"]
satpos_from_tle = ["skyfield", "astropy"]
tests = ["behave", "h5py", "netCDF4", "pyhdf", "imageio",
         "rasterio", "trollimage", "fsspec", "bottleneck",
         "rioxarray", "pytest", "pytest-lazy-fixtures", "defusedxml",
         "s3fs", "eccodes", "h5netcdf", "xarray>=2024.10.0",
         "skyfield", "ephem", "pint-xarray", "astropy", "dask-image", "python-geotiepoints", "numba"]
dev = ["satpy[doc,tests]"]

[project.scripts]
satpy_retrieve_all_aux_data = "satpy.aux_download:retrieve_all_cmd"

[project.urls]
Homepage = "https://github.com/pytroll/satpy"
"Bug Tracker" = "https://github.com/pytroll/satpy/issues"
Documentation = "https://satpy.readthedocs.io/en/stable/"
"Source Code" = "https://github.com/pytroll/satpy"
Organization = "https://pytroll.github.io/"
Slack = "https://pytroll.slack.com/"
Twitter = "https://twitter.com/hashtag/satpy?src=hashtag_click"
"Release Notes" = "https://github.com/pytroll/satpy/blob/main/CHANGELOG.md"
Mastodon = "https://fosstodon.org/tags/satpy"

[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"

[tool.hatch.metadata]
allow-direct-references = true

[tool.hatch.build.targets.sdist]
only-include = [
    "satpy",
    "doc",
    "AUTHORS.md",
    "CHANGELOG.md",
    "SECURITY.md",
    "CITATION",
]

[tool.hatch.build.targets.wheel]
packages = ["satpy"]

[tool.hatch.version]
source = "vcs"

[tool.hatch.build.hooks.vcs]
version-file = "satpy/version.py"

[tool.isort]
sections = ["FUTURE", "STDLIB", "THIRDPARTY", "FIRSTPARTY", "LOCALFOLDER"]
profile = "black"
skip_gitignore = true
default_section = "THIRDPARTY"
known_first_party = "satpy"
line_length = 120

[tool.ruff]
line-length = 120

[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
# In the future, add "B", "S", "N"
select = ["A", "D", "E", "W", "F", "I", "PT", "TID", "C90", "Q", "T10", "T20", "NPY"]

[tool.ruff.lint.per-file-ignores]
"satpy/tests/*" = ["S101"]  # assert allowed in tests
"utils/coord2area_def.py" = ["T201"]  # allow print
"fetch_avhrr_calcoeffs.py" = ["T201"]  # allow print

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.ruff.lint.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10

[tool.coverage.run]
relative_files = true
omit = ["satpy/version.py"]

[tool.pytest.ini_options]
minversion = 6.0
addopts = ["-ra", "--showlocals", "--strict-markers", "--strict-config"]
xfail_strict = true
log_cli_level = "info"
testpaths = ["satpy/tests"]
filterwarnings = [
    # Uncomment once all warnings are removed so a warning is now a failure:
    # "error",
    "ignore:numpy.ndarray size changed, may indicate binary incompatibility:RuntimeWarning",
    # remove after dask 2025.8.0 release
    "ignore:The `token=` keyword to:FutureWarning",
    # remove after pillow 12.0.0 is released (https://github.com/python-pillow/Pillow/pull/9063)
    "ignore:'mode' parameter is deprecated and will be removed:DeprecationWarning",
    "ignore:invalid value encountered in:RuntimeWarning",
    # remove after pyproj 3.8.0 is released in Sept 2025
    # see https://github.com/pyproj4/pyproj/issues/1309
    "ignore:Conversion of an array with ndim:DeprecationWarning",
    # remove once pyresample https://github.com/pytroll/pyresample/pull/546 is merged
    "ignore:The `frequency` argument is pending deprecation:PendingDeprecationWarning",
]