Drop Python 3.10 support (#97007)

This commit is contained in:
Franck Nijhof 2023-07-22 23:03:45 +02:00 committed by GitHub
parent 9424d11408
commit ce1f5f997e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 13 additions and 22 deletions

View File

@ -33,8 +33,8 @@ env:
PIP_CACHE_VERSION: 4
MYPY_CACHE_VERSION: 4
HA_SHORT_VERSION: 2023.8
DEFAULT_PYTHON: "3.10"
ALL_PYTHON_VERSIONS: "['3.10', '3.11']"
DEFAULT_PYTHON: "3.11"
ALL_PYTHON_VERSIONS: "['3.11']"
# 10.3 is the oldest supported version
# - 10.3.32 is the version currently shipped with Synology (as of 17 Feb 2022)
# 10.6 is the current long-term-support

View File

@ -2,7 +2,7 @@
from __future__ import annotations
import logging
import telnetlib
import telnetlib # pylint: disable=deprecated-module
from typing import Final
import voluptuous as vol

View File

@ -2,7 +2,7 @@
from __future__ import annotations
import logging
import telnetlib
import telnetlib # pylint: disable=deprecated-module
import voluptuous as vol

View File

@ -4,7 +4,7 @@ from __future__ import annotations
from datetime import timedelta
import logging
import socket
from telnetlib import Telnet
from telnetlib import Telnet # pylint: disable=deprecated-module
import voluptuous as vol

View File

@ -2,7 +2,7 @@
from __future__ import annotations
import logging
import telnetlib
import telnetlib # pylint: disable=deprecated-module
from typing import Final
import voluptuous as vol

View File

@ -3,7 +3,7 @@ from __future__ import annotations
from datetime import timedelta
import logging
import telnetlib
import telnetlib # pylint: disable=deprecated-module
from typing import Any
import voluptuous as vol

View File

@ -3,7 +3,7 @@ from __future__ import annotations
import logging
import re
import telnetlib
import telnetlib # pylint: disable=deprecated-module
import voluptuous as vol

View File

@ -11,10 +11,10 @@ MINOR_VERSION: Final = 8
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, 10, 0)
REQUIRED_PYTHON_VER: Final[tuple[int, int, int]] = (3, 11, 0)
REQUIRED_NEXT_PYTHON_VER: Final[tuple[int, int, int]] = (3, 11, 0)
# Truthy date string triggers showing related deprecation warning messages.
REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = "2023.8"
REQUIRED_NEXT_PYTHON_HA_RELEASE: Final = ""
# Format for platform files
PLATFORM_FORMAT: Final = "{platform}.{domain}"

View File

@ -139,10 +139,6 @@ pubnub!=6.4.0
# https://github.com/dahlia/iso4217/issues/16
iso4217!=1.10.20220401
# Pandas 1.4.4 has issues with wheels om armhf + Py3.10
# Limit this to Python 3.10, to be able to install Python 3.11 wheels for now
pandas==1.4.3;python_version<'3.11'
# Matplotlib 3.6.2 has issues building wheels on armhf/armv7
# We need at least >=2.1.0 (tensorflow integration -> pycocotools)
matplotlib==3.6.1

View File

@ -3,7 +3,7 @@
# To update, run python3 -m script.hassfest -p mypy_config
[mypy]
python_version = 3.10
python_version = 3.11
plugins = pydantic.mypy
show_error_codes = true
follow_imports = silent

View File

@ -18,11 +18,10 @@ classifiers = [
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Topic :: Home Automation",
]
requires-python = ">=3.10.0"
requires-python = ">=3.11.0"
dependencies = [
"aiohttp==3.8.5",
"astral==2.2",
@ -80,7 +79,7 @@ include = ["homeassistant*"]
extend-exclude = "/generated/"
[tool.pylint.MAIN]
py-version = "3.10"
py-version = "3.11"
ignore = [
"tests",
]

View File

@ -144,10 +144,6 @@ pubnub!=6.4.0
# https://github.com/dahlia/iso4217/issues/16
iso4217!=1.10.20220401
# Pandas 1.4.4 has issues with wheels om armhf + Py3.10
# Limit this to Python 3.10, to be able to install Python 3.11 wheels for now
pandas==1.4.3;python_version<'3.11'
# Matplotlib 3.6.2 has issues building wheels on armhf/armv7
# We need at least >=2.1.0 (tensorflow integration -> pycocotools)
matplotlib==3.6.1