mirror of
https://github.com/theupdateframework/python-tuf
synced 2026-05-24 10:08:28 +00:00
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>
This commit is contained in:
parent
81637596ec
commit
bf878ceaa6
1 changed files with 7 additions and 1 deletions
|
|
@ -16,7 +16,13 @@ import sys
|
|||
from filecmp import dircmp
|
||||
from tempfile import TemporaryDirectory
|
||||
|
||||
import requests
|
||||
try:
|
||||
import requests
|
||||
import build
|
||||
except ImportError:
|
||||
print ("Error: verify_release requires modules 'requests' and 'build':")
|
||||
print (" pip install requests build")
|
||||
exit(1)
|
||||
|
||||
# Project variables
|
||||
# Note that only these project artifacts are supported:
|
||||
|
|
|
|||
Loading…
Reference in a new issue