-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpixi.toml
More file actions
132 lines (109 loc) · 3.16 KB
/
pixi.toml
File metadata and controls
132 lines (109 loc) · 3.16 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
[workspace]
channels = ["hydrocomputing", "conda-forge"]
platforms = ["osx-arm64","linux-64"]
preview = ["pixi-build"]
[environments]
default = { solve-group = "default" }
test = { features = ["test"], solve-group = "default" }
build = { features = ["build"], solve-group = "default" }
docs = { features = ["docs"], solve-group = "default" }
[dependencies]
python = "3.14.*"
matplotlib = "*"
pandas = "*"
pymf6 = "*"
phreeqcrm = "*"
phreeqpy = "*"
gfortran = ">=15.2.0,<15.3"
ipython = ">=9.8.0,<10"
modflowapi = ">=0.3.0,<0.4"
pymf6-tools = ">=0.1.3,<0.2"
jupyterlab = ">=4.5.1,<5"
typer = ">=0.21.1,<0.22"
pylint = "*"
setuptools_scm = "*"
pip = "*"
# [pypi-dependencies]
# rtmf6 = { path = ".", editable = true }
[feature.build.dependencies]
twine = ">=5.0.0,<5.1"
[feature.test.dependencies]
pytest = "*"
pytest-md = "*"
pytest-mock = ">=3.15.1,<4"
[feature.docs.dependencies]
myst-parser = ">=3.0,<4"
sphinx = ">=7.0,<8"
myst-nb = ">=1.1,<2"
jupyterlab = ">=4.5.2,<5"
sphinx-autodoc-typehints = ">=2.0,<3"
furo = "*"
sphinx-copybutton = "*"
sphinx-design = "*"
sphinxcontrib-bibtex = "*"
ansi2html = ">=1.9.2,<2"
rtmf6 = "*"
# General tasks
[tasks.install-editable]
cmd = "pixi remove rtmf6 && pip install --no-build-isolation --no-deps --disable-pip-version-check -e ."
[tasks.uninstall-editable]
cmd = "pip uninstall -y rtmf6 && pixi install"
[tasks.start]
cmd = "rtmf6"
description = "Start rtmf6"
[tasks.show-version]
cmd = "python -m setuptools_scm"
description = "Show version"
[tasks.update-version]
cmd = "python -m setuptools_scm --force-write-version-files"
description = "Update version files"
# Documentation tasks
# Tasks for documentation are defined in the [feature.docs.tasks] section below.
[feature.docs.tasks.docs-build]
cmd = "sphinx-build -b html source _build/html"
cwd = "docs"
description = "Build documentation"
[feature.docs.tasks.docs-clean]
cmd = "rm -rf _build"
cwd = "docs"
description = "Clean documentation build"
[feature.docs.tasks.docs-serve]
cmd = "python -m http.server -d _build/html 8907"
cwd = "docs"
description = "Serve documentation locally"
[feature.docs.tasks.docs-deploy]
cmd = "zsh deploy_docs.sh"
cwd = "docs/.deploy"
description = "Deploy documentation to https://docs.rtmf6.com/."
[feature.docs.tasks.docs-make-cli-doc]
cmd = "typer rtmf6.main utils docs --output README.md"
cwd = "docs/source/users_guide"
description = "Generate CLI documentation"
# Tests tasks
[feature.test.tasks.test-report]
cmd = "pytest --md=report.md"
description = "Run all tests with pytest and generate a report in report.md"
# Build tasks
[feature.build.tasks.build-wheel]
cmd = "uv build"
description = "Build a Python wheel for PyPi upload"
[feature.build.tasks.pypi-upload]
cmd = "python -m twine upload --verbose --config-file=$PYPI_HYDRO"
description = "Upload to PyPi"
# Build conda package with Pixi
[package]
name = "rtmf6"
version = "0.1.0" # TODO: make dynamic
[package.build]
backend = { name = "pixi-build-python", version = "0.4.*" }
[package.host-dependencies]
setuptools = "*"
[package.run-dependencies]
rtmf6 = { path = "." }
matplotlib = "*"
pandas = "*"
gfortran = "*"
phreeqpy = ">=0.6.1,<1"
pymf6 = ">=1.5.5,<2"
flopy = ">=3.9.5,<4"
typer = ">=0.21.1,<0.22"