##// END OF EJS Templates
dev(build): use more reliable setup code to read the current version
super-admin -
r5214:2c6368b2 default
parent child Browse files
Show More
@@ -104,8 +104,12 b' test_requirements = _get_requirements('
104 104
105 105
106 106 def get_version():
107 version = pkgutil.get_data('rhodecode', 'VERSION')
108 return version.decode().strip()
107 here = os.path.abspath(os.path.dirname(__file__))
108 ver_file = os.path.join(here, "rhodecode", "VERSION")
109 with open(ver_file, "rt") as f:
110 version = f.read().strip()
111
112 return version
109 113
110 114
111 115 # additional files that goes into package itself
General Comments 0
You need to be logged in to leave comments. Login now