fix python

Maybe it now works on CI as well?
This commit is contained in:
Sebastian Thiel
2024-03-05 18:41:24 +01:00
parent d2f85bb142
commit 8a12e9d47e
3 changed files with 3 additions and 2 deletions

View File

@@ -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)/*)

View File

@@ -7,3 +7,4 @@ ghp-import
pyright
types-PyYAML
inflect
urllib3

View File

@@ -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
%>\