Reduce number of places version is defined
This commit is contained in:
Родитель
1373daa1ae
Коммит
acb603747a
|
@ -62,7 +62,8 @@ copyright = '2017, ' + author
|
|||
# built documents.
|
||||
#
|
||||
# The short X.Y version.
|
||||
version = '0.8.0.dev0'
|
||||
from pywwt import __version__ as version
|
||||
version = version
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = version
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export const version = require('../package.json').version;
|
|
@ -1,16 +1,18 @@
|
|||
var widgets = require('@jupyter-widgets/base');
|
||||
var _ = require("underscore");
|
||||
|
||||
var version = require('./version').version;
|
||||
|
||||
var WWTModel = widgets.DOMWidgetModel.extend({
|
||||
defaults: _.extend(widgets.DOMWidgetModel.prototype.defaults(), {
|
||||
|
||||
_model_name : 'WWTModel',
|
||||
_model_module : 'pywwt',
|
||||
_model_module_version : '0.8.0',
|
||||
_model_module_version : version,
|
||||
|
||||
_view_name : 'WWTView',
|
||||
_view_module : 'pywwt',
|
||||
_view_module_version : '0.8.0',
|
||||
_view_module_version : version,
|
||||
|
||||
_ra : 0.0,
|
||||
_dec : 0.0,
|
||||
|
|
|
@ -11,11 +11,12 @@ from ipyevents import Event as DOMListener
|
|||
from .core import BaseWWTWidget
|
||||
from .layers import ImageLayer
|
||||
from .jupyter_server import serve_file
|
||||
from . import __version__
|
||||
|
||||
__all__ = ['WWTJupyterWidget']
|
||||
|
||||
VIEW_MODULE_VERSION = '0.8.0' # synchronize these with lib/wwt.js
|
||||
MODEL_MODULE_VERSION = '0.8.0'
|
||||
VIEW_MODULE_VERSION = __version__
|
||||
MODEL_MODULE_VERSION = __version__
|
||||
|
||||
dom_listener = DOMListener()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче