Skip to content

Commit bf878ce

Browse files
author
Jussi Kukkonen
committed
verify_release: Warn about missing requirements
This is mostly useful for build module as it's not imported otherwise: we explicitly call "python -m build" so everything works like in a real release build. Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
1 parent 8163759 commit bf878ce

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

verify_release

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,13 @@ import sys
1616
from filecmp import dircmp
1717
from tempfile import TemporaryDirectory
1818

19-
import requests
19+
try:
20+
import requests
21+
import build
22+
except ImportError:
23+
print ("Error: verify_release requires modules 'requests' and 'build':")
24+
print (" pip install requests build")
25+
exit(1)
2026

2127
# Project variables
2228
# Note that only these project artifacts are supported:

0 commit comments

Comments
 (0)