forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update setup.py to get non-conflicting set of dependencies (apache#12636
) This change upgrades setup.py and setup.cfg to provide non-conflicting `pip check` valid set of constraints for CI image. Fixes apache#10854 Co-authored-by: Tomek Urbaszek <[email protected]> Co-authored-by: Tomek Urbaszek <[email protected]>
- Loading branch information
Showing
18 changed files
with
264 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,5 +59,4 @@ function build_ci_image_on_ci() { | |
export CHECK_IMAGE_FOR_REBUILD="false" | ||
} | ||
|
||
|
||
build_ci_image_on_ci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# shellcheck source=scripts/ci/libraries/_script_init.sh | ||
. "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" | ||
|
||
function verify_ci_image_dependencies { | ||
echo | ||
echo "Checking if Airflow dependencies are non-conflicting in CI image." | ||
echo | ||
|
||
push_pull_remove_images::pull_image_github_dockerhub "${AIRFLOW_CI_IMAGE}" \ | ||
"${GITHUB_REGISTRY_AIRFLOW_CI_IMAGE}:${GITHUB_REGISTRY_PULL_IMAGE_TAG}" | ||
|
||
# TODO: remove the | true after we fixed pip check for prod image | ||
docker run --rm --entrypoint /bin/bash "${AIRFLOW_CI_IMAGE}" -c 'pip check' || true | ||
} | ||
|
||
push_pull_remove_images::check_if_github_registry_wait_for_image_enabled | ||
|
||
push_pull_remove_images::check_if_jq_installed | ||
|
||
build_image::login_to_github_registry_if_needed | ||
|
||
export AIRFLOW_CI_IMAGE_NAME="${BRANCH_NAME}-python${PYTHON_MAJOR_MINOR_VERSION}-ci" | ||
|
||
echo | ||
echo "Waiting for image to appear: ${AIRFLOW_CI_IMAGE_NAME}" | ||
echo | ||
|
||
push_pull_remove_images::wait_for_github_registry_image \ | ||
"${AIRFLOW_CI_IMAGE_NAME}" "${GITHUB_REGISTRY_PULL_IMAGE_TAG}" | ||
|
||
echo | ||
echo "Verifying the ${AIRFLOW_CI_IMAGE_NAME} image after pulling it" | ||
echo | ||
|
||
verify_ci_image_dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/usr/bin/env bash | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# shellcheck source=scripts/ci/libraries/_script_init.sh | ||
. "$( dirname "${BASH_SOURCE[0]}" )/../libraries/_script_init.sh" | ||
|
||
function verify_prod_image_dependencies { | ||
echo | ||
echo "Checking if Airflow dependencies are non-conflicting in PROD image." | ||
echo | ||
|
||
push_pull_remove_images::pull_image_github_dockerhub "${AIRFLOW_PROD_IMAGE}" \ | ||
"${GITHUB_REGISTRY_AIRFLOW_PROD_IMAGE}:${GITHUB_REGISTRY_PULL_IMAGE_TAG}" | ||
|
||
# TODO: remove the | true after we fixed pip check for prod image | ||
docker run --rm --entrypoint /bin/bash "${AIRFLOW_PROD_IMAGE}" -c 'pip check' || true | ||
} | ||
|
||
push_pull_remove_images::check_if_github_registry_wait_for_image_enabled | ||
|
||
push_pull_remove_images::check_if_jq_installed | ||
|
||
build_image::login_to_github_registry_if_needed | ||
|
||
export AIRFLOW_PROD_IMAGE_NAME="${BRANCH_NAME}-python${PYTHON_MAJOR_MINOR_VERSION}" | ||
|
||
echo | ||
echo "Waiting for image to appear: ${AIRFLOW_PROD_IMAGE_NAME}" | ||
echo | ||
|
||
push_pull_remove_images::wait_for_github_registry_image \ | ||
"${AIRFLOW_PROD_IMAGE_NAME}" "${GITHUB_REGISTRY_PULL_IMAGE_TAG}" | ||
|
||
echo | ||
echo "Verifying the ${AIRFLOW_PROD_IMAGE_NAME} image after pulling it" | ||
echo | ||
|
||
verify_prod_image_dependencies |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.