Skip to content

Commit

Permalink
new support for publish with remote URL
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jan 2, 2018
1 parent d839f29 commit fe1f595
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/repos/package.py
Expand Up @@ -57,14 +57,15 @@ def publish_package(
self,
name,
version,
contents,
contents = None,
url = None,
identifier = None,
info = None,
type = None,
content_type = None
):
url = self.base_url + "packages"
contents = contents if isinstance(contents, tuple) else\
contents = contents if isinstance(contents, tuple) or contents == None else\
appier.FileTuple.from_data(contents)
info = json.dumps(info)
contents = self.post(
Expand All @@ -73,6 +74,7 @@ def publish_package(
name = name,
version = version,
contents = contents,
url = url,
identifier = identifier,
info = info,
type = type,
Expand Down

0 comments on commit fe1f595

Please sign in to comment.