| 1 | #!bash |
| 2 | # -*- coding: utf-8 -*- |
| 3 | |
| 4 | set -e |
| 5 | |
| 6 | echo "Set up conda package manager" |
| 7 | wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh --quiet |
| 8 | bash miniconda.sh -b -p $HOME/miniconda |
| 9 | export PATH="$HOME/miniconda/bin:$PATH" |
| 10 | hash -r |
| 11 | conda config --set always_yes yes --set changeps1 no --set anaconda_upload no |
| 12 | conda update -q conda |
| 13 | |
| 14 | echo "Install packages needed for package build and upload" |
| 15 | conda install -q python=3.6 conda-build anaconda-client ripgrep conda-verify |
| 16 | |
| 17 | echo "compile package from setup.py" |
| 18 | python setup.py sdist |
| 19 | |
| 20 | echo "Build noarch package..." |
| 21 | conda build meta.yaml --python 3.6 --numpy 1.1 --output-folder conda_build -c bioconda -c conda-forge --no-include-recipe |
| 22 | |
| 23 | echo "Deploying to Anaconda.org..." |
| 24 | anaconda -v -t $1 upload conda_build/**/*.tar.bz2 |
| 25 | |
| 26 | echo "Successfully deployed to Anaconda.org." |
| 27 | exit 0 |