Skip to content

Commit c8b0f94

Browse files
MAINT: Set requires-pixi in pixi.toml (#11154)
* Bump github codespaces pixi version * 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 48b8fce commit c8b0f94

7 files changed

Lines changed: 4 additions & 19 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mcr.microsoft.com/devcontainers/base:jammy
22

3-
ARG PIXI_VERSION=v0.59.0
3+
ARG PIXI_VERSION=v0.63.2
44

55
RUN curl -L -o /usr/local/bin/pixi -fsSL --compressed "https://github.com/prefix-dev/pixi/releases/download/${PIXI_VERSION}/pixi-$(uname -m)-unknown-linux-musl" \
66
&& chmod +x /usr/local/bin/pixi \

.github/workflows/ci-additional.yaml

Lines changed: 0 additions & 3 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:
@@ -48,8 +47,6 @@ jobs:
4847
- uses: actions/checkout@v6
4948
- uses: Parcels-code/pixi-lock/create-and-cache@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
5049
id: pixi-lock
51-
with:
52-
pixi-version: ${{env.PIXI_VERSION}}
5350
- uses: actions/upload-artifact@v6
5451
with:
5552
name: pixi-lock

.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

.github/workflows/hypothesis.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313

1414
env:
1515
FORCE_COLOR: 3
16-
PIXI_VERSION: "v0.63.2"
1716

1817
jobs:
1918
detect-ci-trigger:
@@ -55,8 +54,6 @@ jobs:
5554
- uses: actions/checkout@v6
5655
- uses: Parcels-code/pixi-lock/create-and-cache@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
5756
id: pixi-lock
58-
with:
59-
pixi-version: ${{env.PIXI_VERSION}}
6057
- uses: actions/upload-artifact@v6
6158
with:
6259
name: pixi-lock

.github/workflows/upstream-dev-ci.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ concurrency:
1717

1818
env:
1919
FORCE_COLOR: 3
20-
PIXI_VERSION: "v0.63.2"
2120

2221
jobs:
2322
detect-ci-trigger:
@@ -62,8 +61,6 @@ jobs:
6261
- uses: actions/checkout@v6
6362
- uses: Parcels-code/pixi-lock/create-and-cache@9a2866f8258b87a3c616d5ad7d51c6cd853df78b
6463
id: pixi-lock
65-
with:
66-
pixi-version: ${{env.PIXI_VERSION}}
6764
- uses: actions/upload-artifact@v6
6865
with:
6966
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", "osx-64"]
5+
requires-pixi = ">=0.63.2"
56

67
[package]
78
name = "xarray"

0 commit comments

Comments
 (0)