ashb commented on a change in pull request #12786:
URL: https://github.com/apache/airflow/pull/12786#discussion_r535679509
##########
File path: scripts/ci/libraries/_initialization.sh
##########
@@ -134,8 +134,8 @@ function initialization::initialize_base_variables() {
# otherwise it will use files/airflow-breeze-config/init.sh
export INIT_SCRIPT_FILE=${INIT_SCRIPT_FILE:=""}
- # Read airflow version from the version.py
- AIRFLOW_VERSION=$(grep version "${AIRFLOW_SOURCES}/airflow/version.py" |
awk '{print $3}' | sed "s/['+]//g")
+ # Read airflow version from the setup.py.
+ AIRFLOW_VERSION=$(python "${AIRFLOW_SOURCES}/setup.py" --version)
Review comment:
> # scripts/ci/libraries/_initialization.sh: line 138: python: command
not found
Failed anyway :)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]