-
Notifications
You must be signed in to change notification settings - Fork 3
/
pyproject.toml
132 lines (115 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "numba_celltree"
description = "Cell Tree Spatial Index"
readme = { file = "README.rst", content-type = "text/x-rst" }
dynamic = ["version"]
maintainers = [
{ name = "Huite Bootsma", email = "huite.bootsma@deltares.nl" }
]
requires-python = ">=3.9"
dependencies = [
'numba',
'numpy',
]
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Science/Research',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Operating System :: OS Independent',
'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',
'spatial index',
'ugrid',
'unstructured grid',
]
license = { text = "MIT" }
[project.urls]
Home = "https://github.com/deltares/numba_celltree"
Code = "https://github.com/deltares/numba_celltree"
Issues = "https://github.com/deltares/numba_celltree/issues"
[project.optional-dependencies]
all = ["matplotlib"]
docs = ["matplotlib", "pydata-sphinx-theme", "sphinx", "sphinx-gallery"]
[tool.hatch.version]
path = "numba_celltree/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = ["numba_celltree", "tests"]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
numba_celltree = { path = ".", editable = true }
[tool.pixi.dependencies]
python-build = "*"
matplotlib = "*"
numba = "*"
numpy = "*"
pip = "*"
pre-commit = "*"
pydata-sphinx-theme = "*"
pytest = "*"
pytest-cov = "*"
python = ">=3.9"
ruff = "*"
sphinx = "*"
sphinx-gallery = "*"
twine = "*"
[tool.pixi.tasks]
pre-commit = "pre-commit run --all-files"
test = "NUMBA_DISABLE_JIT=1 pytest --cov=numba_celltree --cov-report xml --cov-report term"
test-single-thread = "NUMBA_DISABLE_JIT=1 NUMBA_NUM_THREADS=1 pytest"
test-jit = "NUMBA_DISABLE_JIT=0 pytest"
docs = "NUMBA_DISABLE_JIT=1 sphinx-build docs docs/_build"
all = { depends_on = ["pre-commit", "test", "docs"]}
pypi-publish = "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.9.*"
[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",
]
fixable = ["I"]
ignore-init-module-imports = true
[tool.ruff.lint.pydocstyle]
convention = "numpy"