mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 19:45:22 +00:00
Return sorted list from get_all_imports()
This commit is contained in:
parent
177c156b38
commit
57626670ce
@ -58,7 +58,7 @@ def get_all_imports(start_path):
|
|||||||
logging.debug('Found third-party packages: {0}'.format(third_party_packages))
|
logging.debug('Found third-party packages: {0}'.format(third_party_packages))
|
||||||
with open(os.path.join(os.path.dirname(__file__), "stdlib"), "r") as f:
|
with open(os.path.join(os.path.dirname(__file__), "stdlib"), "r") as f:
|
||||||
data = [x.strip() for x in f.readlines()]
|
data = [x.strip() for x in f.readlines()]
|
||||||
return list(set(third_party_packages) - set(data))
|
return sorted(list(set(third_party_packages) - set(data)))
|
||||||
|
|
||||||
|
|
||||||
def generate_requirements_file(path, imports):
|
def generate_requirements_file(path, imports):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user