Skip to content

Commit 9dc901f

Browse files
committed
use one environment file per python version
1 parent 31f7f3e commit 9dc901f

File tree

8 files changed

+137
-31
lines changed

8 files changed

+137
-31
lines changed

.github/workflows/build_images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ jobs:
1313
strategy:
1414
matrix:
1515
version:
16-
- {'python': '3.7', 'latest': true}
16+
- {'python': '3.7', 'latest': false}
1717
- {'python': '3.8', 'latest': false}
1818
- {'python': '3.9', 'latest': false}
1919
- {'python': '3.10', 'latest': false}
20+
- {'python': '3.11', 'latest': true}
2021
steps:
2122
- name: 'Checkout repository'
2223
uses: actions/checkout@v4

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,9 @@ RUN apt-get update \
1616
&& apt clean \
1717
&& rm -rf /var/lib/apt/lists/*
1818

19-
COPY environment.yml /tmp/environment.yml
20-
RUN sed -i -E "s/^(\s+- python=).*$/\1${PYTHON_VERSION}/" /tmp/environment.yml
19+
COPY environment-${PYTHON_VERSION}.yml /tmp/environment.yml
2120

22-
RUN conda install python="${PYTHON_VERSION}" setuptools \
23-
&& conda update conda \
24-
&& conda env update -n base --file /tmp/environment.yml \
21+
RUN conda env update -n base --file /tmp/environment.yml \
2522
&& rm /tmp/environment.yml \
2623
&& conda clean -a -y \
2724
&& rm /opt/conda/pkgs/* -rf

environment-3.10.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: environment
3+
channels:
4+
- defaults
5+
- conda-forge
6+
dependencies:
7+
- python=3.10.13
8+
- conda=23.10.0
9+
10+
- cartopy=0.22.0
11+
- coverage=7.2.2
12+
- coveralls=1.7.0
13+
- gdal=3.7.3
14+
- ipython=8.15.0
15+
- matplotlib=3.8.0
16+
- mock=4.0.3
17+
- netcdf4=1.6.5
18+
- nose=1.3.7
19+
- numpy=1.26.0
20+
- pillow=10.1.0
21+
- pip=23.3
22+
- PyYAML=5.4.1
23+
- scipy=1.11.3
24+
- setuptools=68.0.0
25+
- urllib3=2.0.3
26+
- pip:
27+
- pythesint==1.6.6

environment-3.11.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: environment
3+
channels:
4+
- defaults
5+
- conda-forge
6+
dependencies:
7+
- python=3.11.5
8+
- conda=23.10.0
9+
10+
- cartopy=0.22.0
11+
- coverage=7.2.2
12+
- coveralls=1.7.0
13+
- gdal=3.7.3
14+
- ipython=8.15.0
15+
- matplotlib=3.8.0
16+
- mock=4.0.3
17+
- netcdf4=1.6.5
18+
- nose=1.3.7
19+
- numpy=1.26.0
20+
- pillow=10.1.0
21+
- pip=23.3
22+
- PyYAML=5.4.1
23+
- scipy=1.11.3
24+
- setuptools=68.0.0
25+
- urllib3=2.0.3
26+
- pip:
27+
- pythesint==1.6.6

environment-3.7.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: environment
3+
channels:
4+
- defaults
5+
dependencies:
6+
- python=3.7.16
7+
- conda=23.1.0
8+
9+
- cartopy=0.18.0
10+
- coverage=6.3.2
11+
- coveralls=1.7.0
12+
- gdal=3.6.0
13+
- ipython=7.31.1
14+
- libgdal=3.6.0
15+
- matplotlib=3.5.3
16+
- mock=4.0.3
17+
- netcdf4=1.6.2
18+
- nose=1.3.7
19+
- numpy=1.21.5
20+
- pillow=9.4.0
21+
- pip=22.3.1
22+
- scipy=1.7.3
23+
- setuptools=65.6.3
24+
- urllib3=1.26.14
25+
- pip:
26+
- pythesint==1.6.6

environment-3.8.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: environment
3+
channels:
4+
- defaults
5+
dependencies:
6+
- python=3.8.18
7+
- conda=23.9.0
8+
9+
- cartopy=0.18.0
10+
- coverage=5.5
11+
- coveralls=3.2.0
12+
- gdal=3.6.2
13+
- ipython=8.12.2
14+
- matplotlib=3.7.2
15+
- mock=4.0.3
16+
- netcdf4=1.6.2
17+
- nose=1.3.7
18+
- numpy=1.24.3
19+
- pillow=10.0.1
20+
- pip=23.3
21+
- PyYAML=5.4.1
22+
- scipy=1.10.1
23+
- setuptools=68.0.0
24+
- urllib3=1.26.18
25+
- pip:
26+
- pythesint==1.6.6

environment-3.9.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: environment
3+
channels:
4+
- defaults
5+
dependencies:
6+
- python=3.9.18
7+
- conda=23.10.0
8+
9+
- cartopy=0.18.0
10+
- coverage=7.2.2
11+
- coveralls=1.7.0
12+
- gdal=3.6.2
13+
- ipython=8.15.0
14+
- matplotlib=3.8.0
15+
- mock=4.0.3
16+
- netcdf4=1.6.2
17+
- nose=1.3.7
18+
- numpy=1.26.0
19+
- numpy-base=1.26.0
20+
- pillow=10.0.1
21+
- pip=23.3
22+
- PyYAML=5.4.1
23+
- scipy=1.11.3
24+
- setuptools=68.0.0
25+
- urllib3=1.26.18
26+
- pip:
27+
- pythesint==1.6.6

environment.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)