def run(self):
    for t in self.targets:
        if (not osp.exists(t)):
            msg = ('Missing file: %s' % t)
            raise ValueError(msg)
    target = pjoin(here, 'jupyterlab', 'build', 'release_data.json')
    with open(target) as fid:
        data = json.load(fid)
    if (LooseVersion(data['version']) != LooseVersion(version_ns['__version__'])):
        msg = 'Release assets version mismatch, please run npm publish'
        raise ValueError(msg)
    update_package_data(self.distribution)
def run(self):
    for t in self.targets:
        if (not osp.exists(t)):
            msg = ('Missing file: %s' % t)
            raise ValueError(msg)
    target = pjoin(here, 'jupyterlab', 'build', 'release_data.json')
    with open(target) as fid:
        data = json.load(fid)
    if (LooseVersion(data['version']) != LooseVersion(version_ns['__version__'])):
        msg = 'Release assets version mismatch, please run npm publish'
        raise ValueError(msg)
    update_package_data(self.distribution)