You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/04 23:11:17 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #28697: Allow to specify `pip` version via github URL in Docker/CI workflow

potiuk commented on code in PR #28697:
URL: https://github.com/apache/airflow/pull/28697#discussion_r1061960382


##########
Dockerfile:
##########
@@ -445,6 +436,18 @@ function common::show_pip_version_and_location() {
    echo "pip on path: $(which pip)"
    echo "Using pip: $(pip --version)"
 }
+
+function common::install_pip_version() {
+    echo
+    echo "${COLOR_BLUE}Installing pip version ${AIRFLOW_PIP_VERSION}${COLOR_RESET}"
+    echo
+    if [[ ${AIRFLOW_PIP_VERSION} =~ .*https.* ]]; then
+        pip install --disable-pip-version-check --no-cache-dir ${AIRFLOW_PIP_VERSION}

Review Comment:
   Right: https://peps.python.org/pep-0440/#direct-references TIL (also good that PEP explicitly mention hashes and warnings if the hash is not present). 



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org