Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ci/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Adapted from the conda forge recipe
context:
name: parcels
version: ${{ env.get('PARCELS_ALPHA_VERSION') }}
version: ${{ env.get('PARCELS_ALPHA_VERSION', default='0.1.0dev') }}

package:
name: ${{ name|lower }}
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,10 @@ jobs:
pixi-version: ${{ needs.cache-pixi-lock.outputs.pixi-version }}
cache: true
cache-write: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
- run: pixi run get-parcels-alpha-version >> $GITHUB_ENV
- run: echo "PARCELS_ALPHA_VERSION is $PARCELS_ALPHA_VERSION"
- name: Build conda package
uses: prefix-dev/rattler-build-action@v0.2.34
with:
recipe-path: .github/ci/recipe.yaml
- name: Find the alpha version of Parcels
run: pixi run get-parcels-alpha-version >> $GITHUB_ENV
- name: Build Parcels conda package
run: pixi run build-parcels
- if: github.ref == 'refs/heads/main'
run: |
for pkg in $(find output -type f \( -name "*.conda" -o -name "*.tar.bz2" \) ); do
Expand Down
9 changes: 6 additions & 3 deletions pixi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ py-triangle = ">=20250106,<20250107"
[dependencies]
parcels = { path = "." }

[feature.alpha-parcels.dependencies]
[feature.rattler-build.dependencies]
python = "*"
git = "*"
rattler-build = "*"

[feature.alpha-parcels.tasks]
[feature.rattler-build.tasks]
get-parcels-alpha-version = { cmd = "python tools/get-parcels-alpha-version.py" }
build-parcels = { cmd = "rattler-build build --recipe .github/ci/recipe.yaml", description = "Build the Parcels conda package" }

[feature.minimum.dependencies]
python = "3.11.*"
Expand Down Expand Up @@ -133,4 +136,4 @@ test-py313 = { features = ["test", "py313"] }
test-notebooks = { features = ["test", "notebooks"], solve-group = "main" }
docs = { features = ["docs", "notebooks"], solve-group = "docs" }
typing = { features = ["typing"], solve-group = "main" }
alpha-parcels = { features = ["alpha-parcels"] }
build = { features = ["rattler-build"] }
Loading