-
Notifications
You must be signed in to change notification settings - Fork 314
/
pyproject.toml
153 lines (143 loc) · 3.81 KB
/
pyproject.toml
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
[build-system]
requires = [
"setuptools >=61",
]
build-backend = "setuptools.build_meta"
[project]
name = "flopy"
description = "FloPy is a Python package to create, run, and post-process MODFLOW-based models"
authors = [
{name = "FloPy Team", email = "[email protected]"},
]
maintainers = [
{name = "Joseph D. Hughes", email = "[email protected]"},
]
keywords = ["MODFLOW", "groundwater", "hydrogeology"]
license = {text = "CC0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Science/Research",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"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 :: Hydrology",
]
requires-python = ">=3.9"
dependencies = [
"numpy>=1.20.3",
"matplotlib >=1.4.0",
"pandas >=2.0.0"
]
dynamic = ["version", "readme"]
[project.optional-dependencies]
dev = ["flopy[lint,test,optional,doc]"]
lint = [
"cffconvert",
"ruff"
]
test = [
"flopy[lint]",
"coverage",
"flaky",
"filelock",
"jupyter",
"jupyter_client >=8.4.0", # avoid datetime.utcnow() deprecation warning
"jupytext",
"modflow-devtools",
"pytest !=8.1.0",
"pytest-benchmark",
"pytest-cov",
"pytest-dotenv",
"pytest-xdist",
"pyzmq >=25.1.2",
"syrupy",
"virtualenv"
]
optional = [
"affine",
"descartes",
"fiona",
"geojson",
"geopandas",
"imageio",
"netcdf4",
"pymetis ; platform_system != 'Windows'",
"pyproj",
"pyshp",
"pyvista ; python_version <'3.13'",
"rasterio",
"rasterstats",
"scipy",
"shapely >=2.0",
"vtk ; python_version <'3.13'",
"xmipy",
]
doc = [
"flopy[optional]",
"ipython[kernel]",
"jupytext",
"myst-parser",
"nbconvert <7.14.0",
"nbsphinx",
"PyYAML",
"rtds-action",
"sphinx ==7.1.2",
"sphinx-rtd-theme >=1",
]
[project.scripts]
get-modflow = "flopy.utils.get_modflow:cli_main"
[project.urls]
Documentation = "https://flopy.readthedocs.io"
"Release Notes" = "https://github.com/modflowpy/flopy/blob/develop/docs/version_changes.md"
"Bug Tracker" = "https://github.com/modflowpy/flopy/issues"
"Source Code" = "https://github.com/modflowpy/flopy"
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.dynamic]
version = {attr = "flopy.version.__version__"}
readme = {file = ["docs/PyPI_release.md", "LICENSE.md"], content-type = "text/markdown"}
[tool.setuptools.packages.find]
include = ["flopy", "flopy.*"]
[tool.setuptools.package-data]
"flopy.mf6.data" = ["dfn/*.dfn"]
"flopy.plot" = ["mplstyle/*.mplstyle"]
[tool.ruff]
line-length = 79
target-version = "py38"
include = [
"pyproject.toml",
"flopy/**/*.py",
"autotest/**/*.py",
"examples/**/*.py",
"scripts/**/*.py",
".docs/**/*.py",
]
extend-include = [
"examples/**/*.ipynb"
]
[tool.ruff.lint]
select = [
"D409", # pydocstyle - section-underline-matches-section-length
"E", # pycodestyle error
"F", # Pyflakes
"I001", # isort - unsorted-imports
]
ignore = [
"E402", # module level import not at top of file
"E501", # line too long TODO FIXME
"E712", # Avoid equality comparisons to `True`
"E722", # do not use bare `except`
"E721", # use `is`/`is not` for type comparisons
"E741", # ambiguous variable name
"F401", # unused import
"F403", # unable to detect undefined names (star imports)
"F524", # `.format` missing argument(s) for placeholder(s)
"F811", # Redefinition of unused variable
"F821", # undefined name TODO FIXME
"F841", # local variable assigned but never used
]