comparison toolfactory/rgToolFactory2.py @ 143:4de39d209c5b draft

Uploaded
author fubar
date Sun, 18 Apr 2021 02:00:00 +0000
parents b36f12eb99dc
children 351d479e4a86
comparison
equal deleted inserted replaced
142:b36f12eb99dc 143:4de39d209c5b
1054 cll = [ 1054 cll = [
1055 "planemo", 1055 "planemo",
1056 "test", 1056 "test",
1057 "--galaxy_python_version", 1057 "--galaxy_python_version",
1058 self.args.python_version, 1058 self.args.python_version,
1059 "--conda_auto_init",
1060 "--test_data", 1059 "--test_data",
1061 os.path.abspath(self.testdir), 1060 os.path.abspath(self.testdir),
1062 "--test_output", 1061 "--test_output",
1063 os.path.abspath(tool_test_path), 1062 os.path.abspath(tool_test_path),
1064 "--galaxy_root", 1063 "--galaxy_root",
1073 stderr=tout, 1072 stderr=tout,
1074 stdout=tout, 1073 stdout=tout,
1075 ) 1074 )
1076 tout.close() 1075 tout.close()
1077 return p.returncode 1076 return p.returncode
1078
1079 def set_planemo_galaxy_root(self, galaxyroot='/galaxy-central', config_path=".planemo.yml"):
1080 # bug in planemo - bogus '--dev-wheels' passed to run_tests.sh as at april 2021 - need a fiddled copy so it is ignored until fixed
1081 CONFIG_TEMPLATE = """## Planemo Global Configuration File.
1082 ## Everything in this file is completely optional - these values can all be
1083 ## configured via command line options for the corresponding commands.
1084
1085 ## Specify a default galaxy_root for test and server commands here.
1086 galaxy_root: %s
1087 ## Username used with toolshed(s).
1088 #shed_username: "<TODO>"
1089 sheds:
1090 # For each tool shed you wish to target, uncomment key or both email and
1091 # password.
1092 toolshed:
1093 #key: "<TODO>"
1094 #email: "<TODO>"
1095 #password: "<TODO>"
1096 testtoolshed:
1097 #key: "<TODO>"
1098 #email: "<TODO>"
1099 #password: "<TODO>"
1100 local:
1101 #key: "<TODO>"
1102 #email: "<TODO>"
1103 #password: "<TODO>"
1104 """
1105 if not os.path.exists(config_path):
1106 with open(config_path, "w") as f:
1107 f.write(CONFIG_TEMPLATE % galaxyroot)
1108
1109 1077
1110 def main(): 1078 def main():
1111 """ 1079 """
1112 This is a Galaxy wrapper. 1080 This is a Galaxy wrapper.
1113 It expects to be called by a special purpose tool.xml 1081 It expects to be called by a special purpose tool.xml