Skip to content

Commit 60e28bf

Browse files
authored
Merge pull request #51 from infosiftr/pip-20
Pin pip to 20.x (the last version to support Python 2)
2 parents 0cedf2f + 9625e09 commit 60e28bf

File tree

7 files changed

+20
-20
lines changed

7 files changed

+20
-20
lines changed

2.7/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ RUN set -ex; \
8888
\) -exec rm -rf '{}' +
8989

9090
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
91-
ENV PYTHON_PIP_VERSION 20.3.3
91+
ENV PYTHON_PIP_VERSION 20.3.4
9292
# https://github.com/pypa/get-pip
93-
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/39356a9d34700a468cf847867ac1a3bd72cc5e45/get-pip.py
94-
ENV PYTHON_GET_PIP_SHA256 ec367c5c9b82fa13c04cfabb0a069e84496d5c36714f14d19b5f24d519d3ba25
93+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3843bff3a0a61da5b63ea0b7d34794c5c51a2f11/get-pip.py
94+
ENV PYTHON_GET_PIP_SHA256 95c5ee602b2f3cc50ae053d716c3c89bea62c58568f64d7d25924d399b2d5218
9595

9696
RUN set -ex; \
9797
\

2.7/slim/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ RUN set -ex; \
8888
\) -exec rm -rf '{}' +
8989

9090
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
91-
ENV PYTHON_PIP_VERSION 20.3.3
91+
ENV PYTHON_PIP_VERSION 20.3.4
9292
# https://github.com/pypa/get-pip
93-
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/39356a9d34700a468cf847867ac1a3bd72cc5e45/get-pip.py
94-
ENV PYTHON_GET_PIP_SHA256 ec367c5c9b82fa13c04cfabb0a069e84496d5c36714f14d19b5f24d519d3ba25
93+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3843bff3a0a61da5b63ea0b7d34794c5c51a2f11/get-pip.py
94+
ENV PYTHON_GET_PIP_SHA256 95c5ee602b2f3cc50ae053d716c3c89bea62c58568f64d7d25924d399b2d5218
9595

9696
RUN set -ex; \
9797
apt-get update; \

3.6/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ RUN set -ex; \
9090
\) -exec rm -rf '{}' +
9191

9292
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
93-
ENV PYTHON_PIP_VERSION 20.3.3
93+
ENV PYTHON_PIP_VERSION 20.3.4
9494
# https://github.com/pypa/get-pip
95-
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/39356a9d34700a468cf847867ac1a3bd72cc5e45/get-pip.py
96-
ENV PYTHON_GET_PIP_SHA256 ec367c5c9b82fa13c04cfabb0a069e84496d5c36714f14d19b5f24d519d3ba25
95+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3843bff3a0a61da5b63ea0b7d34794c5c51a2f11/get-pip.py
96+
ENV PYTHON_GET_PIP_SHA256 95c5ee602b2f3cc50ae053d716c3c89bea62c58568f64d7d25924d399b2d5218
9797

9898
RUN set -ex; \
9999
\

3.6/slim/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ RUN set -ex; \
9090
\) -exec rm -rf '{}' +
9191

9292
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
93-
ENV PYTHON_PIP_VERSION 20.3.3
93+
ENV PYTHON_PIP_VERSION 20.3.4
9494
# https://github.com/pypa/get-pip
95-
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/39356a9d34700a468cf847867ac1a3bd72cc5e45/get-pip.py
96-
ENV PYTHON_GET_PIP_SHA256 ec367c5c9b82fa13c04cfabb0a069e84496d5c36714f14d19b5f24d519d3ba25
95+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3843bff3a0a61da5b63ea0b7d34794c5c51a2f11/get-pip.py
96+
ENV PYTHON_GET_PIP_SHA256 95c5ee602b2f3cc50ae053d716c3c89bea62c58568f64d7d25924d399b2d5218
9797

9898
RUN set -ex; \
9999
apt-get update; \

3.7/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ RUN set -ex; \
9090
\) -exec rm -rf '{}' +
9191

9292
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
93-
ENV PYTHON_PIP_VERSION 20.3.3
93+
ENV PYTHON_PIP_VERSION 20.3.4
9494
# https://github.com/pypa/get-pip
95-
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/39356a9d34700a468cf847867ac1a3bd72cc5e45/get-pip.py
96-
ENV PYTHON_GET_PIP_SHA256 ec367c5c9b82fa13c04cfabb0a069e84496d5c36714f14d19b5f24d519d3ba25
95+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3843bff3a0a61da5b63ea0b7d34794c5c51a2f11/get-pip.py
96+
ENV PYTHON_GET_PIP_SHA256 95c5ee602b2f3cc50ae053d716c3c89bea62c58568f64d7d25924d399b2d5218
9797

9898
RUN set -ex; \
9999
\

3.7/slim/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ RUN set -ex; \
9090
\) -exec rm -rf '{}' +
9191

9292
# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'"
93-
ENV PYTHON_PIP_VERSION 20.3.3
93+
ENV PYTHON_PIP_VERSION 20.3.4
9494
# https://github.com/pypa/get-pip
95-
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/39356a9d34700a468cf847867ac1a3bd72cc5e45/get-pip.py
96-
ENV PYTHON_GET_PIP_SHA256 ec367c5c9b82fa13c04cfabb0a069e84496d5c36714f14d19b5f24d519d3ba25
95+
ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3843bff3a0a61da5b63ea0b7d34794c5c51a2f11/get-pip.py
96+
ENV PYTHON_GET_PIP_SHA256 95c5ee602b2f3cc50ae053d716c3c89bea62c58568f64d7d25924d399b2d5218
9797

9898
RUN set -ex; \
9999
apt-get update; \

update.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ if [ ${#versions[@]} -eq 0 ]; then
1111
fi
1212
versions=( "${versions[@]%/}" )
1313

14-
pipVersion="$(curl -fsSL 'https://pypi.org/pypi/pip/json' | jq -r .info.version)"
15-
getPipCommit="$(curl -fsSL 'https://github.com/pypa/get-pip/commits/master/get-pip.py.atom' | tac|tac | awk -F '[[:space:]]*[<>/]+' '$2 == "id" && $3 ~ /Commit/ { print $4; exit }')"
14+
pipVersion="$(curl -fsSL 'https://pypi.org/pypi/pip/json' | jq '.releases | keys[] | select(startswith("20."))' -r | sort -rV | head -1)" # version 20.x is the last to support Python 2
15+
getPipCommit="$(curl -fsSL "https://github.com/pypa/get-pip/commits/$pipVersion/get-pip.py.atom" | tac|tac | awk -F '[[:space:]]*[<>/]+' '$2 == "id" && $3 ~ /Commit/ { print $4; exit }')"
1616
getPipUrl="https://github.com/pypa/get-pip/raw/$getPipCommit/get-pip.py"
1717
getPipSha256="$(curl -fsSL "$getPipUrl" | sha256sum | cut -d' ' -f1)"
1818

0 commit comments

Comments
 (0)