commit/galaxy-central: greg: White space changes.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/49ca2f03569e/ Changeset: 49ca2f03569e User: greg Date: 2013-04-16 16:38:58 Summary: White space changes. Affected #: 1 file diff -r e54bbcffc6d7b6918b4a65e6855460e235b44b83 -r 49ca2f03569e75de83c87e8a43166732236d3d7a scripts/api/install_repository_tools.py --- a/scripts/api/install_repository_tools.py +++ b/scripts/api/install_repository_tools.py @@ -10,7 +10,7 @@ </section> Here is a working example of how to use this script to install a repository from the test tool shed. -./install_repository_tools.py -- api <api key> --local <galaxy base url> --url http://testtoolshed.g2.bx.psu.edu --name gregs_filter --owner greg --revision f28d5018f9cb --tool-deps +./install_repository_tools.py --api <api key> --local <galaxy base url> --url http://testtoolshed.g2.bx.psu.edu --name gregs_filter --owner greg --revision f28d5018f9cb --tool-deps """ import os @@ -19,11 +19,8 @@ sys.path.insert( 0, os.path.dirname( __file__ ) ) from common import submit - def main( options ): - """ - collect all user data and install the tools via the Galaxy API - """ + """Collect all user data and install the tools via the Galaxy API.""" data = {} data[ 'tool_shed_url' ] = options.tool_shed_url data[ 'name' ] = options.name @@ -32,63 +29,24 @@ if options.tool_panel_section_id: data[ 'tool_panel_section_id' ] = options.tool_panel_section_id elif options.new_tool_panel_section_label: - data['new_tool_panel_section_label'] = options.new_tool_panel_section_label + data[ 'new_tool_panel_section_label' ] = options.new_tool_panel_section_label if options.install_repository_dependencies: data[ 'install_repository_dependencies' ] = options.install_repository_dependencies if options.install_tool_dependencies: data[ 'install_tool_dependencies' ] = options.install_tool_dependencies - - submit( options.api, '%s%s' % (options.local_url, '/api/tool_shed_repositories/new/install_repository_revision'), data ) - + submit( options.api, '%s%s' % ( options.local_url, '/api/tool_shed_repositories/new/install_repository_revision' ), data ) if __name__ == '__main__': - parser = argparse.ArgumentParser(description='Installation of tools via the Galaxy API.') - - parser.add_argument("-u", "--url", dest="tool_shed_url", - required=True, - help="Tool Shed URL") - - parser.add_argument("-a", "--api", dest="api", - required=True, - help="API Key") - - parser.add_argument("-l", "--local", dest="local_url", - required=True, - help="URL of the galaxy instance.") - - parser.add_argument("-n", "--name", - required=True, - help="Repository name.") - - parser.add_argument("-o", "--owner", - required=True, - help="Repository owner.") - - parser.add_argument("-r", "--revision", dest="changeset_revision", - required=True, - help="Repository owner.") - - parser.add_argument("--panel-section-id", dest="tool_panel_section_id", - help="Tool panel section id if you want to add your repo to an existing tool section.") - - parser.add_argument("--panel-section-name", dest="new_tool_panel_section_label", - help="New tool panel section label. If specified a new tool section will be created.") - - parser.add_argument("--repository-deps", dest="install_repository_dependencies", action="store_true", - default=False, - help="Install repository dependencies. [False]") - - parser.add_argument("--tool-deps", dest="install_tool_dependencies", action="store_true", - default=False, - help="Install tool dependencies. [False]") - - + parser = argparse.ArgumentParser( description='Installation of tool shed repositories via the Galaxy API.' ) + parser.add_argument( "-u", "--url", dest="tool_shed_url", required=True, help="Tool Shed URL" ) + parser.add_argument( "-a", "--api", dest="api", required=True, help="API Key" ) + parser.add_argument( "-l", "--local", dest="local_url", required=True, help="URL of the galaxy instance." ) + parser.add_argument( "-n", "--name", required=True, help="Repository name." ) + parser.add_argument( "-o", "--owner", required=True, help="Repository owner." ) + parser.add_argument( "-r", "--revision", dest="changeset_revision", required=True, help="Repository owner." ) + parser.add_argument( "--panel-section-id", dest="tool_panel_section_id", help="Tool panel section id if you want to add your repository to an existing tool section." ) + parser.add_argument( "--panel-section-name", dest="new_tool_panel_section_label", help="New tool panel section label. If specified a new tool section will be created." ) + parser.add_argument( "--repository-deps", dest="install_repository_dependencies", action="store_true", default=False, help="Install repository dependencies. [False]") + parser.add_argument( "--tool-deps", dest="install_tool_dependencies", action="store_true", default=False, help="Install tool dependencies. [False]" ) options = parser.parse_args() main( options ) - - - - - - - Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org