diff --git a/Makefile b/Makefile index 8be822b11f..879a6ce82d 100644 --- a/Makefile +++ b/Makefile @@ -68,7 +68,7 @@ $(VENV_BIN): touch $@ $(PYTHON_BIN): $(VENV_BIN) requirements.txt - python3 -m venv -p python3 $(VENV_DIR) + python3 -m venv $(VENV_DIR) $@ -m pip install -r requirements.txt $(MAKO_RENDER): $(PYTHON_BIN) $(wildcard $(GEN_LIB_SRC)/*) diff --git a/requirements.txt b/requirements.txt index 2e6823cf24..398d5b94e4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -7,3 +7,4 @@ ghp-import pyright types-PyYAML inflect +urllib3 diff --git a/src/generator/templates/index.html.mako b/src/generator/templates/index.html.mako index cc978ac3da..df6931b369 100644 --- a/src/generator/templates/index.html.mako +++ b/src/generator/templates/index.html.mako @@ -15,7 +15,7 @@ # type cache: {'api': type-api.yaml-contents } tc = dict() for api_type in make.types: - data = yaml.load_all(open(os.path.join(directories.api_base, 'type-%s.yaml' % api_type))) + data = yaml.load_all(open(os.path.join(directories.api_base, 'type-%s.yaml' % api_type)), Loader = yaml.Loader) tc[api_type] = merge_required_fields(type(directories)(next(data))) # end for each type to load cache for %>\