mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Get rid of TASK_NAME
This commit is contained in:
parent
d38cead031
commit
419ddf4d7c
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue