Skip to content

Commit

Permalink
prepforbuild.py breaks '@', will revisit.
Browse files Browse the repository at this point in the history
  • Loading branch information
zshaheen committed Apr 13, 2017
1 parent 75bdb19 commit 40ee828
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 16 deletions.
24 changes: 11 additions & 13 deletions conda-recipes/pcmdi_metrics/conda_upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@ conda config --set anaconda_upload no
export CONDA_BLD_PATH=~/conda-bld
export VERSION=`date +%Y.%m.%d`

#mkdir temp
mkdir -p temp/conda-recipes
git clone git:https://github.com/UV-CDAT/conda-recipes temp/conda-recipes
mkdir temp/conda-recipes/pcmdi_metrics
cp conda-recipes/pcmdi_metrics/build.sh conda-recipes/pcmdi_metrics/meta.yaml.in temp/conda-recipes/pcmdi_metrics
cd temp/conda-recipes

python ./prep_for_build.py -v $VERSION
cp pcmdi_metrics/meta.yaml.in pcmdi_metrics/meta.yaml
conda build pcmdi_metrics
rm pcmdi_metrics/meta.yaml
mkdir ~/conda-bld
conda config --set anaconda_upload no
export CONDA_BLD_PATH=~/conda-bld
export VERSION=`date +%Y.%m.%d`
conda build .
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l nightly $CONDA_BLD_PATH/$OS/$PKG_NAME-$VERSION-0.tar.bz2 --force

python ./prep_for_build.py -v $VERSION -f nox
cp pcmdi_metrics/meta.yaml.in pcmdi_metrics/meta.yaml
conda build pcmdi_metrics
mv meta.yaml meta-no-nox.yaml
mv meta-nox.yaml meta.yaml
conda build .
mv meta.yaml meta-nox.yaml
mv meta-no-nox.yaml meta.yaml
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l nightly $CONDA_BLD_PATH/$OS/$PKG_NAME-nox-$VERSION-0.tar.bz2 --force

35 changes: 35 additions & 0 deletions conda-recipes/pcmdi_metrics/meta-nox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
package:
name: pcmdi_metrics
version: {{ environ['VERSION'] }}

source:
git_url: git:https://github.com/PCMDI/pcmdi_metrics

build:
script: python setup.py install
script_env:
- VERSION
- CONDA_BLD_PATH

requirements:
build:
- python
- setuptools
- numpy
run:
- vcs-nox >=2.6
- vtk-cdat-nox >=7.1.0.2017.3
- vcsaddons-nox
- cdms2 >2.6
- genutil
- cdutil
- unidata
- cdp
- matplotlib
- numpy


about:
home: https://gitub.com/PCMDI/pcmdi_metrics
summary: The PCMDI metrics package is used to objectively compare results from climate models with observations using well-established statistical tests. Results are produced in the context of all model simulations contributed to CMIP5 and earlier CMIP phases. Among other purposes, this enables modeling groups to evaluate changes during the development cycle in the context of the structural error distribution of the multi-model ensemble. Currently, the comparisons are focused on large- to global-scale annual cycle performance metrics.

Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
package:
name: pcmdi_metrics
version: @VERSION@
version: {{ environ['VERSION'] }}

source:
git_rev: @UVCDAT_BRANCH@
git_url: git:https://github.com/PCMDI/pcmdi_metrics

build:
number: 0
script: python setup.py install
script_env:
- VERSION
- CONDA_BLD_PATH

requirements:
build:
Expand All @@ -30,3 +31,4 @@ requirements:
about:
home: https://gitub.com/PCMDI/pcmdi_metrics
summary: The PCMDI metrics package is used to objectively compare results from climate models with observations using well-established statistical tests. Results are produced in the context of all model simulations contributed to CMIP5 and earlier CMIP phases. Among other purposes, this enables modeling groups to evaluate changes during the development cycle in the context of the structural error distribution of the multi-model ensemble. Currently, the comparisons are focused on large- to global-scale annual cycle performance metrics.

0 comments on commit 40ee828

Please sign in to comment.