forked from serapeum-org/Hapi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
184 lines (160 loc) · 5.71 KB
/
Copy pathpyproject.toml
File metadata and controls
184 lines (160 loc) · 5.71 KB
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
[project]
name = "HAPI-Nile"
version = "1.7.0"
description = "Distributed hydrological-model"
readme = {file = "README.md", content-type = "text/markdown"}
authors = [
{ name = "Mostafa Farrag", email = "moah.farag@gmail.com" }
]
license = {text = "GNU General Public License v3"}
keywords = ["Hydrology", "Distributed hydrological model"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
"Natural Language :: English",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: GIS",
"Intended Audience :: Science/Research",
"Intended Audience :: Developers",
]
requires-python = ">= 3.11, <4"
dependencies = [
"geopandas >=1.0.1",
"loguru >=0.7.2",
"numpy >=2.1.3",
"pandas >=2.2.3",
"PyYAML >=6.0.2",
"pyramids-gis >=0.6.0",
"requests >=2.31.0",
"scipy >=1.11.4",
"serapeum-utils >=0.2.0",
"statista >=0.6.0",
"Oasis-Optimization >=1.0.3",
"cleopatra >=0.5.1",
"matplotlib >=3.7.2"
]
[project.optional-dependencies]
dev = [
"nbval >=0.11.0",
"pre-commit >=3.7.1",
"pre-commit-hooks >=4.6.0",
"pytest >=8.2.2",
"pytest-cov >= 6.0.0",
"coverage",
"build >=1.0.0",
"twine >=5.0.0",
"pip",
"jupyterlab",
"jupyter",
"commitizen >=4.8.4"
]
docs = [
"mkdocs >=1.5.3",
"mkdocs-material >=9.5.3",
"mkdocstrings >=0.24.0",
"mkdocstrings-python >=1.7.5",
"mike >=2.1.3",
"mkdocs-jupyter >=0.25.1",
"mkdocs-autorefs >=1.2",
"mkdocs-macros-plugin >=1.3.7",
"mkdocs-table-reader-plugin >=3.1.0",
"mkdocs-mermaid2-plugin >=1.2.1",
"jupyter-contrib-nbextensions >=0.7.0",
"mkdocs-panzoom-plugin",
"notebook <7.0"
]
[project.urls]
homepage = "https://github.com/Serapieum-of-alex/Hapi"
repository = "https://github.com/Serapieum-of-alex/Hapi"
documentation = "https://serapieum-of-alex.github.io/Hapi"
Changelog = "https://github.com/Serapieum-of-alex/Hapi/blob/main/docs/change-log.md"
[project.scripts]
download-parameters = "Hapi.parameters.parameters:main"
download-parameter-set = "Hapi.parameters.parameters:main"
list-parameter-names = "Hapi.parameters.parameters:main"
[build-system]
requires = ["setuptools>=80.0.0", "wheel"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
[tool.setuptools.packages.find]
where = ["src"]
include = ["Hapi", "Hapi.*"]
[tool.setuptools.package-data]
Hapi = ["*.yaml", "include/gdal/*.h"]
[tool.flake8]
ignore = ["E203", "E266", "E501", "W503", "E722", "C901", "E741", "E731"]
max-line-length = 88
max-complexity = 18
select = "B,C,E,F,W,T4"
[tool.black]
profile = "flake8"
line-length = 88
skip-string-normalization = true
[tool.isort]
profile = "black"
line_length = 88
multi_line_output = 3
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "pep621"
tag_format = "$version"
changelog_file = "docs/change-log.md"
update_changelog_on_bump = false
style = [
["qmark", "fg:#ff9d00 bold"],
["question", "bold"],
["answer", "fg:#ff9d00 bold"],
["pointer", "fg:#ff9d00 bold"],
["highlighted", "fg:#ff9d00 bold"],
["selected", "fg:#cc5454"],
["separator", "fg:#cc5454"],
["instruction", ""],
["text", ""],
["disabled", "fg:#858585 italic"]
]
[tool.pytest.ini_options]
pythonpath = ["src"]
testpaths = ["tests"]
markers = [
"vfs: mark a test as a virtual file system (deselect with '-m \"not vfs\"')",
"slow: mark test as slow (deselect with '-m \"not slow\"')",
"fast: mark test as fast (deselect with '-m \"not fast\"')",
"plot: test plotting function optional package (deselect with '-m \"not plot\"')",
"e2e: end-to-end test (deselect with '-m \"not e2e\"')",
"mock: mock test (deselect with '-m \"not mock\"')",
"integration: integration test (deselect with '-m \"not integration\"')",
"fig_share: FigShare API test (deselect with '-m \"not fig_share\"')"
]
[tool.pixi.workspace]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64"]
[tool.pixi.pypi-dependencies]
HAPI-Nile = { path = ".", editable = true }
[tool.pixi.tasks]
main = { cmd = "pytest -vvv --cov=src/Hapi -sv -m 'not plot and not fig_share' --cov-report=xml", description = "Run the main test suite" }
plot = { cmd = "pytest -vvv --cov=src/Hapi -sv -m 'plot' --cov-report=xml", description = "Run plot test suite" }
test-all = { cmd = "pytest -vvv --cov=src/Hapi -sv -m 'not fig_share' --cov-report=xml --cov-report=term-missing", description = "Run all test suite" }
notebooks = { cmd = "pytest --nbval --nbval-lax --verbose examples/notebooks", description = "Check notebooks" }
build-dist = { cmd = "python -m build", description = "Build sdist and wheel for PyPI" }
publish-pypi = { cmd = "twine upload --non-interactive --repository pypi dist/*", depends-on = ["build-dist"], description = "Build and upload package to PyPI" }
cz-changelog = { cmd = "cz changelog", description = "Generate changelog using Commitizen" }
cz-bump = { cmd = "cz bump", description = "Bump version using Commitizen" }
[tool.pixi.environments]
default = { solve-group = "default" }
dev = { features = ["dev"], solve-group = "default" }
docs = { features = ["docs"], solve-group = "docs" }
py311 = { features = ["py311", "dev"], solve-group = "py311" }
py312 = { features = ["py312", "dev"], solve-group = "py312" }
py313 = { features = ["py313", "dev"], solve-group = "py313" }
[tool.pixi.feature.py311.dependencies]
python = "3.11.*"
[tool.pixi.feature.py312.dependencies]
python = "3.12.*"
[tool.pixi.feature.py313.dependencies]
python = "3.13.*"
[tool.pixi.dependencies]
gdal = ">=3.10.0,<4"