Skip to content

shed_create did not use owner in .shed.yml and gave error message #246

@peterjc

Description

@peterjc
$ cat package_blast_plus_2_2_31/.shed.yml
name: package_blast_plus_2_2_31
owner: iuc
homepage_url: https://github.com/peterjc/galaxy_blast/packages/package_blast_plus_2_2_31
remote_repository_url: https://github.com/peterjc/galaxy_blast/packages/package_blast_plus_2_2_31
description: NCBI BLAST+ 2.2.31 (binaries only) 
long_description: |
  This Tool Shed package is intended to be used as a dependency of the Galaxy wrappers
  for NCBI BLAST+ and any other tools which call the BLAST+ binaries internally.

  Development is hosted on GitHub https://github.com/peterjc/galaxy_blast/ which can
  be used for reporting any issues.
categories:
- Tool Dependency Packages
type: tool_dependency_definition

Notice that this said the owner should be iuc

$ planemo shed_create --shed_target testtoolshed package_blast_plus_2_2_31
Repository created
cd '/Users/peterjc/repositories/galaxy_blast/packages/package_blast_plus_2_2_31' && git rev-parse HEAD
cd '/Users/peterjc/repositories/galaxy_blast/packages/package_blast_plus_2_2_31' && git diff --quiet
Traceback (most recent call last):
  File "/usr/local/bin/planemo", line 9, in <module>
    load_entry_point('planemo==0.13.1', 'console_scripts', 'planemo')()
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 991, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/Library/Python/2.7/site-packages/click-4.0-py2.7.egg/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/Library/Python/2.7/site-packages/planemo-0.13.1-py2.7.egg/planemo/commands/cmd_shed_create.py", line 39, in cli
    exit_code = shed.for_each_repository(ctx, create, paths, **kwds)
  File "/Library/Python/2.7/site-packages/planemo-0.13.1-py2.7.egg/planemo/shed/__init__.py", line 594, in for_each_repository
    function(realized_repository)
  File "/Library/Python/2.7/site-packages/planemo-0.13.1-py2.7.egg/planemo/commands/cmd_shed_create.py", line 30, in create
    ctx, realized_repository, **kwds
  File "/Library/Python/2.7/site-packages/planemo-0.13.1-py2.7.egg/planemo/shed/__init__.py", line 198, in upload_repository
    if repo_id is None and kwds["force_repository_creation"]:
KeyError: 'force_repository_creation'

This actually created a repository with peterjc as the owner: https://testtoolshed.g2.bx.psu.edu/view/peterjc/package_blast_plus_2_2_31

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions