-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
160 lines (145 loc) · 5.06 KB
/
pyproject.toml
File metadata and controls
160 lines (145 loc) · 5.06 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
[build-system]
requires = ["setuptools>=68", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "schimpy"
dynamic = ["version"] # Placeholder; setuptools-scm will manage this
description = "Python package for SCHISM"
readme = "README.rst"
license = "MIT"
license-files = [
"LICENSE",
]
authors = [
{name = "California Department of Water Resources", email = "Eli.Ateljevich@water.ca.gov"},
{name = "California Department of Water Resources", email = "Kijin.Nam@water.ca.gov"}
]
# This has to be coordinated with entries in .github/python-package-conda.yml and build_sphinx.yml
requires-python = ">=3.10,<3.13"
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.10"
]
keywords = ["schimpy", "SCHISM", "hydrodynamics", "mesh", "geometry", "GIS", "geospatial", "data processing"]
# These should be the actual dependencies for API use and associated testing (but not the test framework itself)
# Pinning is very hard to maintain has two uses:
# 1. making sure we avoid bugs or have a sufficiently new versions
# 2. pinning > a very low version helps reduce the search space for the conda 'solve' while having no real
# influence
dependencies = [
"geopandas",
"vtools3>=3.9",
"dms-datastore",
"gdal",
"pyogrio",
"xarray",
"netcdf4",
"scipy>=1.8",
"matplotlib",
"numba",
"statsmodels",
"palettable",
"boto3",
"pyproj",
"nodepy",
"shapely>=2.0",
"param",
"rtree",
"click",
"dask>=2022.11",
"numpy>2.0",
"diskcache",
"param",
"rasterio"
]
[project.optional-dependencies]
# These are the tools needed to perform documentation
doc = [
"sphinx",
"sphinx-rtd-theme",
"sphinx-click",
"sphinx-design",
"sphinx-argparse",
"sphinxcontrib-bibtex",
"sphinxcontrib-mermaid",
"myst-parser",
"numpydoc",
"pillow>=4.0.0",
"nbsphinx",
"nbconvert",
"ipykernel",
"docutils",
"pandoc",
"matplotlib",
"ipython"
]
#These are the tools needed to perform testing.
test = [
"pytest>=3",
"pytest-cov",
"tox",
"click"
]
# If using pip, these would be used for the build
# similar tools are listed in python-package-conda.yml and if there are minimum versions (e.g. setuptools)
# this is where they should be spelled out
build = [
"build",
"pip",
"setuptools>68",
"wheel",
"setuptools-scm"
]
[project.urls]
Homepage = "https://cadwrdeltamodeling.github.io/schimpy/"
[tool.flake8]
exclude = ["docs"]
[tool.ruff.lint]
select = ["NPY201"]
[tool.setuptools.packages.find]
include = ["schimpy","schimpy.util"]
exclude = ["docsrc"]
[tool.setuptools_scm]
[project.scripts]
sch = "schimpy.__main__:cli"
batch_metrics = "schimpy.batch_metrics:batch_metrics_cli"
clip_dems = "schimpy.clip_dems:clip_dems_cli"
contour_smooth = "schimpy.contour_smooth:contour_smooth_cli"
convert_mesh = "schimpy.convert_mesh:convert_mesh_cli"
convert_polygons = "schimpy.convert_polygons:convert_polygons_cli"
convert_linestrings = "schimpy.convert_linestrings:convert_linestrings_cli"
convert_points = "schimpy.convert_points:convert_points_cli"
combine_consume = "schimpy.combine_consume:combine_consume_cli"
model_time = "schimpy.model_time:model_time_cli"
convert_2dm = "schimpy.sms2gr3:convert_2dm_cli"
prepare_schism = "schimpy.prepare_schism:prepare_schism_cli"
hotstart_inventory = "schimpy.hotstart_inventory:hotstart_inventory_cli"
create_vgrid_lsc2 = "schimpy.create_vgrid_lsc2:create_vgrid_lsc2_cli"
create_hotstart = "schimpy.schism_hotstart:create_hotstart_cli"
split_quad = "schimpy.split_quad:split_quads_cli"
small_areas = "schimpy.small_areas:small_areas_cli"
station = "schimpy.station:convert_station_cli"
create_nudging = "schimpy.nudging:create_nudge_cli"
interpolate_structure = "schimpy.interpolate_structure:interpolate_structure_cli"
merge_th = "schimpy.merge_th:merge_th_cli"
create_station_output = "schimpy.create_station_output:create_station_output_cli"
set_param = "schimpy.param:set_param_cli"
bctide = "schimpy.bctide:bctide_cli"
# check_skewness = "schimpy.check_skewness:check_skewness_cli"
# combine_flux = "schimpy.combine_flux:combine_flux_cli"
# convert_sav_class_to_number = "schimpy.convert_sav_class_to_number:convert_sav_class_to_number_cli"
# create_mesh_n_levels = "schimpy.create_mesh_n_levels:create_mesh_n_levels_cli"
# cruise_plot = "schimpy.cruise:cruise_plot_cli"
# cut_mesh = "schimpy.cut_mesh:cut_mesh_cli"
# download_hrrr = "schimpy.download_hrrr:download_hrrr_cli"
# embed_raster = "schimpy.embed_raster:embed_raster_cli"
# schism_yaml = "schimpy.schism_yaml:schimpy_yaml_cli"
# grid_opt = "schimpy.grid_opt:grid_opt_cli"
# material_poly = "schimpy.material_poly:material_poly_cli"
# schism_timing = "schimpy.simulation_timing:schism_timing_cli"
# stacked_dem_fill = "schimpy.stacked_dem_fill:stacked_fill_cli"
# mesh_volume_tvd = "schimpy.mesh_volume_tvd:mesh_volume_tvd_cli"
# subset_schism_output = "schimpy.subset_schism_output:subset_schism_output_cli"
# archive_ts = "schimpy.scripts.archive_ts:archive_ts_cli"