Downgrade setuptools to fix CI (#50734)
This commit is contained in:
parent
05c6f3ca1d
commit
6b38adaa3d
2 changed files with 5 additions and 6 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
@ -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
|
||||
|
@ -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 .
|
||||
|
|
|
@ -24,7 +24,7 @@ import weakref
|
|||
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 (
|
||||
|
@ -581,9 +581,8 @@ class Template:
|
|||
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
|
||||
|
|
Loading…
Add table
Reference in a new issue