-
Notifications
You must be signed in to change notification settings - Fork 37
/
conda_upload.sh
24 lines (21 loc) · 863 Bytes
/
conda_upload.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
PKG_NAME=pcmdi_metrics
USER=PCMDI
OS=linux-64
mkdir ~/conda-bld
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
echo ls temp/conda-recipes:
ls
python ./prep_for_build.py -v $VERSION
conda build pcmdi_metrics
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
conda build pcmdi_metrics
anaconda -t $CONDA_UPLOAD_TOKEN upload -u $USER -l nightly $CONDA_BLD_PATH/$OS/$PKG_NAME-nox-$VERSION-py27_0.tar.bz2 --force