From 6e1f32db16057fe573d10d12a7dca2ca690876b4 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Tue, 23 Aug 2022 17:09:07 +0200 Subject: [PATCH] Release 0.2.2 --- ipytree/_version.py | 4 +++- ipytree/tree.py | 10 +++++----- js/package.json | 2 +- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/ipytree/_version.py b/ipytree/_version.py index e241c08..db670a4 100644 --- a/ipytree/_version.py +++ b/ipytree/_version.py @@ -1,2 +1,4 @@ -version_info = (0, 2, 1) +version_info = (0, 2, 2) __version__ = '%s.%s.%s'%(version_info[0], version_info[1], version_info[2]) + +module_version = "^0.2" diff --git a/ipytree/tree.py b/ipytree/tree.py index 2216c26..e2093b7 100644 --- a/ipytree/tree.py +++ b/ipytree/tree.py @@ -4,7 +4,7 @@ Bool, Int, Unicode, Enum, Tuple, Instance ) import uuid -from ._version import __version__ +from ._version import module_version def id_gen(): @@ -18,8 +18,8 @@ class Node(Widget): _model_name = Unicode('NodeModel').tag(sync=True) _view_module = Unicode('ipytree').tag(sync=True) _model_module = Unicode('ipytree').tag(sync=True) - _view_module_version = Unicode(__version__).tag(sync=True) - _model_module_version = Unicode(__version__).tag(sync=True) + _view_module_version = Unicode(module_version).tag(sync=True) + _model_module_version = Unicode(module_version).tag(sync=True) _style_values = [ "warning", "danger", "success", "info", "default" @@ -81,8 +81,8 @@ class Tree(DOMWidget): _model_name = Unicode('TreeModel').tag(sync=True) _view_module = Unicode('ipytree').tag(sync=True) _model_module = Unicode('ipytree').tag(sync=True) - _view_module_version = Unicode(__version__).tag(sync=True) - _model_module_version = Unicode(__version__).tag(sync=True) + _view_module_version = Unicode(module_version).tag(sync=True) + _model_module_version = Unicode(module_version).tag(sync=True) nodes = Tuple().tag(trait=Instance(Node), sync=True, **widget_serialization) multiple_selection = Bool(True, read_only=True).tag(sync=True) diff --git a/js/package.json b/js/package.json index 3f6acfe..caad17c 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "ipytree", - "version": "0.2.1", + "version": "0.2.2", "description": "A Tree Widget using jsTree", "author": "Martin Renou", "license": "MIT",