Skip to content

Commit

Permalink
start pixi migration
Browse files Browse the repository at this point in the history
  • Loading branch information
WOTrompDeltares committed Nov 28, 2024
1 parent 5223684 commit 12534c5
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# GitHub syntax highlighting
pixi.lock linguist-language=YAML linguist-generated=true
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ __pycache__/
.vscode/

DT_flood/workflows/deltares_sfincs-cpu:sfincs-v2.0.3-Cauberg.sfincs
DT_flood/workflows/deltares_wflow:v0.7.3.sif
DT_flood/workflows/deltares_wflow:v0.7.3.sif
# pixi environments
.pixi
*.egg-info
8 changes: 4 additions & 4 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ channels:

dependencies:
- cartopy
# - cwltool
- cwltool
- dask=2024.6.0
- delft_fiat=0.1.1 #unpin after FA is compatible with latest
- ipykernel
- hydromt_wflow
# - pandas>2.0.0
- pandas>2.0.0
- python=3.11
- pip
- pip:
- git+https://github.com/Deltares-research/CoastalHazardsToolkit.git
- CoastalHazardsToolkit @ https://github.com/Deltares-research/CoastalHazardsToolkit.git
- dfm_tools
- earthkit
- jupyter
- git+https://github.com/Deltares-research/FloodAdapt.git
- FloodAdapt @ https://github.com/Deltares-research/FloodAdapt.git
- gwwapi
- solara
- ipyleaflet
Expand Down
38 changes: 37 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,40 @@ authors = [
description = "Digital Twin for flooding developed for the InterTwin project"
readme = "README.md"
license = {file = "LICENSE"}
dependencies = []
dependencies = [
"cartopy",
"cwltool ; platform_system != 'Windows'",
"dask==2024.6.0",
"delft_fiat==0.1.1",
"ipykernel",
"hydromt",
"hydromt_wflow>=0.6,<0.7",
"pandas>=2.0.0",
"python==3.11.*",
"pip>=23.1.2"
]

[tool.pixi.project]
channels = ["conda-forge"]
platforms = ["win-64", "linux-64"]

[tool.pixi.dependencies]
cartopy = "*"
dask = "2024.6.0"
delft_fiat = "0.1.1"
ipykernel = "*"
hydromt_wflow = ">=0.6,<0.7"
pandas = ">=2.0.0"

[tool.pixi.target.linux-64.dependencies]
cwltool = "*"

[tool.pixi.pypi-dependencies]
dfm-tools = "*"
earthkit = "*"
jupyter = "*"
gwwapi = "*"
solara = "*"
ipyleaflet = "*"
mapbox-earcut = "*"
DT_flood = { path = ".", editable = true }

0 comments on commit 12534c5

Please sign in to comment.