eric7/PipInterface/piplicenses.py

branch
eric7
changeset 9098
fb9351497cea
parent 9003
6bc210cd5726
equal deleted inserted replaced
9097:213951c41dcd 9098:fb9351497cea
67 ) 67 )
68 return [d._dist for d in dists] 68 return [d._dist for d in dists]
69 69
70 70
71 __pkgname__ = 'pip-licenses' 71 __pkgname__ = 'pip-licenses'
72 __version__ = '3.5.3' 72 __version__ = '3.5.4'
73 __author__ = 'raimon' 73 __author__ = 'raimon'
74 __license__ = 'MIT' 74 __license__ = 'MIT'
75 __summary__ = ('Dump the software license list of ' 75 __summary__ = ('Dump the software license list of '
76 'Python packages installed with pip.') 76 'Python packages installed with pip.')
77 __url__ = 'https://github.com/raimon49/pip-licenses' 77 __url__ = 'https://github.com/raimon49/pip-licenses'
145 [patterns.extend(sorted(glob.glob(os.path.join(pkg.location, 145 [patterns.extend(sorted(glob.glob(os.path.join(pkg.location,
146 pkg_dirname, 146 pkg_dirname,
147 f)))) 147 f))))
148 for f in file_names] 148 for f in file_names]
149 for test_file in patterns: 149 for test_file in patterns:
150 if os.path.exists(test_file): 150 if os.path.exists(test_file) and not os.path.isdir(test_file):
151 included_file = test_file 151 included_file = test_file
152 with open(test_file, encoding='utf-8', 152 with open(test_file, encoding='utf-8',
153 errors='backslashreplace') as included_file_handle: 153 errors='backslashreplace') as included_file_handle:
154 included_text = included_file_handle.read() 154 included_text = included_file_handle.read()
155 break 155 break

eric ide

mercurial