1
1
Fork 0
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:
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

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)