Beispiel #1
0
 def __init__(self, config):
     self.config = config
     mkdir(self.config.tgt_dir)
     self.sphinx_opts = '-j 4'
     if config.build['warning_is_error'].lower() == 'true':
         self.sphinx_opts += ' -W'
     self.done = {}
     self._colab = colab.Colab(config)
     self._sagemaker = sagemaker.Sagemaker(config)
Beispiel #2
0
    def sagemaker(self):
        _sagemaker = sagemaker.Sagemaker(self.config)
        if not _sagemaker.valid():
            return

        def _run():
            repo = _sagemaker.git_repo(self.config.tab)
            bash_fname = os.path.join(os.path.dirname(__file__),
                                      'upload_github.sh')
            run_cmd(['bash', bash_fname, self.config.sagemaker_dir, repo])

        tab = self.config.tab
        self.config.set_tab('all')
        self.config.iter_tab(_run)
        self.config.set_tab(tab)