Skip to content

Commit c910a87

Browse files
committed
MAINT: Set requires-pixi in pixi.toml
We don't have to pin the pixi version in the workflow - compatability of Pixi versions can be managed by Pixi itself.
1 parent e355df9 commit c910a87

3 files changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ concurrency:
1414

1515
env:
1616
FORCE_COLOR: 3
17-
PIXI_VERSION: "v0.63.2"
1817

1918
jobs:
2019
detect-ci-trigger:
@@ -43,14 +42,11 @@ jobs:
4342

4443
outputs:
4544
cache-key: ${{ steps.pixi-lock.outputs.cache-key }}
46-
pixi-version: ${{ steps.pixi-lock.outputs.pixi-version }}
4745

4846
steps:
4947
- uses: actions/checkout@v6
5048
- uses: Parcels-code/pixi-lock/create-and-cache@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
5149
id: pixi-lock
52-
with:
53-
pixi-version: ${{env.PIXI_VERSION}}
5450
- uses: actions/upload-artifact@v6
5551
with:
5652
name: pixi-lock

doc/contribute/contributing.rst

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,8 @@ Xarray uses `Pixi <https://pixi.sh/latest/>`_ to manage development environments
198198
Before starting any development, you'll need to create an isolated xarray
199199
development environment:
200200

201-
- `Install Pixi <https://pixi.sh/latest/installation/>`_ - preferably the same version as the one listed in our ``ci.yaml`` `file <https://github.com/pydata/xarray/blob/main/.github/workflows/ci.yaml>`_
202-
203-
- Some features in Pixi are in active development, and xarray depends on these features.
204-
Using the same version results in the best dev experience.
205-
- Instructions for installing specific versions of Pixi can be seen on the Pixi installation page.
201+
- `Install Pixi <https://pixi.sh/latest/installation/>`_
202+
- Xarray uses some Pixi features that are in active development. You might be prompted to upgrade your Pixi version to contribute to Xarray (this is controlled by the ``requires-pixi`` field in ``pixi.toml``)
206203
- Make sure that you have :ref:`cloned the repository <contributing.dev_workflow>`
207204
- ``cd`` to the *xarray* source directory
208205

pixi.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
preview = ["pixi-build"]
33
channels = ["conda-forge", "nodefaults"]
44
platforms = ["win-64", "linux-64", "osx-arm64"]
5+
requires-pixi = ">=0.63.2"
56

67
[package]
78
name = "xarray"

0 commit comments

Comments
 (0)