From d260263aa1d18ced2bb72a138cd06764620ddec3 Mon Sep 17 00:00:00 2001 From: guyingzhao <572488191@qq.com> Date: Thu, 1 Aug 2019 09:50:09 +0800 Subject: [PATCH] using project_name instead of name --- testbase/dist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testbase/dist.py b/testbase/dist.py index 8fbc265..aa77518 100644 --- a/testbase/dist.py +++ b/testbase/dist.py @@ -179,7 +179,7 @@ def _merge_requirements(self): if os.path.isfile(req_txt): with codecs_open(req_txt, 'r', encoding="utf-8") as fd: for it in pkg_resources.parse_requirements(fd.read()): - reqs_dict[it.name] = str(it) + reqs_dict[it.project_name] = str(it) elif os.path.isdir(exlib): for filename in os.listdir(exlib):