Kaydet (Commit) 1f2bcd35 authored tarafından Éric Araujo's avatar Éric Araujo

Don’t let invalid line in setup.cfg pass silently

üst c6d52edd
......@@ -227,10 +227,11 @@ class Config:
self.dist.scripts = [self.dist.scripts]
self.dist.package_data = {}
for data in files.get('package_data', []):
data = data.split('=')
for line in files.get('package_data', []):
data = line.split('=')
if len(data) != 2:
continue # FIXME errors should never pass silently
raise ValueError('invalid line for package_data: %s '
'(misses "=")' % line)
key, value = data
self.dist.package_data[key.strip()] = value.strip()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment