Commit cbdbdc12 authored by Romain Casati's avatar Romain Casati
Browse files

Version number is hold by basthon_base.

parent 4d5e41b9
......@@ -8,11 +8,11 @@ import re
this_dir = Path.cwd()
root_dir = this_dir.parent
# get version number from basthon.js
basthonjs = root_dir / "src" / "basthon-js" / "basthon_python.js"
# get version number from basthon_base.js
basthonjs = root_dir / "src" / "basthon-js" / "basthon_base.js"
# trick to get version at wheel build (build is done in /tmp/...)
if not basthonjs.exists():
basthonjs = this_dir / "basthon-kernel" / "data" / "basthon_python.js"
basthonjs = this_dir / "basthon-kernel" / "data" / "basthon_base.js"
# version number from basthon.js using regex
with open(basthonjs) as f:
BASTHON_KERNEL_VERSION = re.search(
......
......@@ -25,6 +25,14 @@
*/
return class {
constructor() {
/**
* Version number (entry point for setup.py and publication to PyPi).
*
* /!\ Warning: edit this line with care since it is parsed by
* setup.py to get version number.
*/
this.__version__ = "0.30.0";
/**
* Path to current script.
*
......@@ -47,7 +55,7 @@
/**
* Kernel version number (string).
*/
version () { throw new NotImplementedError("version"); };
version () { return this.__version__; };
/**
* Language implemented in the kernel (string).
......
......@@ -20,8 +20,6 @@
Jupyter: undefined,
window: undefined,};
};
version () { return "0.0.0" };
language () { return "Javascript"; };
......
......@@ -19,15 +19,7 @@
constructor () {
super();
/**
* Version number (entry point for setup.py and publication to PyPi).
*
* /!\ Warning: edit this line with care since it is parsed by
* setup.py to get version number.
*/
this.__version__ = "0.20.0";
/**
* Where to find pyodide.js (private).
*/
......@@ -38,8 +30,6 @@
* Get the URL of Basthon modules dir.
*/
basthonModulesRoot () { return this.basthonRoot() + "/modules"; };
version () { return this.__version__; };
language () { return "Python"; };
......
......@@ -17,8 +17,6 @@
super();
this.execution_count = 0;
};
version () { return "0.0.0" };
language () { return "SQL"; };
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment