-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Airflow Python 3.12 support #36546
Comments
This kind of task not a straight forward, required to someone check what kind of core / providers dependencies not ready for 3.12 yet, or we use outdated dependencies or some deprecated stuff: At current moment we know at lest incompatible with that pendulum 2 doesn't support of python 3.12, but this one could be solved by #36281 |
Yeah. I believe this is the only "serious" blocker. We have option to exclude certain providers if they turn out to be incompatible ("excluded-python-versions" flag in provider.yaml) and we've done that in the past. So I'd say @dirrao if you want to take the lead on that - open a PR with added Python 3.12 in Breeze and we can keep it open and rebased until all the tests pass (might need to exclude some providers). I think it's about the right time to attempt it - usually it takes 3-4 months for most important dependencies to catch up. We might also need to bump some more deps, not only Pendulum, but yeah - Pendulum is the "hard" blocker. |
Yes. I started looking into updating Breeze. |
I have updated the breeze. However when I run this test with 3.12, I am seeing python3.12 image not found. How to publish this image?
|
You should be able to build it locally with |
You might see some missing cache etc. but they should be just warnings - and you can always disable cache with |
I can run after making the changes in Breeze. However, I faced two problems as follows.
Can you let me know the next steps? |
Oh yeah.
|
For 1: see this commit 3f3ed81 (and generally main constraints history is here https://github.com/apache/airflow/commits/constraints-main/) |
Merged. You can continue your quest @dirrao |
Now, I can make progress. However, the 3.12 uploaded dependency constraint files are old as compared to 3.11. |
Re: old dependencies: This is no problem. You should always build your image with What you also want, is to make single modification (might be an added coomment) to setup.py or pyproject.toml and open a PR with your changes (and 3.12 support added) . What this will cause is that your PR will get the image built with I think once you open such PR, you can easier share the problems you will experience. |
Any progress on this @dirrao? |
Python 3.12 is currently being worked on in #36755 . There is one thing left in order to merge it - namely converting universal_pathlib to use the new Python 3.12 ready 0.2.0 version (you can see detail and links in the PR). Would you like to help with that @Froskekongen ? It waits for someone to do it. |
Well. It's going to be closed when the PR adding Python 3.12 is merged :) |
Rebsed and runnning the PR https://github.com/apache/airflow/actions/runs/7972889219 |
Fixed in #38025 |
Description
Right now, airflow is not officially supporting the Python 3.12 version
Use case/motivation
Python software stack update.
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: