Skip to content

Drop support for Python 3.9#52072

Merged
eladkal merged 8 commits intoapache:mainfrom
eladkal:python39
Jun 27, 2025
Merged

Drop support for Python 3.9#52072
eladkal merged 8 commits intoapache:mainfrom
eladkal:python39

Conversation

@eladkal
Copy link
Contributor

@eladkal eladkal commented Jun 23, 2025

@potiuk
Copy link
Member

potiuk commented Jun 23, 2025

👀

@potiuk
Copy link
Member

potiuk commented Jun 23, 2025

Prepare all required actions
Getting action download info
Download immutable action package 'actions/setup-python@v5'
  Version: 5.6.0
  Digest: sha[2](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:2)56:0b35a0c11c97499e4e05765890[3](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:3)6d450b9f5f9da74b7774225b3614b57324404
  Source commit SHA: a26af69be951a213d[4](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:4)95a4c3e4e4022e16d8706[5](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:5)
Run ./.github/actions/breeze
Run actions/setup-python@v5
  with:
    python-version: 3.9
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
    freethreaded: false

3.9 is also hard-coded in a few github action workflows where it had to be added by hand (because you cannot run breeze before you install breeze to check which version of python is supported :D ) .

Classic chicken-egg

@eladkal eladkal force-pushed the python39 branch 3 times, most recently from f1a79b8 to f4590e6 Compare June 23, 2025 09:52
@eladkal eladkal force-pushed the python39 branch 4 times, most recently from 389da96 to 54587d1 Compare June 23, 2025 15:52
@gopidesupavan
Copy link
Member

Prepare all required actions
Getting action download info
Download immutable action package 'actions/setup-python@v5'
  Version: 5.6.0
  Digest: sha[2](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:2)56:0b35a0c11c97499e4e05765890[3](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:3)6d450b9f5f9da74b7774225b3614b57324404
  Source commit SHA: a26af69be951a213d[4](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:4)95a4c3e4e4022e16d8706[5](https://github.com/apache/airflow/actions/runs/15819890437/job/44586552024?pr=52072#step:5:5)
Run ./.github/actions/breeze
Run actions/setup-python@v5
  with:
    python-version: 3.9
    check-latest: false
    token: ***
    update-environment: true
    allow-prereleases: false
    freethreaded: false

3.9 is also hard-coded in a few github action workflows where it had to be added by hand (because you cannot run breeze before you install breeze to check which version of python is supported :D ) .

Classic chicken-egg

indeed :)

@potiuk
Copy link
Member

potiuk commented Jun 26, 2025

ALMOST ... -> the (reverted) main issue AND one static check - sorting imports !!!

VERY, VERY CLOSE :)

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Very very close! I will take another look when CI is green!

@eladkal
Copy link
Contributor Author

eladkal commented Jun 27, 2025

Very very close! I will take another look when CI is green!

It's very hard to keep this PR green. For example the current failure is new, it started today and the fix applied in #52321 is insufficient for Python 3.10 because we need TypeAlias.

Kindly asking reviewers to review early so we can merge this fast.

Copy link
Member

@gopidesupavan gopidesupavan left a comment

Choose a reason for hiding this comment

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

Thanks Elad.

LGTM, mostly type changes ;)

@potiuk
Copy link
Member

potiuk commented Jun 27, 2025

Looks good (minus the current failures of course so indeed we should merge it quickly) - reviewed with git diff (higjhly recommended over GitHub UI) - helped to fix some reds and looked over it few times already.

There will be cherry-pick issues, but it's inevitable and we should just let peopel know to pay attention to the kinds of changes that they are expected to "revert" when cherry-picking.

Copy link
Contributor

@amoghrajesh amoghrajesh left a comment

Choose a reason for hiding this comment

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

Looks fine to me. It mainly looks like type checking has had an impact, rest is pretty ok +1

@potiuk
Copy link
Member

potiuk commented Jun 27, 2025

👀 👀 .... and I might be able to complete 3.13 as a follow up....

@potiuk
Copy link
Member

potiuk commented Jun 27, 2025

Wooohoooo !

@gopidesupavan
Copy link
Member

Cool :)

@jscheffl
Copy link
Contributor

Cool!

@bugraoz93
Copy link
Contributor

Awesome!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants