forked from blaylockbk/Herbie
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
139 lines (120 loc) · 3.27 KB
/
pyproject.toml
File metadata and controls
139 lines (120 loc) · 3.27 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
[project]
name = "herbie-data"
description = "Download numerical weather prediction GRIB2 model data."
readme = "README.md"
requires-python = ">=3.10"
license = { file = "LICENSE" }
authors = [{ name = "Brian K. Blaylock", email = "blaylockbk@gmail.com" }]
maintainers = [{ name = "Brian K. Blaylock", email = "blaylockbk@gmail.com" }]
classifiers = [
"Development Status :: 4 - Beta",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Operating System :: MacOS",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"License :: OSI Approved :: MIT License",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Atmospheric Science",
]
keywords = [
"weather",
"meteorology",
"forecast",
"atmosphere",
"GRIB2",
"xarray",
"HRRR",
]
dependencies = [
"cfgrib>=0.9.15",
"eccodes>=2.37.0",
"numpy>=1.24",
"pandas>=2.1",
"pyproj>=3.7.0",
"requests>=2.23.3",
"toml>=0.10.2", # TODO: Drop in favor of tomllib when Python >=3.11 is required.
"xarray>=2025.1.1",
]
dynamic = ["version"]
[project.urls]
"Homepage" = "https://github.com/blaylockbk/Herbie"
"Documentation" = "https://herbie.readthedocs.io/"
"Repository" = "https://github.com/blaylockbk/Herbie"
"Changelog" = "https://github.com/blaylockbk/Herbie/releases"
"Bug Tracker" = "https://github.com/blaylockbk/Herbie/issues"
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[dependency-groups]
dev = [
"ipykernel>=6.29.5",
"jupyter>=1.1.1",
"pytest>=8.3.5",
"pytest-cov>=6.1.1",
"ruff>=0.11.6",
"scipy>=1.15.2", # only needed for test writing netcdf file
"cartopy>=0.22",
"metpy>=1.3.0",
]
docs = [
"autodocsumm>=0.2.14",
"ipython>=8.35.0",
"linkify-it-py>=2.0.3",
"myst-parser>=4.0.1",
"nbconvert>=7.16.6",
"nbsphinx>=0.9.7",
"pydata-sphinx-theme>=0.16.1",
"recommonmark>=0.7.1",
"sphinx>=8.1.3",
"sphinx-autosummary-accessors>=2025.3.1",
"sphinx-copybutton>=0.5.2",
"sphinx-design>=0.6.1",
"sphinx-markdown-tables>=0.0.17",
"sphinxcontrib-mermaid>=1.0.0",
]
[project.optional-dependencies]
plot = ["cartopy", "matplotlib", "metpy"]
metpy = ["metpy"]
scikit-learn = ["scikit-learn"]
pygrib = ["pygrib"]
extras = [
"herbie-data[plot,metpy,scikit-learn]", # Didn't include pygrib on purpose
]
[tool.hatch]
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "src/herbie/_version.py"
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/docs",
"/notebooks",
"/.vscode",
"/sample_data",
"/tests",
]
[tool.hatch.build.targets.wheel]
packages = ["src/herbie"]
[tool.ruff]
extend-include = ["*.ipynb"]
[tool.ruff.lint]
extend-select = [
"UP", # pyupgrade
"D", # pydocstyle
]
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.pytest.ini_options]
minversion = "2.0"
addopts = "-rsfEX -p pytester --strict-markers --verbosity=3 --cov=src/herbie"
log_level = "DEBUG"
testpaths = ["tests"]
xfail_strict = true
markers = []
[project.scripts]
herbie = "herbie.cli:main"