Drop Python 3.8 support (#63883)
This commit is contained in:
parent
f92213201c
commit
cb66685174
8 changed files with 15 additions and 16 deletions
2
.github/workflows/builder.yml
vendored
2
.github/workflows/builder.yml
vendored
|
@ -10,7 +10,7 @@ on:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUILD_TYPE: core
|
BUILD_TYPE: core
|
||||||
DEFAULT_PYTHON: 3.8
|
DEFAULT_PYTHON: 3.9
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
init:
|
init:
|
||||||
|
|
16
.github/workflows/ci.yaml
vendored
16
.github/workflows/ci.yaml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
env:
|
env:
|
||||||
CACHE_VERSION: 5
|
CACHE_VERSION: 5
|
||||||
PIP_CACHE_VERSION: 1
|
PIP_CACHE_VERSION: 1
|
||||||
DEFAULT_PYTHON: 3.8
|
DEFAULT_PYTHON: 3.9
|
||||||
PRE_COMMIT_CACHE: ~/.cache/pre-commit
|
PRE_COMMIT_CACHE: ~/.cache/pre-commit
|
||||||
PIP_CACHE: /tmp/pip-cache
|
PIP_CACHE: /tmp/pip-cache
|
||||||
SQLALCHEMY_WARN_20: 1
|
SQLALCHEMY_WARN_20: 1
|
||||||
|
@ -467,7 +467,7 @@ jobs:
|
||||||
needs: prepare-tests
|
needs: prepare-tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8]
|
python-version: [3.9]
|
||||||
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code from GitHub
|
- name: Check out code from GitHub
|
||||||
|
@ -524,7 +524,7 @@ jobs:
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8, 3.9]
|
python-version: [3.9]
|
||||||
outputs:
|
outputs:
|
||||||
python-key: ${{ steps.generate-python-key.outputs.key }}
|
python-key: ${{ steps.generate-python-key.outputs.key }}
|
||||||
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
||||||
|
@ -593,7 +593,7 @@ jobs:
|
||||||
- prepare-tests
|
- prepare-tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8]
|
python-version: [3.9]
|
||||||
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code from GitHub
|
- name: Check out code from GitHub
|
||||||
|
@ -633,7 +633,7 @@ jobs:
|
||||||
- prepare-tests
|
- prepare-tests
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.8]
|
python-version: [3.9]
|
||||||
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code from GitHub
|
- name: Check out code from GitHub
|
||||||
|
@ -681,7 +681,7 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
group: ${{ fromJson(needs.changes.outputs.test_groups) }}
|
group: ${{ fromJson(needs.changes.outputs.test_groups) }}
|
||||||
python-version: [3.8, 3.9]
|
python-version: [3.9]
|
||||||
name: >-
|
name: >-
|
||||||
Run tests Python ${{ matrix.python-version }} (${{ matrix.group }})
|
Run tests Python ${{ matrix.python-version }} (${{ matrix.group }})
|
||||||
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
container: homeassistant/ci-azure:${{ matrix.python-version }}
|
||||||
|
@ -732,7 +732,7 @@ jobs:
|
||||||
-p no:sugar \
|
-p no:sugar \
|
||||||
tests
|
tests
|
||||||
- name: Run pytest (partially)
|
- 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
|
timeout-minutes: 10
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -757,7 +757,7 @@ jobs:
|
||||||
-p no:sugar \
|
-p no:sugar \
|
||||||
tests/components/${{ matrix.group }}
|
tests/components/${{ matrix.group }}
|
||||||
- name: Run pytest (partially); no coverage
|
- 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
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
2
.github/workflows/translations.yaml
vendored
2
.github/workflows/translations.yaml
vendored
|
@ -12,7 +12,7 @@ on:
|
||||||
- "**strings.json"
|
- "**strings.json"
|
||||||
|
|
||||||
env:
|
env:
|
||||||
DEFAULT_PYTHON: 3.8
|
DEFAULT_PYTHON: 3.9
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
upload:
|
upload:
|
||||||
|
|
|
@ -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],
|
dsn=entry.data[CONF_DSN],
|
||||||
environment=entry.options.get(CONF_ENVIRONMENT),
|
environment=entry.options.get(CONF_ENVIRONMENT),
|
||||||
integrations=[sentry_logging, AioHttpIntegration(), SqlalchemyIntegration()],
|
integrations=[sentry_logging, AioHttpIntegration(), SqlalchemyIntegration()],
|
||||||
|
|
|
@ -10,10 +10,10 @@ MINOR_VERSION: Final = 2
|
||||||
PATCH_VERSION: Final = "0.dev0"
|
PATCH_VERSION: Final = "0.dev0"
|
||||||
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
|
__short_version__: Final = f"{MAJOR_VERSION}.{MINOR_VERSION}"
|
||||||
__version__: Final = f"{__short_version__}.{PATCH_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.
|
# Truthy date string triggers showing related deprecation warning messages.
|
||||||
REQUIRED_NEXT_PYTHON_VER: Final[tuple[int, int, int]] = (3, 9, 0)
|
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
|
# Format for platform files
|
||||||
PLATFORM_FORMAT: Final = "{platform}.{domain}"
|
PLATFORM_FORMAT: Final = "{platform}.{domain}"
|
||||||
|
|
2
mypy.ini
2
mypy.ini
|
@ -3,7 +3,7 @@
|
||||||
# To update, run python3 -m script.hassfest
|
# To update, run python3 -m script.hassfest
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
python_version = 3.8
|
python_version = 3.9
|
||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
follow_imports = silent
|
follow_imports = silent
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
|
|
@ -11,7 +11,6 @@ classifier =
|
||||||
Intended Audience :: Developers
|
Intended Audience :: Developers
|
||||||
License :: OSI Approved :: Apache Software License
|
License :: OSI Approved :: Apache Software License
|
||||||
Operating System :: OS Independent
|
Operating System :: OS Independent
|
||||||
Programming Language :: Python :: 3.8
|
|
||||||
Programming Language :: Python :: 3.9
|
Programming Language :: Python :: 3.9
|
||||||
Topic :: Home Automation
|
Topic :: Home Automation
|
||||||
|
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -1,5 +1,5 @@
|
||||||
[tox]
|
[tox]
|
||||||
envlist = py38, py39, lint, pylint, typing, cov
|
envlist = py39, lint, pylint, typing, cov
|
||||||
skip_missing_interpreters = True
|
skip_missing_interpreters = True
|
||||||
ignore_basepython_conflict = True
|
ignore_basepython_conflict = True
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue