Skip to content

Commit

Permalink
Merge branch 'devel-2.5.3' into devel
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusff committed Aug 9, 2021
2 parents 01546b7 + daf6681 commit 9f4c32f
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 101 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ RUN apt-get update && apt-get install -y xorg git

USER $NB_USER
RUN conda install mamba -y -n base -c conda-forge && \
mamba install -y -c santandermetgroup -c conda-forge -c r -c defaults \
climate4r=1.5.0 \
mamba install -y -c conda-forge -c r -c defaults -c santandermetgroup \
r-climate4r=2.5.3 \
xarray pandas matplotlib cartopy netcdf4 cftime dask iris \
jupyter_contrib_nbextensions jupyter_nbextensions_configurator r-irkernel && \
chown -R jovyan:users /home/jovyan && \
Expand Down
21 changes: 10 additions & 11 deletions conda/README.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
# conda recipe for climate4R
# Conda recipe for climate4R metapackage

## Installing climate4R conda metapackage

```bash
conda install -c santandermetgroup -c conda-forge -c r -c defaults r-climate4r
conda install -c conda-forge -c r -c defaults -c santandermetgroup r-climate4r
```

***
_Note for jupyter notebook users_: From a dedicated environment, to run notebooks using climate4R include it as:

```
conda install -c santandermetgroup -c conda-forge -c r -c defaults r-climate4r jupyter r-irkernel
```bash
conda install -c conda-forge -c r -c defaults -c santandermetgroup r-climate4r jupyter r-irkernel
```

in order to include jupyter notebooks in your newly created environment

***

## Build (only for the admin)

Use mambabuild, see below.
## Building climate4R conda metapackage

```bash
conda build -c conda-forge -c r -c defaults .
conda build -c conda-forge -c r -c defaults -c santandermetgroup .
anaconda login
anaconda upload -u SantanderMetGroup TAR_BZ2
anaconda upload -u SantanderMetGroup PATH_TO_TAR_BZ2
```

## ToDo, explore mamba and boa
Expand All @@ -39,5 +38,5 @@ Build:

```bash
rm -rf ${HOME}/miniconda3/conda-bld/src_cache
conda mambabuild -c santandermetgroup -c conda-forge -c r -c defaults . &>log &
conda mambabuild -c conda-forge -c r -c defaults -c santandermetgroup . &>log &
```
5 changes: 0 additions & 5 deletions conda/build.sh

This file was deleted.

28 changes: 0 additions & 28 deletions conda/install.R

This file was deleted.

92 changes: 39 additions & 53 deletions conda/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,58 +1,44 @@
package:
name: climate4r
version: 1.5.2

source:
url: file://{{ RECIPE_DIR }}/install.R

name: r-climate4r
version: 2.5.3
build:
string: r36_1
noarch: generic
requirements:
build:
- iris

- r-base>=3.6
- r-climate4r.udg
- r-loader.java
- r-loader
- r-loader.ecoms
- r-transformer
- r-downscaler
- r-downscaler.keras
- r-visualizer
- r-convertr
- r-geoprocessor
- r-climate4r.climdex
- r-climate4r.indices
- r-loader.2nc
- r-firedanger
- r-value
- r-climate4r.value
- r-mopa
- r-drought4r
- r-climate4r.datasets

build: []
run:
- iris

- r-base>=3.6
- r-climate4r.udg
- r-loader.java
- r-loader
- r-loader.ecoms
- r-transformer
- r-downscaler
- r-downscaler.keras
- r-visualizer
- r-convertr
- r-geoprocessor
- r-climate4r.climdex
- r-climate4r.indices
- r-loader.2nc
- r-firedanger
- r-value
- r-climate4r.value
- r-mopa
- r-drought4r
- r-climate4r.datasets
#r dependencies
- r-base >=3.6.3,<3.7
- r-climate4r.udg ==0.2.3
- r-loader.java ==1.1.1
- r-loader ==1.7.1
- r-loader.ecoms ==1.4.6
- r-transformer ==2.1.3
- r-downscaler ==3.3.3
- r-downscaler.keras ==1.0.0
- r-visualizer ==1.6.1
- r-convertr ==0.2.0
- r-geoprocessor ==0.2.0
- r-climate4r.climdex ==0.2.2
- r-climate4r.indices ==0.2.0
- r-loader.2nc ==0.1.2
- r-firedanger ==1.1.0
- r-value ==2.2.1
- r-climate4r.value ==0.0.2
- r-mopa ==1.0.0
- r-drought4r ==0.2.0
- r-climate4r.datasets ==0.0.1
#python dependencies
- python >=3.7,<3.8
- iris ==3.0.4

about:
home: https://github.com/SantanderMetGroup/climate4R
home: http://www.meteo.unican.es/climate4r
license: GPL-3.0-or-later
summary: Climate4R Framework
license_family: GPL3

extra:
recipe-maintainers:
- conda-forge/r
- cofinoa
4 changes: 2 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ RUN apt-get update && apt-get install -y xorg git && \

USER $NB_USER
RUN conda install mamba -y -n base -c conda-forge && \
mamba install -y -c santandermetgroup -c conda-forge -c r -c defaults \
climate4r=1.5.0 \
mamba install -y -c conda-forge -c r -c defaults -c santandermetgroup \
r-climate4r=2.5.3 \
xarray pandas matplotlib cartopy netcdf4 cftime dask iris \
jupyter_contrib_nbextensions jupyter_nbextensions_configurator r-irkernel && \
chown -R jovyan:users /home/jovyan && \
Expand Down

0 comments on commit 9f4c32f

Please sign in to comment.