forked from PyPSA/pypsa-eur
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpixi.toml
More file actions
156 lines (144 loc) · 4.75 KB
/
pixi.toml
File metadata and controls
156 lines (144 loc) · 4.75 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
# SPDX-FileCopyrightText: Contributors to PyPSA-Eur <https://github.com/pypsa/pypsa-eur>
#
# SPDX-License-Identifier: MIT
[workspace]
authors = ["Contributors to PyPSA-Eur"]
channels = ["conda-forge", "bioconda", "gurobi"]
name = "pypsa-eur"
platforms = ["win-64", "linux-64", "osx-64", "osx-arm64"]
version = "0.1.0"
[tasks]
reset = """bash -c '
read -p "Do you really wanna continue? This will remove all contents of \
logs, resources, benchmarks, results, and .snakemake directories except \
.gitkeep files (config/config.yaml will not be deleted) (y/n): " ans && \
case $ans in \
[Yy]*) \
for dir in ./logs ./resources ./benchmarks ./results ./.snakemake; do \
find "$dir" -mindepth 1 ! -name ".gitkeep" -delete 2>/dev/null || true; \
done; \
echo "Reset completed.";; \
[Nn]*) \
echo "Reset cancelled.";; \
*) \
echo "Please answer yes or no."; exit 1;; \
esac'
"""
update-dags = """
dot -c && \
snakemake results/networks/base_s_128_elec_.nc -F --dag | sed -n "/digraph/,/}/p" | dot -Tpng -o doc/img/intro-workflow.png && \
snakemake --rulegraph -F | sed -n "/digraph/,/}/p" | dot -Tpng -o doc/img/workflow.png
"""
[dependencies]
atlite = ">=0.3"
bokeh = ">=3.8.0"
cartopy = ">=0.25.0"
copernicusmarine = ">=2.2.4"
country_converter = ">=1.3.2"
dask = ">=2025.10.0"
descartes = ">=1.1.0"
entsoe-py = ">=0.7.8"
fiona = ">=1.10.1"
folium = ">=0.20.0"
geojson = ">=3.2.0"
geopandas = ">=1"
geopy = ">=2.4.1"
glpk = ">=5.0"
graphviz = ">=12.2.1"
gurobi = ">=12.0.3"
highspy = ">=1.12.0"
ipython = ">=9.7.0"
jpype1 = ">=1.6.0"
jupyter = ">=1.1.1"
libgdal-netcdf = ">=3.10.3"
linopy = ">=0.4.4"
lxml = ">=6.0.2"
matplotlib = ">=3.10.7"
memory_profiler = ">=0.61.0"
netcdf4 = ">=1.7.2"
networkx = ">=3.5"
numpy = ">=1.26.4"
openpyxl = ">=3.1.5"
pandas = ">=2.1"
plotly = ">=6.4.0"
powerplantmatching = ">=0.5.15"
pre-commit = ">=4.3.0"
proj = ">=9.6.2"
pylint = ">=4.0.2"
pypsa = ">=0.35.2"
pyscipopt = ">=5.6.0"
pytables = ">=3.10.2"
python = ">=3.10"
pytz = ">=2025.2"
pyxlsb = ">=1.0.10"
rasterio = ">=1.4.3"
rioxarray = ">=0.20.0"
ruff = ">=0.14.3"
scipy = ">=1.16.3"
seaborn = ">=0.13.2"
shapely = ">=2.0"
snakemake-executor-plugin-cluster-generic = ">=1.0.9"
snakemake-executor-plugin-slurm = ">=1.9.2"
snakemake-minimal = ">=9"
snakemake-storage-plugin-http = ">=0.3"
tenacity = ">=9.1.2"
tqdm = ">=4.67.1"
tsam = ">=2.3.1"
xarray = ">=2024.3.0,<2025.7.0"
xlrd = ">=2.0.2"
yaml = ">=0.2.5"
snakemake-storage-plugin-cached-http = ">=0.1.0"
[feature.doc.tasks.build-docs]
args = ["dir", {"arg" = "output", "default" = "html"}]
cmd = "dot -c && sphinx-build -T -b {{ output }} doc {{ dir }}/{{ output }} "
[feature.doc.dependencies]
atlite = ">=0.2.9"
cartopy = ">=0.25.0"
dask = ">=2025.10.0"
descartes = ">=1.1.0"
fiona = ">=1.10.1"
graphviz = ">=13.1.2"
matplotlib = ">3.5.1"
memory_profiler = ">=0.61.0"
myst-parser = ">=4.0.1"
powerplantmatching = ">=0.5.5"
pydot = ">=4.0.1,<5"
pypsa = ">=0.35.2"
pytables = ">=3.10.1"
python = ">=3.10.19"
pyyaml = ">=6.0.3"
requests = ">=2.32.5"
scikit-learn = ">=1.7.2"
seaborn = ">=0.13.2"
sphinx = ">=8.1.3"
sphinx-book-theme = ">=1.1.4"
sphinxcontrib-bibtex = ">=2.6.5"
tabula-py = ">=2.7.0"
tenacity = ">=9.1.2"
tsam = ">=2.3.1"
[feature.test.tasks]
integration-tests = """
snakemake -call solve_elec_networks --configfile config/test/config.electricity.yaml &&
snakemake -call --configfile config/test/config.overnight.yaml &&
snakemake -call --configfile config/test/config.myopic.yaml &&
snakemake -call resources/test-elec-clusters/networks/base_s_adm.nc --configfile config/test/config.clusters.yaml &&
snakemake -call --configfile config/test/config.scenarios.yaml -n &&
snakemake -call plot_power_networks_clustered --configfile config/test/config.tyndp.yaml &&
echo "All tests completed successfully."
"""
clean-tests = """
snakemake -call solve_elec_networks --configfile config/test/config.electricity.yaml --delete-all-output ;
snakemake -call --configfile config/test/config.overnight.yaml --delete-all-output ;
snakemake -call --configfile config/test/config.myopic.yaml --delete-all-output ;
snakemake -call resources/test-elec-clusters/networks/base_s_adm.nc --configfile config/test/config.clusters.yaml --delete-all-output ;
snakemake -call --configfile config/test/config.scenarios.yaml -n --delete-all-output ;
snakemake -call plot_power_networks_clustered --configfile config/test/config.tyndp.yaml --delete-all-output ;
echo "All test outputs have been cleaned up."
"""
unit-tests = "pytest test"
all-tests = {depends-on = ["integration-tests", "clean-tests", "unit-tests"]}
[feature.test.dependencies]
pytest = ">=8.4.2"
[environments]
doc = { features = ["doc"], no-default-feature = true }
test = ["test"]