File: release_prep.sh

package info (click to toggle)
jupyterlab 4.0.11%2Bds1%2B~cs11.25.27-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 43,496 kB
  • sloc: javascript: 18,395; python: 8,932; sh: 399; makefile: 95; perl: 33; xml: 1
file content (29 lines) | stat: -rwxr-xr-x 742 bytes parent folder | download
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