Skip to content

Commit 3e5d4ab

Browse files
authored
Simplify python environment setup (#310)
* add pyproject.toml * simplify conda environment management * flake8 fix, remove conda-lock references * rebuild all pages without cache * fix codespell * fix for zarr v3 * use matrix for nocache workflow * fix some broken links
1 parent 869be4a commit 3e5d4ab

34 files changed

+13095
-27593
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"
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# Configuration file for lab.
2-
31
c = get_config() # noqa
4-
5-
## The default URL to redirect to from `/`
6-
# Default: '/lab'
72
c.LabApp.default_url = '/lab/tree/workshops/scipy2023/index.ipynb'
8-
9-
## Set the Access-Control-Allow-Origin header
10-
#
11-
# Use '*' to allow any origin to access your server.
12-
#
13-
# Takes precedence over allow_origin_pat.
14-
# Default: ''
153
c.ServerApp.allow_origin = '*'

.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"
Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
# Configuration file for lab.
2-
31
c = get_config() # noqa
4-
5-
## The default URL to redirect to from `/`
6-
# Default: '/lab'
72
c.LabApp.default_url = '/lab/tree/workshops/scipy2024/index.ipynb'
8-
9-
## Set the Access-Control-Allow-Origin header
10-
#
11-
# Use '*' to allow any origin to access your server.
12-
#
13-
# Takes precedence over allow_origin_pat.
14-
# Default: ''
153
c.ServerApp.allow_origin = '*'

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SCM syntax highlighting & preventing 3-way merges
2+
pixi.lock merge=binary linguist-language=YAML linguist-generated=true

.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:

0 commit comments

Comments
 (0)