Skip to content

Commit

Permalink
fix python
Browse files Browse the repository at this point in the history
Maybe it now works on CI as well?
  • Loading branch information
Byron committed Mar 5, 2024
1 parent d2f85bb commit 8a12e9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)/*)
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ ghp-import
pyright
types-PyYAML
inflect
urllib3
2 changes: 1 addition & 1 deletion src/generator/templates/index.html.mako
Original file line number Diff line number Diff line change
Expand Up @@ -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
%>\
Expand Down

0 comments on commit 8a12e9d

Please sign in to comment.