forked from modflowpy/pyphoenix-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (138 loc) · 4.57 KB
/
pyproject.toml
File metadata and controls
159 lines (138 loc) · 4.57 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
[build-system]
requires = ["setuptools >=61"]
build-backend = "setuptools.build_meta"
[project]
name = "flopy4"
description = "Development project to reimplement MF6 support for FloPy"
authors = [
{ name = "Joe Hughes", email = "jdhughes@usgs.gov" },
{ name = "Chris Langevin", email = "langevin@usgs.gov" },
{ name = "Josh Larsen", email = "jlarsen@usgs.gov" },
{ name = "Michael Reno", email = "mreno@ucar.edu" },
{ name = "Wes Bonelli", email = "wbonelli@ucar.edu" },
{ name = "Marnix Kraus", email = "Marnix.Kraus@deltares.nl" },
]
maintainers = [
{ name = "Joe Hughes", email = "jdhughes@usgs.gov" },
{ name = "Chris Langevin", email = "langevin@usgs.gov" },
{ name = "Josh Larsen", email = "jlarsen@usgs.gov" },
{ name = "Michael Reno", email = "mreno@ucar.edu" },
{ name = "Wes Bonelli", email = "wbonelli@ucar.edu" },
]
keywords = ["MODFLOW", "groundwater", "hydrogeology"]
license = { text = "CC0" }
classifiers = [
"Development Status :: 1 - Planning",
"Intended Audience :: Science/Research",
"License :: CC0 1.0 Universal (CC0 1.0) Public Domain Dedication",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Hydrology",
]
requires-python = ">=3.11,<3.14"
dependencies = [
"modflow-devtools[dfn] @ git+https://github.com/MODFLOW-ORG/modflow-devtools.git@dfn",
"xattree @ git+https://github.com/wpbonelli/xattree.git",
"attrs>=25.4.0,<26",
"cattrs>=25.3.0,<26",
"flopy>=3.9.5,<4",
"jinja2>=3.1.6,<4",
"lark>=1.3.1,<2",
"numpy>=2.3.4,<3",
"pandas>=2.3.3,<3",
"toml>=0.10.2,<0.11",
"networkx>=3.5,<4",
"xarray[parallel,io]>=2025.10.1,<2026",
"scipy>=1.16.2,<2",
"sparse>=0.17.0,<0.18",
"dask[array]>=2025.10.0,<2026",
"pyproj>=3.7.2,<4",
"netcdf4>=1.7.3,<2",
"pyshp>=3.0.2.post1,<4",
"llvmlite>=0.45.1,<0.46",
]
dynamic = ["version"]
[project.optional-dependencies]
dev = ["flopy4[lint,test,build]"]
lint = ["codespell[toml] >=2.2.2", "ruff", "pre-commit>=4.0.1,<5", "mypy"]
test = [
"coverage",
"GitPython",
"jupyter",
"jupytext",
"modflow-devtools",
"pooch>=1.8",
"pytest!=8.1.0",
"pytest-dotenv",
"pytest-xdist",
"pytest-benchmark",
"pytest-cov",
"filelock",
]
build = ["build", "twine"]
[tool.setuptools]
include-package-data = true
zip-safe = false
[tool.setuptools.dynamic]
version = { attr = "flopy4.version.__version__" }
[tool.setuptools.packages.find]
include = ["flopy4", "flopy4.*"]
[tool.setuptools.package-data]
"flopy4.dfns" = ["dfns/*.dfn"]
"flopy4.toml" = ["dfns/toml/*.toml"]
[tool.ruff]
line-length = 100
target-version = "py311"
include = ["pyproject.toml", "flopy4/**/*.py", "test/**/*.py", "docs/**/*.py"]
extend-include = ["docs/**/*.ipynb"]
exclude = ["flopy4/ispec/*.py"]
[tool.ruff.lint]
select = [
"D409", # pydocstyle - section-underline-matches-section-length
"E", # pycodestyle error
"F", # Pyflakes
"I001", # isort - unsorted-imports
]
ignore = [
"F841", # local variable is assigned to but never used
"F821", # undefined name TODO FIXME
"E722", # do not use bare `except`
"E741", # ambiguous variable name
]
[project.scripts]
dfn2lark = "flopy4.mf6.codec.reader.dfn2lark:main"
[project.entry-points.flopy4]
plot = "flopy4.singledispatch.plot_int"
dfn2lark = "flopy4.mf6.codec.reader.dfn2lark:main"
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64"]
[tool.pixi.pypi-dependencies]
flopy4 = { path = ".", editable = true }
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.feature.py313.dependencies]
python = "3.13.*"
[tool.pixi.environments]
test311 = { features = ["py311", "test"], solve-group = "py311" }
test312 = { features = ["py312", "test"], solve-group = "py312" }
test313 = { features = ["py313", "test"], solve-group = "py313" }
dev = { features = ["py311", "test", "lint", "build"], solve-group = "py311" }
[tool.pixi.feature.build.tasks]
build = { cmd = "python -m build" }
[tool.pixi.feature.test.tasks]
test = { cmd = "pytest -v -n auto" }
[tool.pixi.feature.lint.tasks]
lint = { cmd = "ruff check ." }
install = { cmd = "pre-commit install --install-hooks" }
[tool.mypy]
mypy_path = "flopy4"
ignore_missing_imports = true
warn_unreachable = true
[tool.codespell]
skip = "pixi.*,./docs/examples/quickstart/*,**/temp/*"
ignore-words-list = ["wel", "nam", "coo", "datbase", "inout", "delt"]