Strip the trailing newline and then split on newline.
This commit is contained in:
parent
b2c592d84b
commit
b1133de832
|
@ -17,7 +17,7 @@ setup_script = os.path.join(root, 'setup.py')
|
|||
fields = ['--name', '--version', '--url', '--author']
|
||||
dist_info_cmd = [sys.executable, setup_script] + fields
|
||||
output_bytes = subprocess.check_output(dist_info_cmd, cwd=root)
|
||||
project, version, url, author = output_bytes.decode('utf-8').split()
|
||||
project, version, url, author = output_bytes.decode('utf-8').strip().split('\n')
|
||||
|
||||
copyright = '2016 ' + author
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user