Fix Bento loading error in dev environment caused by versioneer version str
@@ -68,8 +68,11 @@ class BentoArchiveConfig(object):
# If major version is different, then there could be incompatible API
# changes. Raise error in this case.
- if int(conf["version"].split(".")[0]) != int(BENTOML_VERSION.split(".")[0]):
+ if conf["version"].split(".")[0] != BENTOML_VERSION.split(".")[0]:
+ if not BENTOML_VERSION.startswith('0+untagged'):
raise ValueError(msg)
+ else:
+ LOG.warning(msg)
else: # Otherwise just show a warning.
LOG.warning(msg)
