#NEWLINE# def check_deps( deps ) : #NEWLINE# #INDENT# 'check dependency licenses' #NEWLINE# from pkg_resources import Requirement #NEWLINE# import requests #NEWLINE# for dep in deps : #NEWLINE# #INDENT# dep = Requirement . parse ( dep ) #NEWLINE# url = 'https://pypi.python.org/pypi/{}/json' . format ( dep . project_name ) #NEWLINE# r = requests . get ( url ) #NEWLINE# data = r . json ( ) #NEWLINE# print ( data [ 'info' ] . get ( 'name' ) , data [ 'info' ] . get ( 'license' ) )