Add support for Python 3.14 (#153939)

This commit is contained in:
Marc Mueller
2025-10-15 20:50:16 +02:00
committed by GitHub
parent 7829c2d03e
commit 7abe289681
21 changed files with 215 additions and 69 deletions

View File

@@ -19,6 +19,7 @@ classifiers = [
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Home Automation",
]
requires-python = ">=3.13.2"
@@ -569,6 +570,11 @@ filterwarnings = [
# https://pypi.org/project/opuslib/ - v3.0.1 - 2018-01-16
# https://pypi.org/project/pyiss/ - v1.0.1 - 2016-12-19
"ignore:\"is.*\" with '.*' literal:SyntaxWarning:importlib._bootstrap",
# - SyntaxWarning - return in finally
# https://github.com/nextcord/nextcord/pull/1268 - v3.1.1 - 2025-08-16
# https://github.com/Python-roborock/python-roborock/ - >=2.50.4
# https://pypi.org/project/sleekxmppfs/ - v1.4.1 - 2022-08-18
"ignore:'return' in a 'finally' block:SyntaxWarning:importlib._bootstrap",
# -- New in Python 3.13
# https://github.com/youknowone/python-deadlib - Backports for aifc, telnetlib
@@ -577,6 +583,28 @@ filterwarnings = [
"ignore:telnetlib was removed in Python 3.13.*'standard-telnetlib':DeprecationWarning:ndms2_client.connection",
"ignore:telnetlib was removed in Python 3.13.*'standard-telnetlib':DeprecationWarning:pyws66i",
# -- New in Python 3.14
# https://github.com/kumaraditya303/aioshutil - v1.5 - 2024-07-20
"ignore:'shutil.ExecError' is deprecated and slated for removal in Python 3.16:DeprecationWarning:aioshutil",
# https://github.com/litl/backoff/pull/220 - v2.2.1 - 2022-10-05 (archived)
"ignore:'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16:DeprecationWarning:(backoff._decorator|backoff._async)",
# https://github.com/albertogeniola/elmax-api - v0.0.6.3 - 2024-11-30
"ignore:'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16:DeprecationWarning:elmax_api.http",
# https://github.com/py-mine/mcstatus - v12.0.5 - 2025-08-13
"ignore:'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16:DeprecationWarning:mcstatus.utils",
# https://github.com/nextcord/nextcord/pull/1269 - v3.1.1 - 2025-08-16
"ignore:'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16:DeprecationWarning:nextcord.member",
# https://github.com/andrewsayre/pyheos/pull/124 - >1.0.5
"ignore:'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16:DeprecationWarning:pyheos.dispatch",
# https://github.com/SteveEasley/pykaleidescape/pull/7 - v2022.2.6 - 2022-03-07
"ignore:'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16:DeprecationWarning:kaleidescape.dispatcher",
# https://github.com/svinota/pyroute2
"ignore:Due to '_pack_', the '.*' Structure will use memory layout compatible with MSVC:DeprecationWarning:pyroute2.ethtool.ioctl",
# https://github.com/googleapis/python-genai
"ignore:'_UnionGenericAlias' is deprecated and slated for removal in Python 3.17:DeprecationWarning:google.genai.types",
# https://github.com/pyusb/pyusb
"ignore:Due to '_pack_', the '.*' Structure will use memory layout compatible with MSVC:DeprecationWarning:usb.backend.libusb0",
# -- Websockets 14.1
# https://websockets.readthedocs.io/en/stable/howto/upgrade.html
"ignore:websockets.legacy is deprecated:DeprecationWarning:websockets.legacy",