release_prep.sh 602 B

12345678910111213141516171819202122232425
  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. branch=$1
  6. env=jlabrelease_$branch
  7. WORK_DIR='/tmp/$env'
  8. rm -rf $WORK_DIR
  9. mkdir -p $WORK_DIR
  10. cd $WORK_DIR
  11. conda deactivate
  12. conda remove --all -y -n jlabrelease_$branch
  13. conda create --override-channels --strict-channel-priority -c conda-forge -c anaconda -y -n $env notebook nodejs twine
  14. conda activate $env
  15. git clone https://github.com/jupyterlab/jupyterlab.git
  16. cd jupyterlab
  17. git checkout $branch
  18. pip install -ve .
  19. fi