Closed
Description
Problem Statement
Once all the known issues have been addressed, we need to properly mark the SDK as supporting Python 3.12. I've created this issue to track progress in a central place and will link related PRs and issues here.
- Python 3.12 no longer allows creating a thread on interpreter shutdown (CPython issue: gh-104690 Disallow thread creation and fork at interpreter finalization python/cpython#104826, Python SDK issue: Python 3.12 support - RuntimeError #2299)
- do not attempt to spawn a new thread at shutdown: feat: Detect interpreter in shutdown state on thread spawn #2468
- do this everywhere where we spawn threads: Handle failure during thread creation #2471
- [optional, can be done later] attempt to send events via main thread: Send pending events on shutdown in 3.12 #2478
- A couple of
datetime
functions are deprecated (datetime.datetime.utcnow() is deprecated #2407)- create an alias: Removing utcnow method deprecated at python3.12 #2415
- Run the test suite on 3.12 and fix failing tests
- Add 3.12 to
classifiers
: Add Python 3.12 toclassifiers
#2483
Metadata
Metadata
Assignees
Labels
No labels