From 8a12e9d47e2871b5a541d2601302a9da8ade234e Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Tue, 5 Mar 2024 18:41:24 +0100 Subject: [PATCH] fix python Maybe it now works on CI as well? --- Makefile | 2 +- requirements.txt | 1 + src/generator/templates/index.html.mako | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) 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 %>\