forked from modflowpy/flopy
-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
145 lines (135 loc) · 3.48 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
[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 = "modflow@usgs.gov"},
]
maintainers = [
{name = "Joseph D. Hughes", email = "jdhughes@usgs.gov"},
]
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.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Hydrology",
]
requires-python = ">=3.8"
dependencies = [
"numpy >=1.15.0,<2.0.0",
"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",
"jupytext",
"modflow-devtools",
"pytest !=8.1.0",
"pytest-benchmark",
"pytest-cov",
"pytest-dotenv",
"pytest-xdist",
"pyzmq >=25.1.2",
"virtualenv"
]
optional = [
"affine",
"descartes",
"fiona",
"geojson",
"geopandas",
"imageio",
"netcdf4",
"pymetis ; platform_system != 'Windows'",
"pyproj",
"pyshp",
"pyvista",
"rasterio",
"rasterstats",
"scipy",
"shapely >=1.8",
"vtk",
"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 = ["F", "E", "I001"]
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`
"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
]