Skip to content
Snippets Groups Projects
Commit 8b6e7e67 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[scripts][ci] Better message for twine check

parent d147899a
No related branches found
No related tags found
No related merge requests found
...@@ -507,10 +507,9 @@ if __name__ == '__main__': ...@@ -507,10 +507,9 @@ if __name__ == '__main__':
failed = check(package) failed = check(package)
if failed: if failed:
raise RuntimeError('long_description of package %s cannot be ' \ raise RuntimeError('twine check (a.k.a. readme check) %s: FAILED' % \
'correctly parsed (twine check returned a failure)' % \ package[0])
(package[0],))
else: else:
logger.info('Package %s\'s long_description: OK', package[0]) logger.info('twine check (a.k.a. readme check) %s: OK', package[0])
git_clean_build(bootstrap.run_cmdline, verbose=(args.verbose >= 2)) git_clean_build(bootstrap.run_cmdline, verbose=(args.verbose >= 2))
...@@ -174,12 +174,9 @@ def readme(package): ...@@ -174,12 +174,9 @@ def readme(package):
failed = check([k]) failed = check([k])
if failed: if failed:
raise RuntimeError('long_description of package %s cannot be ' \ raise RuntimeError('twine check (a.k.a. readme check) %s: FAILED' % k)
'correctly parsed (twine check returned a failure)' % \
(k,))
else: else:
logger.info('Package %s\'s long_description: OK', k) logger.info('twine check (a.k.a. readme check) %s: OK', k)
@ci.command(epilog=''' @ci.command(epilog='''
Examples: Examples:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment