Skip to content

Commit 7ecc0ca

Browse files
committed
Merge branch 'face-posargs-provides'
2 parents 9d3c82d + 44ee7fe commit 7ecc0ca

File tree

2 files changed

+19
-9
lines changed

2 files changed

+19
-9
lines changed

pacetrack/cli.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ def prune(posargs_, dry_run):
8282
cur_ptc.prune_by_frequency(dry_run=dry_run)
8383

8484

85-
def update(posargs_, args_, jsub=False, force=False):
85+
def update(campaign_ids, args_, jsub=False, force=False):
8686
"Update one or more campaigns by name"
87-
return update_all(campaign_ids=posargs_, force=force, jsub=jsub, args_=args_)
87+
return update_all(campaign_ids, force=force, jsub=jsub, args_=args_)
8888

8989

9090
def list_campaigns():
@@ -113,7 +113,7 @@ def main(argv=None):
113113
cmd = Command(name='pacetrack', func=None)
114114

115115
# subcommands
116-
update_subcmd = Command(update, posargs={'min_count': 1, 'display': 'campaign_id'})
116+
update_subcmd = Command(update, posargs={'min_count': 1, 'display': 'campaign_id', 'provides': 'campaign_ids'})
117117
# update_subcmd.add('campaign_name')
118118
cmd.add(update_subcmd)
119119
cmd.add(update_all)
@@ -132,7 +132,12 @@ def main(argv=None):
132132
# middlewares
133133
cmd.add(mw_cli_log)
134134

135-
cmd.run()
135+
try:
136+
cmd.run()
137+
except Exception:
138+
if os.getenv('PACETRACK_ENABLE_DEBUG'):
139+
import pdb;pdb.post_mortem()
140+
raise
136141

137142

138143
@face_middleware

requirements.txt

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
11
ashes==17.0.0
22
attrs==18.2.0
3-
boltons>=19.1.0
4-
certifi>=2018.11.29
3+
boltons==19.3.0
4+
certifi==2019.9.11
5+
cffi==1.12.2
56
chardet==3.0.4
6-
face>=19.0.0
7-
gevent>=1.2.2 # newer won't work on labs
7+
contextlib2==0.5.5
8+
-e git+git@github.com:mahmoud/face.git@d8384bc1b1734a8b5d7473344bb3e79c1661ad1e#egg=face
9+
gevent==1.2.2
10+
glom==19.10.0
811
greenlet==0.4.15
9-
glom>=19.1.0
1012
hyperlink==18.0.0
1113
idna==2.7
1214
lithoxyl==0.4.3
15+
pycparser==2.19
16+
PyNaCl==1.3.0
1317
requests==2.20.1
1418
ruamel.ordereddict==0.4.13
1519
ruamel.yaml==0.15.80
20+
schema==0.7.0
1621
six==1.12.0
1722
tqdm==4.28.1
1823
urllib3==1.24.2

0 commit comments

Comments
 (0)