Skip to content

Commit 9d93210

Browse files
committed
deploy visualpython 2.5.0
1 parent c5d08e9 commit 9d93210

File tree

11 files changed

+21
-19
lines changed

11 files changed

+21
-19
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Set version and replace it
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
grep -REil "VP_ORG_VER=.+$" colab/build.colab.sh jupyterlab/build.jupyterlab.sh jupyternotebook/build.jupyternotebook.sh | xargs sed -i "s/VP_ORG_VER=.\+$/VP_ORG_VER=${VP_ORG_VER}/g"

colab/build.colab.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Replace Version
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
# update manifest version with new numbering for new version

colab/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "Visual Python for Colab",
33
"description": "GUI-based Python code generator for Google Colab as an extension",
4-
"version": "2.4.9",
4+
"version": "2.5.0",
55
"manifest_version": 3,
66
"icons": {
77
"48": "icon.png",

jupyterlab/build.jupyterlab.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Replace Version and Basic Files
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
grep -REil "\"version\": \"${VP_ORG_VER}\"" package.json | xargs sed -i "s/\"version\": \"${VP_ORG_VER//\./\\.}\"/\"version\": \"${VP_NEW_VER}\"/g"

jupyterlab/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

jupyterlab/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jupyterlab-visualpython",
3-
"version": "2.4.9",
3+
"version": "2.5.0",
44
"description": "GUI-based Python code generator for Jupyter Lab as an extension",
55
"keywords": [
66
"jupyter",

jupyterlab/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232
"Programming Language :: Python :: 3.9",
3333
"Programming Language :: Python :: 3.10",
3434
]
35-
version = "2.4.9"
35+
version = "2.5.0"
3636

3737
[project.license]
3838
file = "LICENSE"
@@ -92,7 +92,7 @@ file = [
9292
]
9393

9494
[tool.tbump.version]
95-
current = "2.4.9"
95+
current = "2.5.0"
9696
regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"
9797

9898
[tool.tbump.git]

jupyternotebook/build.jupyternotebook.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
#=============================================================================
1212
# Replace Version and Basic Files
1313
#=============================================================================
14-
VP_ORG_VER=2.4.8
15-
VP_NEW_VER=2.4.9
14+
VP_ORG_VER=2.4.9
15+
VP_NEW_VER=2.5.0
1616

1717
# update version info
1818
grep -REil ${VP_ORG_VER//\./\\.} setup.py visualpython/js/com/com_Config.js visualpython/js/com/com_Const.js | xargs sed -i --follow-symlinks "s/${VP_ORG_VER//\./\\.}/${VP_NEW_VER}/g"

jupyternotebook/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setup(
1212
name = name,
13-
version = '2.4.9',
13+
version = '2.5.0',
1414
packages = find_packages(),
1515
package_data = {"": ["*"], 'visualpython' : ['visualpython.yaml', 'README.md']},
1616
scripts = ['visualpython/bin/visualpy', 'visualpython/bin/visualpy.bat'],

visualpython/js/com/com_Config.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -914,14 +914,16 @@ define([
914914
if (nowVersion !== latestVersion) {
915915
let nowVerParts = nowVersion.split('.').map(x => ~~x);
916916
let latVerParts = latestVersion.split('.').map(x => ~~x);
917-
if (packageName === 'visualpython') {
917+
if (packageName === 'visualpython' || latVerParts[0] < 3) {
918918
// show updater only for notebook extension (for v2.5.0)
919919
for (var i = 0; i < nowVerParts.length; i++) {
920920
const a = nowVerParts[i];
921921
const b = latVerParts[i];
922922
if (a < b) {
923923
showUpdater = true;
924924
break;
925+
} else if (a > b) {
926+
break;
925927
}
926928
}
927929
}
@@ -933,7 +935,7 @@ define([
933935
if (background === true) {
934936
;
935937
} else {
936-
let msg = com_util.formatString('Visual Python is up to date. ({0})', latestVersion);
938+
let msg = com_util.formatString('Visual Python is up to date. ({0})', nowVersion);
937939
com_util.renderInfoModal(msg);
938940
}
939941
// update version_timestamp
@@ -1074,7 +1076,7 @@ define([
10741076
/**
10751077
* Version
10761078
*/
1077-
Config.version = "2.4.9";
1079+
Config.version = "2.5.0";
10781080

10791081
/**
10801082
* Type of mode

visualpython/js/com/com_Const.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define ([
1919
class Constants { }
2020

2121
Constants.TOOLBAR_BTN_INFO = {
22-
HELP: "Visual Python 2.4.9"
22+
HELP: "Visual Python 2.5.0"
2323
, ICON: "vp-main-icon"
2424
, ID: "vpBtnToggle"
2525
, NAME: "toggle-vp"

0 commit comments

Comments
 (0)