Skip to content

Commit 49280cb

Browse files
committed
Add Parcels as submodule and source installation
1 parent daa4be9 commit 49280cb

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,3 +178,9 @@ src/virtualship/_version_setup.py
178178

179179
.vscode/
180180
.DS_Store
181+
182+
# Ignore pixi.lock file for this project. The con of 22k lines of noise it adds to diffs is not worth
183+
# the minor benefit of perfectly reproducible environments for all developers (and all the tooling that would
184+
# be required to support that - see https://github.com/pydata/xarray/issues/10732#issuecomment-3327780806
185+
# for more details)
186+
pixi.lock

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "Parcels"]
2+
path = Parcels
3+
url = [email protected]:Parcels-code/Parcels.git

docs/contributing/index.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ To get started contributing to VirtualShip:
1818

1919
**Step 2:** [Fork the repository](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/working-with-forks/fork-a-repo#forking-a-repository)
2020

21-
**Step 3:** Clone your fork and `cd` into the repository.
21+
**Step 3:** Clone your fork with submodules and `cd` into the repository.
22+
23+
```bash
24+
git clone --recurse-submodules [email protected]:YOUR_USERNAME/virtualship.git
25+
cd virtualship
26+
```
27+
28+
```{note}
29+
The `--recurse-submodules` flag is required to clone the Parcels submodule, which is used for testing and development.
30+
```
2231

2332
**Step 4:** Install the Pixi environment
2433

pixi.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ pre-commit = { features = ["pre-commit"], no-default-feature = true }
2828
[dependencies] # keep section in sync with pyproject.toml dependencies
2929
python = ">=3.11"
3030
click = "*"
31-
parcels = ">3.1.0"
31+
parcels = {path="./Parcels"}
3232
pyproj = ">=3,<4"
3333
sortedcontainers = "==2.4.0"
3434
opensimplex = "==0.4.5"

0 commit comments

Comments
 (0)