1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
#!/bin/bash
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
# Prep a fresh conda environment in a temporary folder for a release
if [[ $# -ne 1 ]]; then
echo "Specify branch"
else
set -v
JLAB_REL_BRANCH=$1
JLAB_REL_ENV=jlabrelease_$JLAB_REL_BRANCH
WORK_DIR=$(mktemp -d -t ${JLAB_REL_ENV}XXXXX)
cd $WORK_DIR
conda create --override-channels --strict-channel-priority -c conda-forge -c nodefaults -y -n $JLAB_REL_ENV jupyter-packaging nodejs twine
conda activate $JLAB_REL_ENV
git clone git@github.com:jupyterlab/jupyterlab.git
cd jupyterlab
git checkout $JLAB_REL_BRANCH
pip install -ve .
# Emit a system beep
echo -e "\a"
fi
|