Skip to content

Commit

Permalink
build(markupsafe): update markupsafe pinning for Airflow compatibility
Browse files Browse the repository at this point in the history
Airflow 2.0.2 - 2.2.2 has a pin on markupsafe as >=1.1.1,<2.0 because
of a bug shipped in markupsafe 2.0.x, preventing the ability to
integrate datahub and airflow.

This patch changes the pinnings to match Airflow.
  • Loading branch information
set5think committed Mar 13, 2022
1 parent fab9c23 commit 6774f26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion metadata-ingestion/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ def get_long_description():
# Markupsafe breaking change broke Jinja and some other libs
# Pinning it to a version which works even though we are not using explicitly
# https://github.com/aws/aws-sam-cli/issues/3661
"markupsafe==2.0.1",
# Airflow compatibility: https://github.com/apache/airflow/blob/2.2.2/setup.cfg#L125
"markupsafe>=1.1.1,<=2.0.1",
"Deprecated",
"types-Deprecated",
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ grpcio==1.38.0; python_full_version >= "3.7.0"
idna==2.10; python_full_version >= "3.7.0"
jinja2==3.0.1; python_version >= "3.6" and python_full_version >= "3.7.0"
jsonschema==3.2.0; python_full_version >= "3.7.0"
markupsafe==2.0.1; python_version >= "3.6" and python_full_version >= "3.7.0"
markupsafe>==1.1.1,<=2.0.1; python_version >= "3.6" and python_full_version >= "3.7.0"
mmh3==3.0.0; python_full_version >= "3.7.0"
numpy==1.20.3; python_version >= "3.7" and python_full_version >= "3.7.1"
packaging==20.9; python_full_version >= "3.7.0"
Expand Down

0 comments on commit 6774f26

Please sign in to comment.