Skip to content

Commit

Permalink
Downgrade setuptools to fix CI (#50734)
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed May 17, 2021
1 parent 05c6f3c commit 6b38ada
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
python -m venv venv
. venv/bin/activate
pip install -U "pip<20.3" setuptools
pip install -U "pip<20.3" "setuptools<56.2"
pip install -r requirements.txt -r requirements_test.txt
- name: Generate partial pre-commit restore key
id: generate-pre-commit-key
Expand Down Expand Up @@ -580,7 +580,7 @@ jobs:
python -m venv venv
. venv/bin/activate
pip install -U "pip<20.3" setuptools wheel
pip install -U "pip<20.3" "setuptools<56.2" wheel
pip install -r requirements_all.txt
pip install -r requirements_test.txt
pip install -e .
Expand Down
7 changes: 3 additions & 4 deletions homeassistant/helpers/template.py
Expand Up @@ -24,7 +24,7 @@
import jinja2
from jinja2 import contextfilter, contextfunction
from jinja2.sandbox import ImmutableSandboxedEnvironment
from jinja2.utils import Namespace # type: ignore
from jinja2.utils import Namespace
import voluptuous as vol

from homeassistant.const import (
Expand Down Expand Up @@ -581,9 +581,8 @@ def _ensure_compiled(
self._strict = strict
env = self._env

self._compiled = cast(
jinja2.Template,
jinja2.Template.from_code(env, self._compiled_code, env.globals, None),
self._compiled = jinja2.Template.from_code(
env, self._compiled_code, env.globals, None
)

return self._compiled
Expand Down

0 comments on commit 6b38ada

Please sign in to comment.