-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
100 lines (92 loc) · 2.54 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
[tool.poetry]
name = "hydrolib-core"
version = "0.8.0"
description = "Python wrappers around D-HYDRO Suite."
authors = ["Deltares"]
license = "MIT"
packages = [{ include = "hydrolib" }]
readme = "README.md"
repository = "https://github.com/deltares/hydrolib-core"
documentation = "https://deltares.github.io/HYDROLIB-core"
homepage = "https://deltares.github.io/HYDROLIB-core"
[tool.poetry.urls]
"issue tracker" = "https://github.com/Deltares/HYDROLIB-core/issues"
[tool.poetry.dependencies]
python = "^3.9"
# exclude yanked netcdf versions 1.7.0 and 1.7.1, but include 1.7.2 (first with python 3.12 support)
netCDF4 = "^1.5,!=1.7.0,!=1.7.1"
# no caret here, since numpy v2 is required for future python 3.13 support, but this is not yet widely supported by packages numpy v1 support is also still required.
numpy = ">=1.25,<3"
pydantic = "^2.5"
# lxml 5.0 is from December 2023
lxml = "^5.0"
meshkernel = "^5.0.1"
strenum = "^0"
[tool.poetry.dev-dependencies]
pytest = "^8.0"
pytest-cov = "^5.0"
black = "^24.3"
isort = "^5.8"
devtools = "^0.6.1"
mkdocs = "^1.2"
mkdocs-material = "^8.0"
mkdocstrings = "^0.16"
mkdocs-autorefs = "^0.3, !=0.3.1"
mkdocs-macros-plugin = "^0.6.3"
mkdocs-table-reader-plugin = "^0.6.1"
mkdocs-jupyter = "^0.21.0"
pymdown-extensions = "^9.1"
commitizen = "^2.17"
flake8 = "^3.9.2"
mypy = "^0.910"
openpyxl = "^3.0.9"
mike = "^1.1.2"
jinja2 = "^3.0"
markupsafe = "<2.1"
jupyter = "^1.0.0"
ipykernel = "^6.15.0"
# matplotlib >=3.8 supports numpy 2.0
matplotlib = "^3.8"
# xarray >=2024.6.0 supports numpy 2.0, but consider looser version if adding it as actual package dependencies
xarray = ">=2024.6.0"
[tool.commitizen]
name = "cz_conventional_commits"
version = "0.8.0"
tag_format = "$version"
version_files = [
"hydrolib/core/__init__.py",
"pyproject.toml:version",
"tests/data/reference/dimr/test_serialize.xml:createdBy",
"tests/data/reference/model/test_dimr_model_save.xml:createdBy",
"tests/data/reference/crosssection/crsloc.ini:HYDROLIB-core",
]
changelog_file = "docs/changelog.md"
[tool.black]
line-length = 88
target-version = ['py39', 'py310', 'py311', 'py312']
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| \.virtualenvs
)/
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
line_length = 88
[tool.pytest.ini_options]
markers = ["plots", "docker"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"