-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
139 lines (124 loc) · 3.12 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "lusos"
dynamic = ["version"]
authors = [{name = "smknaake", email = "[email protected]"}]
description = "Spatial calculation of GHG emissions from SOMERS modelling results"
readme = "README.md"
license = {file = "LICENSE"}
keywords = [
"LULUCF",
"SOMERS",
"Greenhouse gas emission",
"Basis Registratie Grootschalige Topografie",
"BRO Bodemkaart",
"Lasso",
"Deltares",
]
classifiers = [
"Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.12,<3.13"
dependencies = [
"dask",
"fiona",
"geopandas",
"h5netcdf",
"mapbox-earcut",
"netcdf4",
"numba<0.60.0",
"numba_celltree",
"numpy",
"pandas",
"pyarrow",
"rioxarray",
"xarray",
"xugrid",
]
[project.urls]
Homepage = "https://github.com/Deltares-research/lusos"
Repository = "https://github.com/Deltares-research/lusos"
Issues = "https://github.com/Deltares-research/lusos/issues"
[tool.hatch.version]
path = "lusos/__init__.py"
[tool.hatch.build.targets.sdist]
only-include = ["lusos", "tests"]
[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
[tool.pixi.pypi-dependencies]
lusos = { path = ".", editable = true }
[tool.pixi.tasks]
test = "NUMBA_DISABLE_JIT=1 pytest --cov=lusos --cov-report xml --cov-report term"
test_local = "NUMBA_DISABLE_JIT=1 pytest -v --cov"
format = "black ."
lint = "ruff check --fix ./lusos"
build_docs = "sphinx-build -b html docs ./docs/build"
rm_jupyter = "rm -r ./docs/jupyter_execute"
rm_build = "rm -r ./docs/build"
rm_generated = "rm -r ./docs/api_reference/generated"
rebuild_docs = { depends-on = ["rm_jupyter", "rm_build", "rm_generated", "build_docs"] }
pypi-publish = "rm --recursive --force dist && python -m build && twine check dist/* && twine upload dist/*"
[tool.pixi.dependencies]
python = ">=3.12,<3.13"
pip = "*"
numpy = "*"
pandas = "*"
geopandas = "*"
shapely = "*"
xarray = "*"
rioxarray = "*"
fiona = "*"
matplotlib = "*"
pyarrow = "*"
pytest = "*"
dask = "*"
xugrid = "*"
mapbox_earcut = "*"
numba = "<0.60.0"
numba_celltree = "*"
netcdf4 = "*"
h5netcdf = "*"
more-itertools = "*"
pytest-cov = "*"
black = "*"
ruff = "*"
sphinx = "*"
pydata-sphinx-theme = "*"
sphinx-design = "*"
myst-nb = "*"
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.environments]
default = { features = ["py312"], solve-group = "py312" }
py312 = { features = ["py312"], solve-group = "py312" }
[tool.pytest.ini_options]
testpaths = [
"tests",
]
markers = [
"unittest: test of single component",
"integrationtest: test of multiple components",
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
]
[tool.black]
line-length = 88
[tool.ruff]
line-length = 88
target-version = "py312"
[tool.ruff.lint]
select = ["F", "E", "W", "N", "I001"]
ignore = ["F401", "E501", "F811"]
unfixable = ["F401"]
pydocstyle.convention = "numpy"