-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
124 lines (111 loc) · 3.07 KB
/
pyproject.toml
File metadata and controls
124 lines (111 loc) · 3.07 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
[build-system]
requires = ["setuptools>=65", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "hydro_analysis_toolkit"
requires-python = ">=3.9"
authors = [
{name = "European Centre for Medium-Range Weather Forecasts (ECMWF)", email = "software.support@ecmwf.int"},
]
maintainers = [
{name = "Corentin Carton de Wiart", email = "corentin.carton@ecmwf.int"},
{name = "Oisín M. Morrison", email = "oisin.morrison@ecmwf.int"}
]
description = "ECMWF's Hydrological Analysis Toolkit"
license = { text = "Apache License Version 2.0" }
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Natural Language :: English",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering"
]
dynamic = ["version", "readme"]
dependencies = [
"numpy",
"pandas",
"xarray",
"matplotlib",
"geopandas",
"typer", # check if necessary
"humanize", # check if necessary
"tqdm",
"ipyleaflet",
"ipywidgets",
"earthkit-data>=0.13.8",
"earthkit-hydro>=1.0.0",
"earthkit-meteo",
"cfgrib", # check if necessary
"netCDF4", # check if necessary
"eccodes", # check if necessary
"plotly",
"floods-html",
"geopy",
"setuptools",
"anywidget"
]
[project.urls]
repository = "https://github.com/ecmwf/hat"
documentation = "https://hydro-analysis-toolkit.readthedocs.io"
issues = "https://github.com/ecmwf/hat/issues"
[project.optional-dependencies]
test = [
"pytest"
]
dev = [
"pytest",
"ruff",
"pre-commit"
]
gribjump = [
"earthkit-data[gribjump]",
"gribjumplib==0.10.3.dev20250908"
]
[project.scripts]
hat-extract-timeseries = "hat.cli:extractor_cli"
hat-hydrostats = "hat.cli:stat_calc_cli"
hat-station-mapping = "hat.cli:mapper_cli"
# Linting settings
[tool.ruff]
line-length = 120
indent-width = 4
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.ruff.lint.per-file-ignores]
"__init__.py" = [
"F401", # unused imports
]
"tests/*" = [
"F401", # unused imports
]
# Testing
[tool.pytest.ini_options]
addopts = "--pdbcls=IPython.terminal.debugger:Pdb"
testpaths = [
"tests",
]
# Packaging/setuptools options
[tool.setuptools]
include-package-data = true
[tool.setuptools.dynamic]
readme = {file = ["README.md"], content-type = "text/markdown"}
[tool.setuptools.packages.find]
where = ["."]
exclude = ["tests"]
[tool.setuptools_scm]
version_file = "hat/_version.py"
version_file_template = '''
# Do not change! Do not track in version control!
__version__ = "{version}"
'''
parentdir_prefix_version='hat-' # get version from GitHub-like tarballs
fallback_version='0.7.1'
local_scheme = "no-local-version"