Skip to content

Commit

Permalink
* 1.2.11: added --extra_tags to cb publish
Browse files Browse the repository at this point in the history
  • Loading branch information
gfursin committed Sep 3, 2020
1 parent 306d6ba commit 01b7620
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* 1.2.11
added --extra_tags to cb publish

* 1.2.10
considerably accelerated bootstrapping

Expand Down
2 changes: 1 addition & 1 deletion cbench/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Developer(s): Grigori Fursin, https://fursin.net
#

__version__ = "1.2.10"
__version__ = "1.2.11"
5 changes: 4 additions & 1 deletion cbench/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,11 @@ def login(username,
@click.option('--copyright', 'copyright', required=False)
@click.option('--license', 'license', required=False)
@click.option('--source', 'source', required=False)
@click.option('-et', '--extra_tags', 'extra_tags', required=False, default='')

def publish(cid,
tags,
extra_tags,
username,
api_key,
force,
Expand Down Expand Up @@ -132,7 +134,8 @@ def publish(cid,
'author_id':author_id,
'copyright':copyright,
'license':license,
'source':source})
'source':source,
'extra_tags':extra_tags})

if r['return']>0: process_error(r)
return 0
Expand Down
11 changes: 10 additions & 1 deletion cbench/obj.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,9 @@ def publish(i):
source=i.get('source','')
if source==None: source=''

sextra_tags=i.get('extra_tags','')
if sextra_tags==None: sextra_tags=''

quiet=i.get('quiet',False)
force=i.get('force',False)

Expand Down Expand Up @@ -167,7 +170,7 @@ def publish(i):
# Specialize per specific modules
not_digital_component=False
extra_dict={}
extra_tags={}
extra_tags=[]

if module_uoa=='module':
extra_dict['last_module_actions']=[]
Expand Down Expand Up @@ -352,6 +355,12 @@ def publish(i):

repo_info['dict']=repo_dict

# Add extra tags
for et in sextra_tags.split(','):
et=et.strip().lower()
if et!='':
extra_tags.append(et)

#TBD: owner, version, info about repo
# Sending request
r=comm.send({'config':cfg,
Expand Down

0 comments on commit 01b7620

Please sign in to comment.