Skip to content

Commit

Permalink
Merge fb55f77 into 1520854
Browse files Browse the repository at this point in the history
  • Loading branch information
toanant committed Oct 10, 2019
2 parents 1520854 + fb55f77 commit c7288b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pipreqs/pipreqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ def init(args):
imports = local + get_imports_info(difference,
proxy=proxy,
pypi_server=pypi_server)
# sort imports based on lowercase name of package, similar to `pip freeze`.
imports = sorted(imports, key=lambda x: x['name'].lower())

path = (args["--savepath"] if args["--savepath"] else
os.path.join(input_path, "requirements.txt"))
Expand Down

0 comments on commit c7288b4

Please sign in to comment.