File tree 4 files changed +7
-20
lines changed
4 files changed +7
-20
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 34
34
from .control .platforms import PlatformsController
35
35
from .rest .exceptions import ApiException
36
36
from .util .editor import NotModifiedException
37
+ import comodit_client .version as version
37
38
38
39
39
40
def run (argv ):
@@ -178,17 +179,7 @@ def _parse(argv):
178
179
config .param_completions = - 1
179
180
180
181
if "--version" in argv :
181
- version = "NO_VERSION"
182
- release = "NO_RELEASE"
183
- try :
184
- import version as version_mod
185
- if version_mod .VERSION :
186
- version = version_mod .VERSION
187
- if version_mod .RELEASE :
188
- release = version_mod .RELEASE
189
- except ImportError :
190
- pass
191
- print ("ComodIT command line client " + version + "-" + release + "." )
182
+ print ("ComodIT command line client " + version .VERSION + "-" + version .RELEASE + "." )
192
183
exit (0 )
193
184
194
185
# Parse arguments
Original file line number Diff line number Diff line change
1
+ VERSION = "1.21"
2
+ RELEASE = "dev"
Original file line number Diff line number Diff line change @@ -21,14 +21,9 @@ def get_template_files():
21
21
files .append ('templates/' + name )
22
22
return files
23
23
24
- VERSION = '0.0'
25
- RELEASE = '0'
26
- try :
27
- from comodit_client import version
28
- VERSION = version .VERSION
29
- RELEASE = version .RELEASE
30
- except ImportError :
31
- pass
24
+ from comodit_client import version
25
+ VERSION = version .VERSION
26
+ RELEASE = version .RELEASE
32
27
33
28
setup (
34
29
name = 'comodit-client' ,
You can’t perform that action at this time.
0 commit comments