mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 19:45:22 +00:00
parent
c8ab8cb3d8
commit
3f8e71003c
@ -163,7 +163,8 @@ def generate_requirements_file(path, imports, symbol):
|
||||
fmt = '{name}' + symbol + '{version}'
|
||||
out_file.write('\n'.join(
|
||||
fmt.format(**item) if item['version'] else '{name}'.format(**item)
|
||||
for item in imports) + '\n')
|
||||
for item in sorted(imports, key=lambda x: x['name'].lower()))
|
||||
+ '\n')
|
||||
|
||||
|
||||
def output_requirements(imports, symbol):
|
||||
|
Loading…
x
Reference in New Issue
Block a user