Skip to content

Commit 61596a7

Browse files
authored
Use micromamba 1.5.10 where conda is needed (#9737)
* Use micromamba 1.5.10 together with conda for min-version-policy, since conda.api and libmambapy are not API compatible * use micromamba 1.5.10-0 for benchmark, since micromamba 2 does not work with `asv`, yet * pin mamba to <=1.5.10 in benchmark * revert setting explicit micromamba-version
1 parent a57633c commit 61596a7

File tree

7 files changed

+10
-21
lines changed

7 files changed

+10
-21
lines changed

.github/workflows/benchmarks-last-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Set up conda environment
2525
uses: mamba-org/setup-micromamba@v2
2626
with:
27-
micromamba-version: '2.0.2-2'
27+
micromamba-version: '1.5.10-0'
2828
environment-file: ${{env.CONDA_ENV_FILE}}
2929
environment-name: xarray-tests
3030
cache-environment: true

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Set up conda environment
2828
uses: mamba-org/setup-micromamba@v2
2929
with:
30-
micromamba-version: '2.0.2-2'
30+
micromamba-version: '1.5.10-0'
3131
environment-file: ${{env.CONDA_ENV_FILE}}
3232
environment-name: xarray-tests
3333
cache-environment: true
@@ -36,7 +36,7 @@ jobs:
3636
create-args: >-
3737
asv
3838
python-build
39-
mamba
39+
mamba<=1.5.10
4040
4141
4242
- name: Run benchmarks

.github/workflows/ci-additional.yaml

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

1515
env:
1616
FORCE_COLOR: 3
17-
MICROMAMBA_VERSION: "2.0.2-2"
1817

1918
jobs:
2019
detect-ci-trigger:
@@ -58,7 +57,6 @@ jobs:
5857
- name: Setup micromamba
5958
uses: mamba-org/setup-micromamba@v2
6059
with:
61-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
6260
environment-file: ${{env.CONDA_ENV_FILE}}
6361
environment-name: xarray-tests
6462
create-args: >-
@@ -104,7 +102,6 @@ jobs:
104102
- name: Setup micromamba
105103
uses: mamba-org/setup-micromamba@v2
106104
with:
107-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
108105
environment-file: ${{env.CONDA_ENV_FILE}}
109106
environment-name: xarray-tests
110107
create-args: >-
@@ -156,7 +153,6 @@ jobs:
156153
- name: Setup micromamba
157154
uses: mamba-org/setup-micromamba@v2
158155
with:
159-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
160156
environment-file: ${{env.CONDA_ENV_FILE}}
161157
environment-name: xarray-tests
162158
create-args: >-
@@ -213,7 +209,6 @@ jobs:
213209
- name: Setup micromamba
214210
uses: mamba-org/setup-micromamba@v2
215211
with:
216-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
217212
environment-file: ${{env.CONDA_ENV_FILE}}
218213
environment-name: xarray-tests
219214
create-args: >-
@@ -270,7 +265,6 @@ jobs:
270265
- name: Setup micromamba
271266
uses: mamba-org/setup-micromamba@v2
272267
with:
273-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
274268
environment-file: ${{env.CONDA_ENV_FILE}}
275269
environment-name: xarray-tests
276270
create-args: >-
@@ -304,8 +298,7 @@ jobs:
304298
name: Minimum Version Policy
305299
runs-on: "ubuntu-latest"
306300
needs: detect-ci-trigger
307-
# disabled until `conda` is compatible with the new `libmambapy`
308-
if: false && needs.detect-ci-trigger.outputs.triggered == 'false'
301+
if: needs.detect-ci-trigger.outputs.triggered == 'false'
309302
defaults:
310303
run:
311304
shell: bash -l {0}
@@ -318,13 +311,15 @@ jobs:
318311
- name: Setup micromamba
319312
uses: mamba-org/setup-micromamba@v2
320313
with:
321-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
314+
# run with micromamba 1.5.10 together with conda
315+
# conda.api is not API compatible with libmambapy
316+
micromamba-version: "1.5.10-0"
322317
environment-name: xarray-tests
323318
create-args: >-
324319
python=3.12
325320
pyyaml
326321
python-dateutil
327-
libmambapy
322+
conda
328323
329324
- name: All-deps minimum versions policy
330325
run: |

.github/workflows/ci.yaml

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

1515
env:
1616
FORCE_COLOR: 3
17-
micromamba_version: 2
1817

1918
jobs:
2019
detect-ci-trigger:
@@ -111,7 +110,6 @@ jobs:
111110
- name: Setup micromamba
112111
uses: mamba-org/setup-micromamba@v2
113112
with:
114-
micromamba-version: '2.0.2-2'
115113
environment-file: ${{ env.CONDA_ENV_FILE }}
116114
environment-name: xarray-tests
117115
cache-environment: true

.github/workflows/hypothesis.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
- name: Setup micromamba
6464
uses: mamba-org/setup-micromamba@v2
6565
with:
66-
micromamba-version: "2.0.2-2"
6766
environment-file: ci/requirements/environment.yml
6867
environment-name: xarray-tests
6968
create-args: >-

.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-
MICROMAMBA_VERSION: "2.0.2-2"
2120

2221
jobs:
2322
detect-ci-trigger:
@@ -64,7 +63,6 @@ jobs:
6463
- name: Set up conda environment
6564
uses: mamba-org/setup-micromamba@v2
6665
with:
67-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
6866
environment-file: ci/requirements/environment.yml
6967
environment-name: xarray-tests
7068
create-args: >-
@@ -121,7 +119,6 @@ jobs:
121119
- name: Set up conda environment
122120
uses: mamba-org/setup-micromamba@v2
123121
with:
124-
micromamba-version: ${{env.MICROMAMBA_VERSION}}
125122
environment-file: ci/requirements/environment.yml
126123
environment-name: xarray-tests
127124
create-args: >-

ci/min_deps_check.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from collections.abc import Iterator
1212
from datetime import datetime
1313

14-
import libmambapy # type: ignore[import]
14+
import conda.api # type: ignore[import]
1515
import yaml
1616
from dateutil.relativedelta import relativedelta
1717

@@ -93,7 +93,7 @@ def metadata(entry):
9393

9494
return (major, minor), time
9595

96-
raw_data = libmambapy.SubdirData.query_all(pkg, channels=CHANNELS)
96+
raw_data = conda.api.SubdirData.query_all(pkg, channels=CHANNELS)
9797
data = sorted(metadata(entry) for entry in raw_data if entry.timestamp != 0)
9898

9999
release_dates = {

0 commit comments

Comments
 (0)