dockersetup: require python 3.4.3 or later

Prior to this version, HTTPSConnection was not properly secure (as
reported by Bandit).

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
This commit is contained in:
Paul Eggleton 2019-05-01 09:46:21 +12:00
parent 7bd189b8e2
commit 3c844beab2

View File

@ -18,6 +18,12 @@
# It will build and run these containers and set up the database. # It will build and run these containers and set up the database.
import sys import sys
min_version = (3, 4, 3)
if sys.version_info < min_version:
sys.stderr.write('Sorry, python version %d.%d.%d or later is required\n' % min_version)
sys.exit(1)
import os import os
import argparse import argparse
import re import re