from .xlate import XLATOR
-__version__ = '0.5.1'
+__version__ = '0.5.2'
LOG = logging.getLogger(__name__)
self._project_page = None
self._issues_url = None
self.operatingsystem_support = []
+ self.tags = []
super(ModuleMetadata, self).__init__(
appname=appname, verbose=verbose, version=version,
for item in json_data['operatingsystem_support']:
supp = ModuleOsSupport.from_data(item)
metadata.operatingsystem_support.append(supp)
+ if 'tags' in json_data:
+ for tag in json_data['tags']:
+ tg = str(tag).strip()
+ if tg:
+ metadata.tags.append(tg)
metadata.initialized = True
if verbose > 3:
new.issues_url = self.issues_url
for supp in self.operatingsystem_support:
new.operatingsystem_support.append(copy.copy(supp))
+ for tag in self.tags:
+ new.tags.append(tag)
new.initialized = True
data['operatingsystem_support'] = []
for supp in self.operatingsystem_support:
data['operatingsystem_support'].append(supp.to_data())
+ if self.tags:
+ data['tags'] = []
+ for tag in self.tags:
+ data['tags'].append(tag)
if self.verbose > 4:
LOG.debug("ModuleMetadata:\n{}".format(pp(data)))