From 8b6e7e6766394a70a8c4836a9825b722a11410a2 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 21 Jan 2019 18:10:55 +0100
Subject: [PATCH] [scripts][ci] Better message for twine check

---
 bob/devtools/build.py      | 7 +++----
 bob/devtools/scripts/ci.py | 7 ++-----
 2 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/bob/devtools/build.py b/bob/devtools/build.py
index 16bfa761..262d944a 100644
--- a/bob/devtools/build.py
+++ b/bob/devtools/build.py
@@ -507,10 +507,9 @@ if __name__ == '__main__':
     failed = check(package)
 
     if failed:
-      raise RuntimeError('long_description of package %s cannot be ' \
-          'correctly parsed (twine check returned a failure)' % \
-          (package[0],))
+      raise RuntimeError('twine check (a.k.a. readme check) %s: FAILED' % \
+          package[0])
     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))
diff --git a/bob/devtools/scripts/ci.py b/bob/devtools/scripts/ci.py
index a3226367..b08b601a 100644
--- a/bob/devtools/scripts/ci.py
+++ b/bob/devtools/scripts/ci.py
@@ -174,12 +174,9 @@ def readme(package):
       failed = check([k])
 
       if failed:
-        raise RuntimeError('long_description of package %s cannot be ' \
-            'correctly parsed (twine check returned a failure)' % \
-            (k,))
+        raise RuntimeError('twine check (a.k.a. readme check) %s: FAILED' % k)
       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='''
 Examples:
-- 
GitLab