forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add release helper scripts and update release instructions
- Loading branch information
Showing
3 changed files
with
64 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Prep a fresh conda environment in a temporary folder for a release | ||
if [[ $# -ne 1 ]]; then | ||
echo "Specify branch" | ||
exit 1 | ||
fi | ||
branch=$1 | ||
env=jlabrelease_$branch | ||
|
||
WORK_DIR=`mktemp -d` | ||
cd $WORK_DIR | ||
conda deactivate | ||
conda remove --all -y -n jlabrelease_$branch | ||
|
||
conda create -c conda-forge -y -n $env notebook nodejs twine | ||
conda activate $env | ||
|
||
git clone https://github.com/jupyterlab/jupyterlab.git | ||
cd jupyterlab | ||
|
||
git checkout $branch | ||
|
||
pip install -ve . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Test a release wheel in a fresh conda environment with and without installed | ||
# extensions | ||
set -e | ||
env=${CONDA_DEFAULT_ENV}_test | ||
|
||
conda deactivate | ||
conda remove --all -y -n $env | ||
|
||
conda create -c conda-forge -y -n $env notebook nodejs twine | ||
conda activate $env | ||
|
||
pip install dist/*.whl | ||
|
||
WORK_DIR=`mktemp -d` | ||
cp examples/notebooks/*.ipynb $WORK_DIR | ||
cd $WORK_DIR | ||
|
||
python -m jupyterlab.browser_check | ||
|
||
jupyter labextension install @jupyterlab/fasta-extension --no-build | ||
jupyter labextension install @jupyterlab/geojson-extension --no-build | ||
jupyter labextension install @jupyterlab/plotly-extension --no-build | ||
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build | ||
jupyter labextension install bqplot --no-build | ||
jupyter labextension install jupyter-leaflet --no-build | ||
jupyter lab clean | ||
jupyter lab build | ||
|
||
conda install -c conda-forge -y ipywidgets | ||
python -m jupyterlab.browser_check | ||
|
||
jupyter lab |