Skip to content

Commit cb66685

Browse files
authored
Drop Python 3.8 support (home-assistant#63883)
1 parent f922132 commit cb66685

File tree

8 files changed

+15
-16
lines changed

8 files changed

+15
-16
lines changed

.github/workflows/builder.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010

1111
env:
1212
BUILD_TYPE: core
13-
DEFAULT_PYTHON: 3.8
13+
DEFAULT_PYTHON: 3.9
1414

1515
jobs:
1616
init:

.github/workflows/ci.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
env:
1313
CACHE_VERSION: 5
1414
PIP_CACHE_VERSION: 1
15-
DEFAULT_PYTHON: 3.8
15+
DEFAULT_PYTHON: 3.9
1616
PRE_COMMIT_CACHE: ~/.cache/pre-commit
1717
PIP_CACHE: /tmp/pip-cache
1818
SQLALCHEMY_WARN_20: 1
@@ -467,7 +467,7 @@ jobs:
467467
needs: prepare-tests
468468
strategy:
469469
matrix:
470-
python-version: [3.8]
470+
python-version: [3.9]
471471
container: homeassistant/ci-azure:${{ matrix.python-version }}
472472
steps:
473473
- name: Check out code from GitHub
@@ -524,7 +524,7 @@ jobs:
524524
timeout-minutes: 30
525525
strategy:
526526
matrix:
527-
python-version: [3.8, 3.9]
527+
python-version: [3.9]
528528
outputs:
529529
python-key: ${{ steps.generate-python-key.outputs.key }}
530530
container: homeassistant/ci-azure:${{ matrix.python-version }}
@@ -593,7 +593,7 @@ jobs:
593593
- prepare-tests
594594
strategy:
595595
matrix:
596-
python-version: [3.8]
596+
python-version: [3.9]
597597
container: homeassistant/ci-azure:${{ matrix.python-version }}
598598
steps:
599599
- name: Check out code from GitHub
@@ -633,7 +633,7 @@ jobs:
633633
- prepare-tests
634634
strategy:
635635
matrix:
636-
python-version: [3.8]
636+
python-version: [3.9]
637637
container: homeassistant/ci-azure:${{ matrix.python-version }}
638638
steps:
639639
- name: Check out code from GitHub
@@ -681,7 +681,7 @@ jobs:
681681
fail-fast: false
682682
matrix:
683683
group: ${{ fromJson(needs.changes.outputs.test_groups) }}
684-
python-version: [3.8, 3.9]
684+
python-version: [3.9]
685685
name: >-
686686
Run tests Python ${{ matrix.python-version }} (${{ matrix.group }})
687687
container: homeassistant/ci-azure:${{ matrix.python-version }}
@@ -732,7 +732,7 @@ jobs:
732732
-p no:sugar \
733733
tests
734734
- name: Run pytest (partially)
735-
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version != '3.8'
735+
if: needs.changes.outputs.test_full_suite == 'false'
736736
timeout-minutes: 10
737737
shell: bash
738738
run: |
@@ -757,7 +757,7 @@ jobs:
757757
-p no:sugar \
758758
tests/components/${{ matrix.group }}
759759
- name: Run pytest (partially); no coverage
760-
if: needs.changes.outputs.test_full_suite == 'false' && matrix.python-version == '3.8'
760+
if: needs.changes.outputs.test_full_suite == 'false'
761761
timeout-minutes: 10
762762
run: |
763763
. venv/bin/activate

.github/workflows/translations.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ on:
1212
- "**strings.json"
1313

1414
env:
15-
DEFAULT_PYTHON: 3.8
15+
DEFAULT_PYTHON: 3.9
1616

1717
jobs:
1818
upload:

homeassistant/components/sentry/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
7878
),
7979
}
8080

81-
sentry_sdk.init(
81+
sentry_sdk.init( # pylint: disable=abstract-class-instantiated
8282
dsn=entry.data[CONF_DSN],
8383
environment=entry.options.get(CONF_ENVIRONMENT),
8484
integrations=[sentry_logging, AioHttpIntegration(), SqlalchemyIntegration()],

homeassistant/const.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
PATCH_VERSION: Final = "0.dev0"
1111
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
1212
__version__: Final = f"{__short_version__}.{PATCH_VERSION}"
13-
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 8, 0)
13+
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
1414
# Truthy date string triggers showing related deprecation warning messages.
1515
REQUIRED_NEXT_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
16-
REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = "2022.1"
16+
REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = ""
1717

1818
# Format for platform files
1919
PLATFORM_FORMAT: Final = "{platform}.{domain}"

mypy.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To update, run python3 -m script.hassfest
44

55
[mypy]
6-
python_version = 3.8
6+
python_version = 3.9
77
show_error_codes = true
88
follow_imports = silent
99
ignore_missing_imports = true

setup.cfg

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ classifier =
1111
Intended Audience :: Developers
1212
License :: OSI Approved :: Apache Software License
1313
Operating System :: OS Independent
14-
Programming Language :: Python :: 3.8
1514
Programming Language :: Python :: 3.9
1615
Topic :: Home Automation
1716

tox.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py38, py39, lint, pylint, typing, cov
2+
envlist = py39, lint, pylint, typing, cov
33
skip_missing_interpreters = True
44
ignore_basepython_conflict = True
55

0 commit comments

Comments
 (0)