Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade setuptools to fix CI #50734

Merged
merged 2 commits into from May 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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