File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed
Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change 44# Adapted from the conda forge recipe
55context :
66 name : parcels
7- version : ${{ env.get('PARCELS_ALPHA_VERSION') }}
7+ version : ${{ env.get('PARCELS_ALPHA_VERSION', default='0.1.0dev' ) }}
88
99package :
1010 name : ${{ name|lower }}
Original file line number Diff line number Diff line change @@ -212,12 +212,10 @@ jobs:
212212 pixi-version : ${{ needs.cache-pixi-lock.outputs.pixi-version }}
213213 cache : true
214214 cache-write : ${{ github.event_name == 'push' && github.ref_name == 'main' }}
215- - run : pixi run get-parcels-alpha-version >> $GITHUB_ENV
216- - run : echo "PARCELS_ALPHA_VERSION is $PARCELS_ALPHA_VERSION"
217- - name : Build conda package
218- uses :
prefix-dev/[email protected] 219- with :
220- recipe-path : .github/ci/recipe.yaml
215+ - name : Find the alpha version of Parcels
216+ run : pixi run get-parcels-alpha-version >> $GITHUB_ENV
217+ - name : Build Parcels conda package
218+ run : pixi run build-parcels
221219 - if : github.ref == 'refs/heads/main'
222220 run : |
223221 for pkg in $(find output -type f \( -name "*.conda" -o -name "*.tar.bz2" \) ); do
Original file line number Diff line number Diff line change @@ -35,11 +35,14 @@ py-triangle = ">=20250106,<20250107"
3535[dependencies ]
3636parcels = { path = " ." }
3737
38- [feature .alpha-parcels .dependencies ]
38+ [feature .rattler-build .dependencies ]
39+ python = " *"
3940git = " *"
41+ rattler-build = " *"
4042
41- [feature .alpha-parcels .tasks ]
43+ [feature .rattler-build .tasks ]
4244get-parcels-alpha-version = { cmd = " python tools/get-parcels-alpha-version.py" }
45+ build-parcels = { cmd = " rattler-build build --recipe .github/ci/recipe.yaml" , description = " Build the Parcels conda package" }
4346
4447[feature .minimum .dependencies ]
4548python = " 3.11.*"
@@ -133,4 +136,4 @@ test-py313 = { features = ["test", "py313"] }
133136test-notebooks = { features = [" test" , " notebooks" ], solve-group = " main" }
134137docs = { features = [" docs" , " notebooks" ], solve-group = " docs" }
135138typing = { features = [" typing" ], solve-group = " main" }
136- alpha-parcels = { features = [" alpha-parcels " ] }
139+ build = { features = [" rattler-build " ] }
You can’t perform that action at this time.
0 commit comments