Exemplo n.º 1
0
 def requires(self):
     return [
         Executable(name='metha-sync',
                    message='https://github.com/miku/metha'),
         Executable(name='span-import',
                    message='https://github.com/miku/span'),
     ]
Exemplo n.º 2
0
 def requires(self):
     """
     If we have more DOI sources, we could add them as requirements here.
     """
     return {
         'input':
         CrossrefDOIList(date=datetime.date.today()),
         'hurrly':
         Executable(name='hurrly', message='http://github.com/miku/hurrly'),
         'pigz':
         Executable(name='pigz', message='http://zlib.net/pigz/')
     }
Exemplo n.º 3
0
 def requires(self):
     return {
         'input': CrossrefIntermediateSchema(begin=self.begin,
                                             date=self.date),
         'jq': Executable(name='jq',
                          message='https://github.com/stedolan/jq')
     }
Exemplo n.º 4
0
 def requires(self):
     return {
         'span-import':
         Executable(name='span-import', message='http://git.io/vI8NV'),
         'input':
         DOAJHarvest(date=self.date),
     }
Exemplo n.º 5
0
 def requires(self):
     return [(Executable(name='bin/grobid2json.py'),
              Executable(name='jq')),
             ItemGrobidTarballs(crawl=self.crawl, item=self.item)]
Exemplo n.º 6
0
 def requires(self):
     return [(Executable(name='bin/grobid2json.py'),
              Executable(name='jq')),
             ItemGrobidServiceExtract(crawl=self.crawl, item=self.item)]
Exemplo n.º 7
0
 def requires(self):
     return [(Executable(name='java'),
              Executable(name='/usr/bin/time')),
             ItemPdfs(crawl=self.crawl, item=self.item)]
Exemplo n.º 8
0
 def requires(self):
     return [Executable(name='bin/warc_extract_filter.py'),
             ItemWarcDownload(crawl=self.crawl, item=self.item)]
Exemplo n.º 9
0
Arquivo: khm.py Projeto: zazi/siskin
 def requires(self):
     return Executable('rsync', message='https://rsync.samba.org/')
Exemplo n.º 10
0
 def requires(self):
     return {
         'input': ElsevierJournalsIntermediateSchema(date=self.date),
         'jq': Executable(name='jq',
                          message='https://github.com/stedolan/jq')
     }
Exemplo n.º 11
0
 def requires(self):
     return {
         'input': DOAJIntermediateSchema(date=self.date),
         'jq': Executable(name='jq', message='http://git.io/NYpfTw'),
     }
Exemplo n.º 12
0
 def requires(self):
     return {'dump': GutenbergDump(date=self.date),
             'apps': Executable(name='marctotsv',
                                message='https://github.com/miku/gomarckit')}
Exemplo n.º 13
0
 def requires(self):
     return [Executable(name='wget'), Executable(name='bunzip2')]
Exemplo n.º 14
0
 def requires(self):
     """
     The setup of siskin should install this automatically.
     """
     return Executable(name='ia',
                       message='https://pypi.org/project/internetarchive/')
Exemplo n.º 15
0
 def requires(self):
     return [Executable(name='ia')]
Exemplo n.º 16
0
 def requires(self):
     return {
         'span': Executable(name='span-import',
                            message='http://git.io/vI8NV'),
         'file': CrossrefUniqItems(begin=self.begin, date=self.date)
     }
Exemplo n.º 17
0
 def requires(self):
     """ Outsource the download. """
     return Executable(name='wget')
Exemplo n.º 18
0
 def requires(self):
     return Executable(name='metha-sync',
                       message='https://github.com/miku/metha')
Exemplo n.º 19
0
    def test_executable(self):
        task = Executable(name='ls')
        self.assertTrue(task.complete())

        task = Executable(name='veryunlikely123')
        self.assertFalse(task.complete())
Exemplo n.º 20
0
Arquivo: kxp.py Projeto: zazi/siskin
 def requires(self):
     return Executable(name='srufetch',
                       message='https://github.com/miku/srufetch')
Exemplo n.º 21
0
    def test_executable(self):
        task = Executable(name='ls')
        self.assertTrue(task.complete())

        task = Executable(name='veryunlikely123')
        self.assertFalse(task.complete())