Skip to content

Commit

Permalink
Limit Airflow and breeze to < 3.12 (#35123)
Browse files Browse the repository at this point in the history
Python 3.12 has a few breaking changes comparing to earlier versions.
While 3.7 - 3.11 were largely backwards compatible, Python 3.12 is the
first one for a long time that started to break things more
aggressively.

For now we know that Airflow will not work with Python 3.12 mainly
because of distutils removal (https://peps.python.org/pep-0632/) and
not because of Airflow's usage of it but pendulum's before version 3.

While we are working on getting Pendulum 3 support in #34744 and
the #34746, there are likely other dependencies that have similar
issue.

Until we fix it and add official 3.12 support, we can limit airflow
to not be installable on 3.12.

(cherry picked from commit 020691f)
  • Loading branch information
potiuk committed Oct 29, 2023
1 parent 5245a6f commit fc337ab
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev/breeze/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ PLEASE DO NOT MODIFY THE HASH BELOW! IT IS AUTOMATICALLY UPDATED BY PRE-COMMIT.

---------------------------------------------------------------------------------------------------------

Package config hash: 20d095e80d897b7c19f3eef96e0e6ceef4a7a0c0a9b82def7089ec962da64e1bd2ee20f02532fc2ef64137d86c045c340bc8038695f53d29aa72833cafe8b153
Package config hash: 1fe676b16075afde8bd7dd88b92b3e587b12927337a0edfcc8f751a7d400b772e300d64084f02e4c76e5bb5f2f349a23729258ec457bcb0b94f180ef19ffb154

---------------------------------------------------------------------------------------------------------
5 changes: 4 additions & 1 deletion dev/breeze/setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ classifiers =
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Programming Language :: Python :: 3.11
project_urls =
Documentation=https://github.com/apache/airflow/BREEZE.rst
Bug Tracker=https://github.com/apache/airflow/issues
Expand All @@ -47,7 +48,9 @@ project_urls =
[options]
zip_safe = False
include_package_data = True
python_requires = ~=3.8
# Mainly because of distutils deprecation and some packages not being compatible with it, we should
# Limit airflow to < 3.12 until those dependencies are ready and until we can support Python 3.12
python_requires = ~=3.8,<3.12
package_dir=
=src
packages = find:
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ project_urls =
[options]
zip_safe = False
include_package_data = True
python_requires = ~=3.8
# Mainly because of distutils deprecation and some packages not being compatible with it, we should
# Limit airflow to < 3.12 until those dependencies are ready and until we can support Python 3.12
python_requires = ~=3.8,<3.12
packages = find:
setup_requires =
gitpython
Expand Down

0 comments on commit fc337ab

Please sign in to comment.