release_prep.sh 566 B

123456789101112131415161718192021
  1. # Prep a fresh conda environment in a temporary folder for a release
  2. if [[ $# -ne 1 ]]; then
  3. echo "Specify branch"
  4. else
  5. set -v
  6. JLAB_REL_BRANCH=$1
  7. JLAB_REL_ENV=jlabrelease_$JLAB_REL_BRANCH
  8. WORK_DIR=$(mktemp -d -t $JLAB_REL_ENV)
  9. cd $WORK_DIR
  10. conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n $JLAB_REL_ENV notebook nodejs twine
  11. conda activate $JLAB_REL_ENV
  12. git clone git@github.com:jupyterlab/jupyterlab.git
  13. cd jupyterlab
  14. git checkout $JLAB_REL_BRANCH
  15. pip install -ve .
  16. fi