Verified Commit 827da337 authored by Štěpán Henek's avatar Štěpán Henek 🌩

setup.py: small distutils cmd update

parent 7b563b1a
......@@ -108,9 +108,10 @@ class NetmetrPluginPage(ConfigPageMixin, NetmetrPluginConfigHandler):
data = current_state.backend.perform("netmetr", "get_data")
sync_code = current_state.backend.perform("netmetr", "get_settings")["sync_code"]
return bottle.template(
"netmetr/_results",
"netmetr/_results.html.j2",
results=self._prepare_results(data["performed_tests"]),
sync_code=sync_code,
template_adapter=bottle.Jinja2Template,
)
raise ValueError("Unknown AJAX action.")
......
......@@ -11,7 +11,7 @@ class BuildCmd(build_py):
# build foris plugin files
from foris_plugins_distutils import build
cmd = build(copy.copy(self.distribution))
cmd.finalize_options()
cmd.ensure_finalized()
cmd.run()
# build package
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment