-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathbuild.jupyterlab.sh
More file actions
executable file
·44 lines (37 loc) · 1.76 KB
/
Copy pathbuild.jupyterlab.sh
File metadata and controls
executable file
·44 lines (37 loc) · 1.76 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#
# Project Name : Visual Python
# Description : GUI-based Python code generator
# File Name : build.jupyterlab.sh
# Author : Black Logic - Minju
# Note : Build Visual Python for Jupyter Lab
# License : GPLv3 (GNU General Public License v3.0)
# Date : 2023. 02. 08
# Change Date :
#
#=============================================================================
# Replace Version and Basic Files
#=============================================================================
VP_ORG_VER=3.0.1
VP_NEW_VER=3.0.2
# update version info
grep -REil "\"version\": \"${VP_ORG_VER}\"" package.json | xargs sed -i "s/\"version\": \"${VP_ORG_VER//\./\\.}\"/\"version\": \"${VP_NEW_VER}\"/g"
grep -REil "version = \"${VP_ORG_VER}\"" pyproject.toml | xargs sed -i "s/version = \"${VP_ORG_VER//\./\\.}\"/version = \"${VP_NEW_VER}\"/g"
grep -REil "current = \"${VP_ORG_VER}\"" pyproject.toml | xargs sed -i "s/current = \"${VP_ORG_VER//\./\\.}\"/current = \"${VP_NEW_VER}\"/g"
# grep -REil ${VP_ORG_VER//\./\\.} ../visualpython/* | xargs sed -i "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"
# update LICENSE, README.md files
cp ../LICENSE LICENSE
cp ../README.md README.md
#=============================================================================
# Build output for Jupyter Lab
#=============================================================================
# Run dev-build script to build static files to ./visualpython/labextension
# chmod 755 dev-build.jupyterlab.sh
./dev-build.jupyterlab.sh
# make dist directory if not exist
mkdir -p ../dist/jupyterlab
# on conda environment, install build package
pip install build
# build file for pypi jupyterlab-visualpython
python -m build --outdir ../dist/jupyterlab
exit 0
# End of file