Drop Python 3.10 support (#97007)
This commit is contained in:
parent
9424d11408
commit
ce1f5f997e
12 changed files with 13 additions and 22 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
@ -33,8 +33,8 @@ env:
|
||||||
PIP_CACHE_VERSION: 4
|
PIP_CACHE_VERSION: 4
|
||||||
MYPY_CACHE_VERSION: 4
|
MYPY_CACHE_VERSION: 4
|
||||||
HA_SHORT_VERSION: 2023.8
|
HA_SHORT_VERSION: 2023.8
|
||||||
DEFAULT_PYTHON: "3.10"
|
DEFAULT_PYTHON: "3.11"
|
||||||
ALL_PYTHON_VERSIONS: "['3.10', '3.11']"
|
ALL_PYTHON_VERSIONS: "['3.11']"
|
||||||
# 10.3 is the oldest supported version
|
# 10.3 is the oldest supported version
|
||||||
# - 10.3.32 is the version currently shipped with Synology (as of 17 Feb 2022)
|
# - 10.3.32 is the version currently shipped with Synology (as of 17 Feb 2022)
|
||||||
# 10.6 is the current long-term-support
|
# 10.6 is the current long-term-support
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import telnetlib
|
import telnetlib # pylint: disable=deprecated-module
|
||||||
from typing import Final
|
from typing import Final
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import telnetlib
|
import telnetlib # pylint: disable=deprecated-module
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ from __future__ import annotations
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
import socket
|
import socket
|
||||||
from telnetlib import Telnet
|
from telnetlib import Telnet # pylint: disable=deprecated-module
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import telnetlib
|
import telnetlib # pylint: disable=deprecated-module
|
||||||
from typing import Final
|
from typing import Final
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
from datetime import timedelta
|
from datetime import timedelta
|
||||||
import logging
|
import logging
|
||||||
import telnetlib
|
import telnetlib # pylint: disable=deprecated-module
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
|
@ -3,7 +3,7 @@ from __future__ import annotations
|
||||||
|
|
||||||
import logging
|
import logging
|
||||||
import re
|
import re
|
||||||
import telnetlib
|
import telnetlib # pylint: disable=deprecated-module
|
||||||
|
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
|
|
|
@ -11,10 +11,10 @@ MINOR_VERSION: Final = 8
|
||||||
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, 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)
|
REQUIRED_NEXT_PYTHON_VER: Final[tuple[int, int, int]] = (3, 11, 0)
|
||||||
# Truthy date string triggers showing related deprecation warning messages.
|
# 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
|
# Format for platform files
|
||||||
PLATFORM_FORMAT: Final = "{platform}.{domain}"
|
PLATFORM_FORMAT: Final = "{platform}.{domain}"
|
||||||
|
|
|
@ -139,10 +139,6 @@ pubnub!=6.4.0
|
||||||
# https://github.com/dahlia/iso4217/issues/16
|
# https://github.com/dahlia/iso4217/issues/16
|
||||||
iso4217!=1.10.20220401
|
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
|
# Matplotlib 3.6.2 has issues building wheels on armhf/armv7
|
||||||
# We need at least >=2.1.0 (tensorflow integration -> pycocotools)
|
# We need at least >=2.1.0 (tensorflow integration -> pycocotools)
|
||||||
matplotlib==3.6.1
|
matplotlib==3.6.1
|
||||||
|
|
2
mypy.ini
2
mypy.ini
|
@ -3,7 +3,7 @@
|
||||||
# To update, run python3 -m script.hassfest -p mypy_config
|
# To update, run python3 -m script.hassfest -p mypy_config
|
||||||
|
|
||||||
[mypy]
|
[mypy]
|
||||||
python_version = 3.10
|
python_version = 3.11
|
||||||
plugins = pydantic.mypy
|
plugins = pydantic.mypy
|
||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
follow_imports = silent
|
follow_imports = silent
|
||||||
|
|
|
@ -18,11 +18,10 @@ classifiers = [
|
||||||
"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.10",
|
|
||||||
"Programming Language :: Python :: 3.11",
|
"Programming Language :: Python :: 3.11",
|
||||||
"Topic :: Home Automation",
|
"Topic :: Home Automation",
|
||||||
]
|
]
|
||||||
requires-python = ">=3.10.0"
|
requires-python = ">=3.11.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"aiohttp==3.8.5",
|
"aiohttp==3.8.5",
|
||||||
"astral==2.2",
|
"astral==2.2",
|
||||||
|
@ -80,7 +79,7 @@ include = ["homeassistant*"]
|
||||||
extend-exclude = "/generated/"
|
extend-exclude = "/generated/"
|
||||||
|
|
||||||
[tool.pylint.MAIN]
|
[tool.pylint.MAIN]
|
||||||
py-version = "3.10"
|
py-version = "3.11"
|
||||||
ignore = [
|
ignore = [
|
||||||
"tests",
|
"tests",
|
||||||
]
|
]
|
||||||
|
|
|
@ -144,10 +144,6 @@ pubnub!=6.4.0
|
||||||
# https://github.com/dahlia/iso4217/issues/16
|
# https://github.com/dahlia/iso4217/issues/16
|
||||||
iso4217!=1.10.20220401
|
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
|
# Matplotlib 3.6.2 has issues building wheels on armhf/armv7
|
||||||
# We need at least >=2.1.0 (tensorflow integration -> pycocotools)
|
# We need at least >=2.1.0 (tensorflow integration -> pycocotools)
|
||||||
matplotlib==3.6.1
|
matplotlib==3.6.1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue