Title: No title
Domain: github.com
Links:
| &2 exit 1 fi echo "$version: $fullVersion" for v in \ alpine{3.9,3.10} \ {stretch,buster}{/slim,} \ windows/windowsservercore-{1809,1803,ltsc2016} \ ; do dir="$version/$v" variant="$(basename "$v")" [ -d "$dir" ] || continue case "$variant" in slim) template="$variant"; tag="$(basename "$(dirname "$dir")")" ;; windowsservercore-*) template='windowsservercore'; tag="${variant#*-}" ;; alpine*) template='alpine'; tag="${variant#alpine}" ;; *) template='debian'; tag="$variant" ;; esac if [ "$variant" = 'slim' ]; then # use "debian:*-slim" variants for "python:*-slim" variants tag+='-slim' fi if [[ "$version" == 2.* ]]; then template="caveman-${template}" fi template="Dockerfile-${template}.template" { generated_warning; cat "$template"; } > "$dir/Dockerfile" sed -ri \ -e 's/^(ENV GPG_KEY) .*/\1 '"${gpgKeys[$version]:-${gpgKeys[$rcVersion]}}"'/' \ -e 's/^(ENV PYTHON_VERSION) .*/\1 '"$fullVersion"'/' \ -e 's/^(ENV PYTHON_RELEASE) .*/\1 '"${fullVersion%%[a-z]*}"'/' \ -e 's/^(ENV PYTHON_PIP_VERSION) .*/\1 '"$pipVersion"'/' \ -e 's!^(ENV PYTHON_GET_PIP_URL) .*!\1 '"$getPipUrl"'!' \ -e 's!^(ENV PYTHON_GET_PIP_SHA256) .*!\1 '"$getPipSha256"'!' \ -e 's/^(FROM python):.*/\1:'"$version-$tag"'/' \ -e 's!^(FROM (debian|buildpack-deps|alpine|mcr[.]microsoft[.]com/[^:]+)):.*!\1:'"$tag"'!' \ "$dir/Dockerfile" case "$rcVersion/$v" in # Libraries to build the nis module only available in Alpine 3.7+. # Also require this patch https://bugs.python.org/issue32521 only available in Python 2.7, 3.6+. 3.5/alpine*) sed -ri -e '/libnsl-dev/d' -e '/libtirpc-dev/d' "$dir/Dockerfile" ;;& # (3.5*/alpine* needs to match the next blocks too) # https://bugs.python.org/issue11063, https://bugs.python.org/issue20519 (Python 3.7.0+) # A new native _uuid module improves uuid import time and avoids using ctypes. # This requires the development libuuid headers. 3.[5-6]/alpine*) sed -ri -e '/util-linux-dev/d' "$dir/Dockerfile" ;; 3.[5-6]/*) sed -ri -e '/uuid-dev/d' "$dir/Dockerfile" ;;& # (other Debian variants need to match later blocks) */buster | */stretch) # buildpack-deps already includes libssl-dev sed -ri -e '/libssl-dev/d' "$dir/Dockerfile" ;; esac major="${rcVersion%%.*}" minor="${rcVersion#$major.}" minor="${minor%%.*}" if [ "$major" -gt 3 ] || { [ "$major" -eq 3 ] && [ "$minor" -ge 8 ]; }; then # PROFILE_TASK has a reasonable default starting in 3.8+; see: # https://bugs.python.org/issue36044 # https://github.com/python/cpython/pull/14702 # https://github.com/python/cpython/pull/14910 perl -0 -i -p -e "s![^\n]+PROFILE_TASK(='[^']+?')?[^\n]+\n!!gs" "$dir/Dockerfile" fi case "$v" in windows/*-1803) travisEnv='\n - os: windows\n dist: 1803-containers\n env: VERSION='"$version VARIANT=$v$travisEnv" ;; windows/*-1809) ;; # no AppVeyor support for 1809 yet: https://github.com/appveyor/ci/issues/1885 and https://github.com/appveyor/ci/issues/2676 windows/*) appveyorEnv='\n - version: '"$version"'\n variant: '"$variant$appveyorEnv" ;; *) travisEnv='\n - os: linux\n env: VERSION='"$version VARIANT=$v$travisEnv" ;; esac done done travis="$(awk -v 'RS=\n\n' '$1 == "matrix:" { $0 = "matrix:\n include:'"$travisEnv"'" } { printf "%s%s", $0, RS }' .travis.yml)" echo "$travis" > .travis.yml appveyor="$(awk -v 'RS=\n\n' '$1 == "environment:" { $0 = "environment:\n matrix:'"$appveyorEnv"'" } { printf "%s%s", $0, RS }' .appveyor.yml)" echo "$appveyor" > .appveyor.yml | https://github.com/pythonthings/docker-python/raw/refs/heads/master/Python-([^ |