mirror of
https://github.com/bndr/pipreqs.git
synced 2025-07-21 01:10:01 +00:00
Fix typos
This commit is contained in:
parent
843f6b66f8
commit
fb87e41b63
@ -47,9 +47,9 @@ Example
|
|||||||
|
|
||||||
$ pipreqs /home/project/location
|
$ pipreqs /home/project/location
|
||||||
Looking for imports
|
Looking for imports
|
||||||
Getting latest version of packages information from PyPi
|
Getting latest information about packages from PyPI
|
||||||
Found third-party imports: flask, requests, sqlalchemy, docopt
|
Found third-party imports: flask, requests, sqlalchemy, docopt
|
||||||
Successfuly saved requirements file in: /home/project/location/requirements.txt
|
Successfully saved requirements file in /home/project/location/requirements.txt
|
||||||
|
|
||||||
Why not pip freeze?
|
Why not pip freeze?
|
||||||
-------------------
|
-------------------
|
||||||
|
@ -86,12 +86,12 @@ def get_imports_info(imports):
|
|||||||
def init(args):
|
def init(args):
|
||||||
print("Looking for imports")
|
print("Looking for imports")
|
||||||
imports = get_all_imports(args['<path>'])
|
imports = get_all_imports(args['<path>'])
|
||||||
print("Getting latest version of packages information from PyPi")
|
print("Getting latest information about packages from PyPI")
|
||||||
imports_with_info = get_imports_info(imports)
|
imports_with_info = get_imports_info(imports)
|
||||||
print("Found third-party imports: " + ", ".join(imports))
|
print("Found third-party imports: " + ", ".join(imports))
|
||||||
path = args["--savepath"] if args["--savepath"] else os.path.join(args['<path>'], "requirements.txt")
|
path = args["--savepath"] if args["--savepath"] else os.path.join(args['<path>'], "requirements.txt")
|
||||||
generate_requirements_file(path, imports_with_info)
|
generate_requirements_file(path, imports_with_info)
|
||||||
print("Successfuly saved requirements file in: " + path)
|
print("Successfully saved requirements file in " + path)
|
||||||
|
|
||||||
|
|
||||||
def main(): # pragma: no cover
|
def main(): # pragma: no cover
|
||||||
|
Loading…
x
Reference in New Issue
Block a user