mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-06 19:45:22 +00:00
verification > verfiy
This commit is contained in:
parent
239a657241
commit
25b4ae6d8b
@ -179,13 +179,13 @@ def output_requirements(imports):
|
||||
|
||||
|
||||
def get_imports_info(
|
||||
imports, pypi_server="https://pypi.python.org/pypi/", proxy=None, verify=True):
|
||||
imports, pypi_server="https://pypi.python.org/pypi/", proxy=None, verification=True):
|
||||
result = []
|
||||
|
||||
for item in imports:
|
||||
try:
|
||||
response = requests.get(
|
||||
"{0}{1}/json".format(pypi_server, item), proxies=proxy, verification=verify)
|
||||
"{0}{1}/json".format(pypi_server, item), proxies=proxy, verify=verification)
|
||||
if response.status_code == 200:
|
||||
if hasattr(response.content, 'decode'):
|
||||
data = json2package(response.content.decode())
|
||||
@ -391,7 +391,7 @@ def clean(file_, imports):
|
||||
|
||||
|
||||
def init(args):
|
||||
verify = args.get('--ignore-cert-errors')
|
||||
verification = args.get('--ignore-cert-errors')
|
||||
encoding = args.get('--encoding')
|
||||
extra_ignore_dirs = args.get('--ignore')
|
||||
follow_links = not args.get('--no-follow-links')
|
||||
@ -428,7 +428,7 @@ def init(args):
|
||||
if x.lower() not in [z['name'].lower() for z in local]]
|
||||
imports = local + get_imports_info(difference,
|
||||
proxy=proxy,
|
||||
pypi_server=pypi_server, verify=verify)
|
||||
pypi_server=pypi_server, verification=verify)
|
||||
|
||||
path = (args["--savepath"] if args["--savepath"] else
|
||||
os.path.join(input_path, "requirements.txt"))
|
||||
|
Loading…
x
Reference in New Issue
Block a user