Get rid of TASK_NAME

This commit is contained in:
Pradyun Gedam 2019-11-10 15:37:14 +05:30
parent d38cead031
commit 419ddf4d7c
No known key found for this signature in database
GPG Key ID: DA17C4B29CB32E4B
1 changed files with 2 additions and 4 deletions

View File

@ -13,8 +13,6 @@ from pathlib import Path
import invoke
import requests
TASK_NAME = 'update'
FILE_WHITE_LIST = (
'Makefile',
'vendor.txt',
@ -49,7 +47,7 @@ def remove_all(paths):
def log(msg):
print('[vendoring.%s] %s' % (TASK_NAME, msg))
print('[vendoring.update] ' + msg)
def _get_vendor_dir(ctx):
@ -299,7 +297,7 @@ def update_stubs(ctx):
f_path.write_text("from %s import *" % selector)
@invoke.task(name=TASK_NAME, post=[update_stubs])
@invoke.task(name="update", post=[update_stubs])
def main(ctx):
vendor_dir = _get_vendor_dir(ctx)
log('Using vendor dir: %s' % vendor_dir)