Skip to content

Drop Python 3.9 support#5076

Open
emdneto wants to merge 9 commits intoopen-telemetry:mainfrom
emdneto:py39-drop
Open

Drop Python 3.9 support#5076
emdneto wants to merge 9 commits intoopen-telemetry:mainfrom
emdneto:py39-drop

Conversation

@emdneto
Copy link
Copy Markdown
Member

@emdneto emdneto commented Apr 10, 2026

Close #4887

emdneto added 3 commits April 9, 2026 21:55
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
@emdneto emdneto requested a review from a team as a code owner April 10, 2026 01:00
emdneto added 4 commits April 9, 2026 22:01
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
@DylanRussell
Copy link
Copy Markdown
Contributor

Looks like a bunch of checks are failing but otherwise this LGTM.. is there any official python lang document that describes what you can get rid of now that this version is deprecated ?

@github-project-automation github-project-automation bot moved this to Approved PRs in Python PR digest Apr 10, 2026
Signed-off-by: emdneto <9735060+emdneto@users.noreply.github.com>
@emdneto emdneto moved this from Approved PRs to Approved PRs that need fixes in Python PR digest Apr 10, 2026
@emdneto
Copy link
Copy Markdown
Member Author

emdneto commented Apr 10, 2026

Looks like a bunch of checks are failing but otherwise this LGTM.. is there any official python lang document that describes what you can get rid of now that this version is deprecated ?

@DylanRussell On top of my head, I remember mostly typing stuff like:

  • int | str instead of Union[int, str]
  • str | None instead of Optional[str]
  • TypeAlias

For documentation, I believe: https://docs.python.org/3/whatsnew/3.10.html
We should leverage ruff UP rules to keep the codebase updated with the most recent syntax.

re failing tests: i need to update in -contrib and merge there first

py-cpuinfo==9.0.0
pytest==7.4.4
jsonschema==4.25.1
rpds-py==0.23.1; python_version == "3.10"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to pin those. sdk tests were failing for pypy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Approved PRs that need fixes

Development

Successfully merging this pull request may close these issues.

It's time to drop Python 3.9

2 participants