/
pyproject.toml
134 lines (120 loc) · 3.76 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
[build-system]
requires = ["setuptools>=64.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "pastas"
dynamic = ["version"]
description = "Pastas is an open-source Python framework for the analysis of groundwater time series."
license = { file = "LICENSE" }
readme = "README.md"
authors = [{ name = "Collenteur et al. 2019" }]
maintainers = [
{ name = "R.A. Collenteur", email = "raoulcollenteur@gmail.com" },
{ name = "M. Bakker", email = "markbak@gmail.com" },
{ name = "R. Calje", email = "r.calje@artesia-water.nl" },
{ name = "F. Schaars", email = "f.schaars@artesia-water.nl" },
{ name = "D.A. Brakenhoff", email = "d.brakenhoff@artesia-water.nl" },
{ name = "O.N. Ebbens", email = "o.ebbens@artesia-water.nl" },
{ name = "M.A. Vonk", email = "vonk.mart@gmail.com" },
]
requires-python = ">= 3.9"
dependencies = [
"numpy >= 1.17",
"matplotlib >= 3.1",
"pandas >= 1.1",
"scipy >= 1.8",
"numba >= 0.51",
]
keywords = ["hydrology", "groundwater", "timeseries", "analysis"]
classifiers = [
'Development Status :: 5 - Production/Stable',
'Intended Audience :: Science/Research',
'Intended Audience :: Other Audience',
'License :: OSI Approved :: MIT License',
'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',
'Topic :: Scientific/Engineering :: Hydrology',
]
[project.urls]
homepage = "https://pastas.dev"
repository = "https://github.com/pastas/pastas"
documentation = "https://pastas.readthedocs.io/en/latest/"
[project.optional-dependencies]
solvers = ["lmfit >= 1.0.0", "emcee >= 3.0"]
latexify = ["latexify-py"]
full = ["pastas[latexify,solvers]"]
formatting = ["isort", "black[jupyter]"]
linting = ["flake8"]
pytesting = ["pytest>=7", "pytest-cov", "pytest-sugar"]
ci = [
"pastas[pytesting,solvers]",
"jupyter",
"coverage",
"corner",
"emcee",
"tqdm",
"plotly",
"bokeh >= 3.0",
]
rtd = [
"pastas[solvers]",
"Ipython",
"ipykernel",
"pydata-sphinx-theme",
"sphinx>=3.1, <6.0",
"sphinxcontrib-bibtex",
"requests",
"numpydoc",
"sphinx-design",
"myst_nb",
]
dev = ["tox", "pastas[formatting,linting,ci,rtd]"]
numbascipy = ["numba-scipy >= 0.3.1"]
[tool.setuptools.dynamic]
version = { attr = "pastas.version.__version__" }
[tool.black]
line-length = 88
[tool.isort]
profile = "black"
[tool.pytest.ini_options]
addopts = "--strict-markers --durations=0"
markers = ["notebooks: run notebooks", "bnotebooks: run benchmark notebooks"]
[tool.tox]
legacy_tox_ini = """
[tox]
requires = tox>=4
env_list = format, lint, notebooks, py{39,310,311,312}
[testenv]
description = run unit tests
extras = ci
commands =
pytest tests -m "not notebooks and not bnotebooks"
[testenv:all]
description = run all unit tests (including Notebooks) and obtain coverage
extras = ci
commands =
coverage run -m pytest tests -m "not bnotebooks"
coverage xml
[testenv:notebooks]
description = run the benchmark notebooks
extras = ci
commands =
pytest tests -m "bnotebooks"
[testenv:format]
description = run formatters
basepython = python3.9
extras = formatting
commands =
black pastas --check --diff
isort pastas --check --diff --profile=black
[testenv:lint]
description = run linters
basepython = python3.9
extras = linting
commands =
flake8 pastas --count --show-source --exit-zero --max-line-length=88 --ignore=E203,W503,W504
flake8 pastas --count --exit-zero --max-line-length=88 --statistics --ignore=E203,W503,W504
"""