Adding JSONSchema to CI scripts

jsonschema is added to the ci scripts and Dockerfile

Signed-off-by: Archana <archana.madhavan@silabs.com>
Signed-off-by: Asfandyar Orakzai <asfandyar.orakzai@silabs.com>
This commit is contained in:
Archana 2022-01-10 01:55:26 +05:30 committed by Asfandyar Orakzai
parent 314380564c
commit 25876b8abb
2 changed files with 6 additions and 7 deletions

View File

@ -13,4 +13,6 @@ markupsafe < 2.1
Jinja2 >= 2.10.1
# Jinja2 >=2.10, <3.0 needs a separate package for type annotations
types-Jinja2
# jsonschema > 3.2.0 is not compatible with Python 3.5, force 3.2.0
jsonschema >= 3.2.0
types-jsonschema

View File

@ -60,13 +60,10 @@ RUN apt-get update \
pkg-config \
&& rm -rf /var/lib/apt/lists/*
# Jinja2 is required for driver dispatch code generation.
# Jinja2 and jsonschema is required for driver dispatch code generation.
RUN python3 -m pip install \
jinja2==2.10.1 types-jinja2
RUN python3 -m pip install \
jsonschema
jinja2==2.10.1 types-jinja2 \
jsonschema==3.2.0 types-jsonschema
# Build a static, legacy openssl from sources with sslv3 enabled
# Based on https://gist.github.com/bmaupin/8caca3a1e8c3c5686141 (build-openssl.sh)