comparison libervia/backend/tools/utils.py @ 4079:10b6ad569157

version: use standard Python's `dev0` instead of Libervia specific `D` for dev version
author Goffi <goffi@goffi.org>
date Tue, 06 Jun 2023 12:41:53 +0200
parents 4b842c1fb686
children 0d7bb4df2343
comparison
equal deleted inserted replaced
4078:15055a00162c 4079:10b6ad569157
319 "no local version id in package: {pkg_version}".format( 319 "no local version id in package: {pkg_version}".format(
320 pkg_version=pkg_version 320 pkg_version=pkg_version
321 ) 321 )
322 ) 322 )
323 else: 323 else:
324 version = version.replace(".dev0", "D")
325 if version != C.APP_VERSION: 324 if version != C.APP_VERSION:
326 log.warning( 325 log.warning(
327 "Incompatible version ({version}) and pkg_version ({pkg_version})" 326 "Incompatible version ({version}) and pkg_version ({pkg_version})"
328 .format( 327 .format(
329 version=C.APP_VERSION, pkg_version=pkg_version 328 version=C.APP_VERSION, pkg_version=pkg_version