Skip to content

Commit bdf73b4

Browse files
committed
simplify conda environment management
1 parent 4ba186f commit bdf73b4

20 files changed

+12665
-28176
lines changed

.binder/environment.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.binder/environment.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: default
2+
channels:
3+
- conda-forge
4+
- nodefaults
5+
dependencies:
6+
- jupyter-book >=1.0.3,<2
7+
- pre-commit >=4.1.0,<5
8+
- dask-labextension >=7.0.0,<8
9+
- jupyterlab >=4.3.5,<5
10+
- jupyter_bokeh >=4.0.5,<5
11+
- jupyterlab-myst >=2.4.2,<3
12+
- jupyter-resource-usage >=1.1.1,<2
13+
- cartopy >=0.24.0,<0.25
14+
- cf_xarray >=0.10.0,<0.11
15+
- dask >=2025.2.0,<2026
16+
- datashader >=0.17.0,<0.18
17+
- distributed >=2025.2.0,<2026
18+
- gcsfs >=2025.2.0,<2026
19+
- geoviews-core >=1.14.0,<2
20+
- gsw >=3.6.19,<4
21+
- hvplot >=0.11.2,<0.12
22+
- h5netcdf >=1.5.0,<2
23+
- ipykernel >=6.29.5,<7
24+
- matplotlib-base >=3.10.0,<4
25+
- netcdf4 >=1.7.2,<2
26+
- numpy >=2.1.3,<3
27+
- pint-xarray >=0.4,<0.5
28+
- pydap >=3.5.3,<4
29+
- python-graphviz >=0.20.3,<0.21
30+
- pooch >=1.8.2,<2
31+
- rioxarray >=0.18.2,<0.19
32+
- scipy >=1.15.2,<2
33+
- sphinx-codeautolink >=0.17.0,<0.18
34+
- sphinxcontrib-mermaid >=1.0.0,<2
35+
- sphinx-notfound-page >=1.0.4,<2
36+
- sphinxext-rediraffe >=0.2.7,<0.3
37+
- s3fs >=2025.2.0,<2026
38+
- xarray >=2025.1.2,<2026
39+
- zarr >=3.0.3,<4
40+
- flox >=0.10.0,<0.11
41+
- numbagg >=0.9.0,<0.10
42+
- python >=3.10

.devcontainer/Dockerfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"build": {
3-
"dockerfile": "./Dockerfile",
4-
"context": "../conda"
5-
},
2+
"image": "quay.io/pangeo/pangeo-notebook:latest",
63
"postCreateCommand": {
74
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"
85
},

.devcontainer/scipy2023/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"build": {
3-
"dockerfile": "../Dockerfile",
4-
"context": "../../conda"
5-
},
2+
"image": "quay.io/pangeo/pangeo-notebook:2023.07.05",
63
"postCreateCommand": {
74
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py",
85
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2023/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"

.devcontainer/scipy2024/devcontainer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
{
2-
"build": {
3-
"dockerfile": "../Dockerfile",
4-
"context": "../../conda"
5-
},
2+
"image": "quay.io/pangeo/pangeo-notebook:2024.07.08",
63
"postCreateCommand": {
74
"jupyterlab": "mkdir /home/jovyan/.jupyter && cp ${containerWorkspaceFolder}/.devcontainer/scipy2024/jupyter_lab_config.py /home/jovyan/.jupyter/jupyter_lab_config.py",
85
"vscode": "mkdir ${containerWorkspaceFolder}/.vscode && cp ${containerWorkspaceFolder}/.devcontainer/scipy2024/tasks.json ${containerWorkspaceFolder}/.vscode/tasks.json"

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
# Regularly update Docker tags and Actions steps
22
version: 2
33
updates:
4-
- package-ecosystem: "docker"
5-
directory: "/.devcontainer"
6-
schedule:
7-
interval: "daily"
84
- package-ecosystem: "github-actions"
95
directory: "/.github"
106
schedule:

.github/workflows/main.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@ jobs:
3232
# NOTE: change key to "jupyterbook-DATE" to force rebuilding cache
3333
key: jupyterbook-20240517
3434

35-
- name: Install Conda environment with Micromamba
36-
uses: mamba-org/setup-micromamba@v1
35+
- uses: prefix-dev/[email protected]
3736
with:
38-
environment-file: conda/conda-lock.yml
39-
environment-name: xarray-tutorial
40-
cache-environment: true
37+
manifest-path: pyproject.toml
38+
cache: true
39+
activate-environment: true
4140

4241
- name: Build JupyterBook
43-
# NOTE: login shell activates conda environment
44-
shell: bash -el {0}
4542
run: |
4643
jupyter-book build ./ --warningiserror --keep-going
4744

.github/workflows/pull_request.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ concurrency:
1313
jobs:
1414
preview:
1515
runs-on: ubuntu-latest
16-
defaults:
17-
run:
18-
shell: bash -el {0}
1916
steps:
2017
- name: Checkout repository
2118
if: github.event.action != 'closed'
@@ -29,13 +26,11 @@ jobs:
2926
# NOTE: change key to "jupyterbook-DATE" to force rebuilding cache
3027
key: jupyterbook-20240517
3128

32-
- name: Install Conda environment with Micromamba
33-
if: github.event.action != 'closed'
34-
uses: mamba-org/setup-micromamba@v1
29+
- uses: prefix-dev/[email protected]
3530
with:
36-
environment-file: conda/conda-lock.yml
37-
environment-name: xarray-tutorial
38-
cache-environment: true
31+
manifest-path: pyproject.toml
32+
cache: true
33+
activate-environment: true
3934

4035
- name: Build JupyterBook
4136
if: github.event.action != 'closed'

.github/workflows/qaqc.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,15 @@ concurrency:
1414
jobs:
1515
quality-control:
1616
runs-on: ubuntu-latest
17-
defaults:
18-
run:
19-
shell: bash -el {0}
2017

2118
steps:
2219
- uses: actions/checkout@v4
2320

24-
- name: Install Conda environment with Micromamba
25-
uses: mamba-org/setup-micromamba@v1
21+
- uses: prefix-dev/[email protected]
2622
with:
27-
environment-file: conda/conda-lock.yml
28-
environment-name: xarray-tutorial
29-
cache-environment: true
23+
manifest-path: pyproject.toml
24+
cache: true
25+
activate-environment: true
3026

3127
# NOTE: this isn't a comprehensive spellcheck, just common typos
3228
- name: Spellcheck

0 commit comments

Comments
 (0)