-
-
Notifications
You must be signed in to change notification settings - Fork 31.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Python 3.12 #101651
Merged
Merged
Add support for Python 3.12 #101651
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
home-assistant
bot
added
cla-signed
Hacktoberfest
has-tests
small-pr
PRs with less than 30 lines.
labels
Oct 8, 2023
frenck
requested changes
Oct 8, 2023
frenck
reviewed
Oct 8, 2023
frenck
reviewed
Oct 8, 2023
cdce8p
force-pushed
the
add-python-312
branch
5 times, most recently
from
October 10, 2023 10:35
e5b46a0
to
1a5de8e
Compare
cdce8p
force-pushed
the
add-python-312
branch
from
October 10, 2023 10:51
1a5de8e
to
5f0a171
Compare
cdce8p
added
breaking-change
noteworthy
Marks a PR as noteworthy and should be in the release notes (in case it normally would not appear)
labels
Oct 10, 2023
cdce8p
requested review from
bdraco,
bieniu,
bachya and
a team
as code owners
October 10, 2023 12:26
cdce8p
force-pushed
the
add-python-312
branch
from
October 10, 2023 14:54
a96e003
to
dc0ebdc
Compare
frenck
approved these changes
Oct 10, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
32 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
breaking-change
cla-signed
Hacktoberfest
noteworthy
Marks a PR as noteworthy and should be in the release notes (in case it normally would not appear)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Breaking changes
The following integrations won't work with Python 3.12 and might be removed in the future.
The
profiler.memory
service is not available when using Python 3.12. It will return if and when guppy3 becomes Python 3.12 compatible.Proposed change
--
Add initial support for Python 3.12.
The following integrations don't work yet.
Install / build error
Python Scripts
depends onRestrictedPython==6.2
python_requires
set to<3.12
Support Python 3.12 zopefoundation/RestrictedPython#246
Profiler
depends (partially) onguppy3==3.1.3
Error building wheel for Python 3.12
https://github.com/zhuyifei1999/guppy3
Update guppy3 to 3.1.4 #102400
Met Office
depends ondatapoint==0.9.8
Uses old / incompatible
python-versionieer
versionLast update 3 years ago -> probably unmaintained
Python 3.12, versioneer build failure EJEP/datapoint-python#183
Status of maintenance EJEP/datapoint-python#109
Cisco Webex Teams
depends onwebexteamssdk==1.1.1
Uses old / incompatible
python-versionieer
versionLast update 9 months ago -> ??
Python 3.12, versioneer build failure WebexCommunity/WebexPythonSDK#189
Import error
Apache Kafka
depends onaiokafka==0.7.2
->kafka-python>=2.0.0
Fix is planned, but no recent progress in that area.
Python 3.12.0 compatibility issue aio-libs/aiokafka#928
Workaround an error to import "range" from "kafka.vendor.six.moves" dpkp/kafka-python#2376
Drop Python2 support as part of 2.x release? dpkp/kafka-python#1927
Bump
aiokafka
to 0.10.0 #108165Uonet+ Vulcan
depends onvulcan-api==2.3.0
->related~=0.7.3
->future
python-future
was last updated 9 months ago -> ??https://github.com/kapi2289/vulcan-api
https://github.com/genomoncology/related
https://github.com/PythonCharmers/python-future
Importing imp in standard_library raises a PendingDeprecationWarning PythonCharmers/python-future#246
deprecation warning importing imp PythonCharmers/python-future#488
Update imp to importlib for py3 PythonCharmers/python-future#574
Add support for Uonet+ Vulcan integration on Python 3.12 #107959
Brother Printer
depends onbrother==2.3.0
->pysnmplib
Bump
brother
library, usepysnmp-lextudio
with SNMP integration #105591SNMP
depends onpysnmplib==5.0.21
pysnmplib
still usesasyncore
Last update 8 months ago -> ??
https://github.com/pysnmp/pysnmp
Python 3.12 compatibility pysnmp/pysnmp#56
DeprecationWarning: asyncore (to be removed in Python 3.12) lextudio/pysnmp#10
Bump
brother
library, usepysnmp-lextudio
with SNMP integration #105591Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: