Mercurial > repos > fubar > toolfactory
comparison rgToolFactory.py @ 14:43ab59672f78 draft
Uploaded
author | fubar |
---|---|
date | Thu, 20 Mar 2014 06:04:42 -0400 |
parents | d5a5f9c2c108 |
children | 824d21b5c773 |
comparison
equal
deleted
inserted
replaced
13:d5a5f9c2c108 | 14:43ab59672f78 |
---|---|
89 verbose = False | 89 verbose = False |
90 debug = False | 90 debug = False |
91 toolFactoryURL = 'https://bitbucket.org/fubar/galaxytoolfactory' | 91 toolFactoryURL = 'https://bitbucket.org/fubar/galaxytoolfactory' |
92 | 92 |
93 # if we do html we need these dependencies | 93 # if we do html we need these dependencies |
94 toolhtmldep = """<?xml version="1.0"?> | 94 toolhtmldepskel = """<?xml version="1.0"?> |
95 <tool_dependency> | 95 <tool_dependency> |
96 <package name="ghostscript" version="9.10"> | 96 <package name="ghostscript" version="9.10"> |
97 <repository name="package_ghostscript_9_10" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu/" /> | 97 <repository name="package_ghostscript_9_10" owner="devteam" prior_installation_required="True" toolshed="http://toolshed.g2.bx.psu.edu/" /> |
98 </package> | 98 </package> |
99 <package name="graphicsmagick" version="1.3.18"> | 99 <package name="graphicsmagick" version="1.3.18"> |
346 if self.opts.make_HTML: | 346 if self.opts.make_HTML: |
347 if self.opts.help_text: | 347 if self.opts.help_text: |
348 hlp = open(self.opts.help_text,'r').read() | 348 hlp = open(self.opts.help_text,'r').read() |
349 else: | 349 else: |
350 hlp = 'Please ask the tool author for help as none was supplied at tool generation\n' | 350 hlp = 'Please ask the tool author for help as none was supplied at tool generation\n' |
351 tooldeps = toolhtmldep % hlp | 351 tooldepcontent = toolhtmldepskel % hlp |
352 depf = open(os.path.join(tdir,'tool_dependencies.xml'),'w') | 352 depf = open(os.path.join(tdir,'tool_dependencies.xml'),'w') |
353 depf.write(hlp) | 353 depf.write(tooldepcontent) |
354 depf.write('\n') | 354 depf.write('\n') |
355 depf.close() | 355 depf.close() |
356 if self.opts.input_tab <> 'None': # no reproducible test otherwise? TODO: maybe.. | 356 if self.opts.input_tab <> 'None': # no reproducible test otherwise? TODO: maybe.. |
357 testdir = os.path.join(tdir,'test-data') | 357 testdir = os.path.join(tdir,'test-data') |
358 os.mkdir(testdir) # make tests directory | 358 os.mkdir(testdir) # make tests directory |