mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 03:25:21 +00:00
Return tuple consisting of modules,parameters instead of a concatenated list
This commit is contained in:
parent
cdb82c6d9b
commit
d463b92810
@ -251,7 +251,8 @@ def parse_requirements(file_):
|
|||||||
|
|
||||||
break
|
break
|
||||||
|
|
||||||
return modules + parameters
|
return (modules, parameters)
|
||||||
|
|
||||||
|
|
||||||
def init(args):
|
def init(args):
|
||||||
encoding = args.get('--encoding')
|
encoding = args.get('--encoding')
|
||||||
@ -294,6 +295,7 @@ def init(args):
|
|||||||
logging.warning("Requirements.txt already exists, "
|
logging.warning("Requirements.txt already exists, "
|
||||||
"use --force to overwrite it")
|
"use --force to overwrite it")
|
||||||
return
|
return
|
||||||
|
|
||||||
if args["--print"]:
|
if args["--print"]:
|
||||||
output_requirements(imports)
|
output_requirements(imports)
|
||||||
logging.info("Successfully output requirements")
|
logging.info("Successfully output requirements")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user