Skip to content

Commit 1114be3

Browse files
committed
Edit build file
1 parent 72eb867 commit 1114be3

File tree

1 file changed

+27
-5
lines changed

1 file changed

+27
-5
lines changed

jupyternotebook/build.jupyternotebook.sh

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,46 @@
88
# Date : 2023. 02. 08
99
# Change Date :
1010
#
11+
#=============================================================================
12+
# Replace Version and Basic Files
13+
#=============================================================================
1114
VP_ORG_VER=2.2.12
12-
VP_NEW_VER=2.2.13
15+
VP_NEW_VER=2.3.1
1316

1417
# update version info
1518
grep -REil ${VP_ORG_VER//\./\\.} setup.py visualpython/* | xargs sed -i --follow-symlinks "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"
1619

20+
# update LICENSE, README.md files
21+
cp ../LICENSE LICENSE
22+
cp ../README.md README.md
23+
24+
# add _init_.py
1725
find visualpython -depth -type d | grep -v 'git' | awk '{printf "echo \"print('\''Visual Python'\'')\" > %s/__init__.py\n", $1}' | sh
1826

27+
# convert
1928
sed -i -e --follow-symlinks 's/\r$//' visualpython/bin/visualpy
2029

30+
#=============================================================================
31+
# Build output for Jupyter Notebook
32+
#=============================================================================
33+
# build
34+
python setup.py sdist bdist_wheel
35+
2136
# make dir
2237
mkdir -p ../dist/jupyternotebook
2338

24-
# build
25-
python setup.py sdist bdist_wheel # TODO: set output dir
39+
# rm previous dist
40+
rm -rf ../dist/jupyternotebook/*
2641

27-
# upload pypi # FIXME: uploading is only permissioned to maintainer
28-
# python -m twine upload ../dist/jupyternotebook/*
42+
# mv to dist folder
43+
mv ./dist ../dist/jupyternotebook/
44+
mv ./build ../dist/jupyternotebook/
45+
mv ./visualpython.egg-info ../dist/jupyternotebook/
46+
#=============================================================================
47+
# Upload pypi version
48+
#=============================================================================
49+
# upload pypi # uploading is only permissioned to maintainer
50+
# python -m twine upload ../dist/jupyternotebook/dist/*
2951

3052
exit 0
3153
# End of file

0 commit comments

Comments
 (0)