Skip to content

Commit

Permalink
Filter out non-editable apache-airflow from constraints. (#25847)
Browse files Browse the repository at this point in the history
The constraint files should not contain apache-airflow. So far
apache-airflow has been automatically filtered out by the fact that it
has been an editable installation and we filtered out all editable
and file installations from `pip freeze`.

However as of ~12 August 2022, likely setuptools change triggered
a slight behaviour change when `eager-upgrade` installation of
providers from PyPi was run in the CI image. Previously airflow
remained an editable install, but as of 12th of August, such an
installation causes removal of editable airlfow install and
reinstalls it in non-editable mode. While this change is somewhat
confusing, we have to protect against it and remove apache-airflow
from `pip freeze` also in non-editable mode.

(cherry picked from commit cdbad44)
  • Loading branch information
potiuk committed Aug 20, 2022
1 parent 88b274c commit a927c77
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scripts/in_container/run_generate_constraints.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ echo

pip freeze | sort | \
grep -v "apache_airflow" | \
grep -v "apache-airflow==" | \
grep -v "@" | \
grep -v "/opt/airflow" >>"${CURRENT_CONSTRAINT_FILE}"

Expand Down

0 comments on commit a927c77

Please sign in to comment.