-
Notifications
You must be signed in to change notification settings - Fork 9
/
pyproject.toml
142 lines (123 loc) · 3.21 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "pandamesh"
description = "From geodataframe to mesh"
license = { text = "MIT" }
readme = { file = "README.rst", content-type = "text/x-rst" }
dynamic = ["version"]
maintainers = [{ name = "Huite Bootsma", email = "[email protected]" }]
requires-python = ">=3.9"
dependencies = [
'geopandas',
'pooch',
'triangle',
'shapely >= 2.0',
]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: Implementation :: CPython',
'Topic :: Scientific/Engineering',
]
keywords = ['mesh', 'geopandas', 'unstructured grid']
[project.urls]
Home = "https://github.com/deltares/pandamesh"
Code = "https://github.com/deltares/pandamesh"
Issues = "https://github.com/deltares/pandamesh/issues"
[project.optional-dependencies]
all = [
'geopandas',
'gmsh',
'pooch',
'triangle',
'shapely >= 2.0',
'matplotlib',
'xarray',
]
[tool.hatch.version]
path = "pandamesh/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = ["pandamesh", "tests"]
[tool.isort]
profile = "black"
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"@abc.abstractmethod",
]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
pandamesh = { path = ".", editable = true }
[tool.pixi.dependencies]
python-build = "*"
geopandas = "*"
python-gmsh = "*"
matplotlib = "*"
numpy = "*"
pooch = "*"
pip = "*"
pre-commit = "*"
pydata-sphinx-theme = "*"
py-triangle = "*"
pytest = "*"
pytest-cov = "*"
shapely = ">=2.0"
sphinx = "*"
sphinx-gallery = "*"
hatchling = "*"
jupyter = "*"
twine = "*"
xarray = "*"
[tool.pixi.tasks]
pre-commit = "pre-commit run --all-files"
test = "pytest --cov=pandamesh --cov-report xml --cov-report term"
docs = "sphinx-build docs docs/_build"
all = { depends_on = ["pre-commit", "test", "docs"]}
pypi-publish = { cmd = "rm --recursive --force dist && python -m build && twine check dist/* && twine upload dist/*" }
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"
[tool.pixi.feature.py310.dependencies]
python = "3.10.*"
[tool.pixi.feature.py309.dependencies]
python = "3.09.*"
[tool.pixi.environments]
default = { features = ["py312"], solve-group = "py312" }
py312 = { features = ["py312"], solve-group = "py312" }
py311 = ["py311"]
py310 = ["py310"]
py309 = ["py309"]
[tool.ruff.lint]
# See https://docs.astral.sh/ruff/rules/
select = ["C4", "D2", "D3", "D4", "E", "F", "I", "NPY", "PD"]
ignore = [
"D202",
"D205",
"D206",
"D400",
"D404",
"E402",
"E501",
"E703",
"PD002",
"PD901",
"PD003",
"PD004",
"PD011",
]
ignore-init-module-imports = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"