Skip to content

Commit 89cd098

Browse files
potiukephraimbuddy
authored andcommitted
Limit universal-pathlib to < 0.2.0 (#37311)
The Universal Pathlib provides Pathlib-like interface for FSSPEC In 0.1. *It was not very well defined for extension, so the way how we use it for 0.1.* so we used a lot of private methods and attributes that were not defined in the interface an they are broken with version 0.2.0 which is much better suited for extension and supports Python 3.12. We should limit it, unti we migrate to 0.2.0 See: fsspec/universal_pathlib#173 (comment) This is prerequistite to make Airflow compatible with Python 3.12 Tracked in #36755 (cherry picked from commit 1301274)
1 parent 2440b1f commit 89cd098

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,15 @@ dependencies = [
151151
# See https://github.com/apache/airflow/pull/31693
152152
# We should also remove "licenses/LICENSE-unicodecsv.txt" file when we remove this dependency
153153
"unicodecsv>=0.14.1",
154-
"universal-pathlib>=0.1.4",
154+
# The Universal Pathlib provides Pathlib-like interface for FSSPEC
155+
# In 0.1. *It was not very well defined for extension, so the way how we use it for 0.1.*
156+
# so we used a lot of private methods and attributes that were not defined in the interface
157+
# an they are broken with version 0.2.0 which is much better suited for extension and supports
158+
# Python 3.12. We should limit it, unti we migrate to 0.2.0
159+
# See: https://github.com/fsspec/universal_pathlib/pull/173#issuecomment-1937090528
160+
# This is prerequistite to make Airflow compatible with Python 3.12
161+
# Tracked in https://github.com/apache/airflow/pull/36755
162+
"universal-pathlib>=0.1.4,<0.2.0",
155163
# Werkzug 3 breaks Flask-Login 0.6.2, also connexion needs to be updated to >= 3.0
156164
# we should remove this limitation when FAB supports Flask 2.3 and we migrate connexion to 3+
157165
"werkzeug>=2.0,<3",

0 commit comments

Comments
 (0)