release_prep.sh 627 B

123456789101112131415161718192021222324
  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}XXXXX)
  9. cd $WORK_DIR
  10. conda create --override-channels --strict-channel-priority -c conda-forge -c nodefaults -y -n $JLAB_REL_ENV jupyter-packaging 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. # Emit a system beep
  17. echo -e "\a"
  18. fi