Skip to content

Commit

Permalink
Drop Python 3.8 support (home-assistant#63883)
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Jan 11, 2022
1 parent f922132 commit cb66685
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
BUILD_TYPE: core
DEFAULT_PYTHON: 3.8
DEFAULT_PYTHON: 3.9

jobs:
init:
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
env:
CACHE_VERSION: 5
PIP_CACHE_VERSION: 1
DEFAULT_PYTHON: 3.8
DEFAULT_PYTHON: 3.9
PRE_COMMIT_CACHE: ~/.cache/pre-commit
PIP_CACHE: /tmp/pip-cache
SQLALCHEMY_WARN_20: 1
Expand Down Expand Up @@ -467,7 +467,7 @@ jobs:
needs: prepare-tests
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]
container: homeassistant/ci-azure:${{ matrix.python-version }}
steps:
- name: Check out code from GitHub
Expand Down Expand Up @@ -524,7 +524,7 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
python-version: [3.8, 3.9]
python-version: [3.9]
outputs:
python-key: ${{ steps.generate-python-key.outputs.key }}
container: homeassistant/ci-azure:${{ matrix.python-version }}
Expand Down Expand Up @@ -593,7 +593,7 @@ jobs:
- prepare-tests
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]
container: homeassistant/ci-azure:${{ matrix.python-version }}
steps:
- name: Check out code from GitHub
Expand Down Expand Up @@ -633,7 +633,7 @@ jobs:
- prepare-tests
strategy:
matrix:
python-version: [3.8]
python-version: [3.9]
container: homeassistant/ci-azure:${{ matrix.python-version }}
steps:
- name: Check out code from GitHub
Expand Down Expand Up @@ -681,7 +681,7 @@ jobs:
fail-fast: false
matrix:
group: ${{ fromJson(needs.changes.outputs.test_groups) }}
python-version: [3.8, 3.9]
python-version: [3.9]
name: >-
Run tests Python ${{ matrix.python-version }} (${{ matrix.group }})
container: homeassistant/ci-azure:${{ matrix.python-version }}
Expand Down Expand Up @@ -732,7 +732,7 @@ jobs:
-p no:sugar \
tests
- name: Run pytest (partially)
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8'
if: needs.changes.outputs.test_full_suite == 'false'
timeout-minutes: 10
shell: bash
run: |
Expand All @@ -757,7 +757,7 @@ jobs:
-p no:sugar \
tests/components/${{ matrix.group }}
- name: Run pytest (partially); no coverage
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version == '3.8'
if: needs.changes.outputs.test_full_suite == 'false'
timeout-minutes: 10
run: |
. venv/bin/activate
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/translations.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:
- "**strings.json"

env:
DEFAULT_PYTHON: 3.8
DEFAULT_PYTHON: 3.9

jobs:
upload:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/sentry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
),
}

sentry_sdk.init(
sentry_sdk.init( # pylint: disable=abstract-class-instantiated
dsn=entry.data[CONF_DSN],
environment=entry.options.get(CONF_ENVIRONMENT),
integrations=[sentry_logging, AioHttpIntegration(), SqlalchemyIntegration()],
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
PATCH_VERSION: Final = "0.dev0"
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 8, 0)
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
# Truthy date string triggers showing related deprecation warning messages.
REQUIRED_NEXT_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = "2022.1"
REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = ""

# Format for platform files
PLATFORM_FORMAT: Final = "{platform}.{domain}"
Expand Down
2 changes: 1 addition & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# To update, run python3 -m script.hassfest

[mypy]
python_version = 3.8
python_version = 3.9
show_error_codes = true
follow_imports = silent
ignore_missing_imports = true
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ classifier =
Intended Audience :: Developers
License :: OSI Approved :: Apache Software License
Operating System :: OS Independent
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Topic :: Home Automation

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py38, py39, lint, pylint, typing, cov
envlist = py39, lint, pylint, typing, cov
skip_missing_interpreters = True
ignore_basepython_conflict = True

Expand Down

0 comments on commit cb66685

Please sign in to comment.