Skip to content

Commit

Permalink
Merge pull request docker#7944 from docker/bump-deps
Browse files Browse the repository at this point in the history
Bump dependencies
  • Loading branch information
aiordache committed Nov 26, 2020
2 parents be85237 + a3e6e28 commit 5c6c300
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
sha: v1.3.4
hooks:
- id: reorder-python-imports
language_version: 'python3.7'
language_version: 'python3.9'
args:
- --py3-plus
- repo: https://github.com/asottile/pyupgrade
Expand Down
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
ARG DOCKER_VERSION=19.03.8
ARG PYTHON_VERSION=3.7.7
ARG BUILD_ALPINE_VERSION=3.11
ARG DOCKER_VERSION=19.03
ARG PYTHON_VERSION=3.9.0

ARG BUILD_ALPINE_VERSION=3.12
ARG BUILD_CENTOS_VERSION=7
ARG BUILD_DEBIAN_VERSION=slim-stretch
ARG RUNTIME_ALPINE_VERSION=3.11.5
ARG BUILD_DEBIAN_VERSION=slim-buster

ARG RUNTIME_ALPINE_VERSION=3.12
ARG RUNTIME_CENTOS_VERSION=7
ARG RUNTIME_DEBIAN_VERSION=stretch-20200414-slim
ARG RUNTIME_DEBIAN_VERSION=buster-slim

ARG DISTRO=alpine

Expand Down Expand Up @@ -36,7 +38,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
git \
libc-dev \
libffi-dev \
libgcc-6-dev \
libgcc-8-dev \
libssl-dev \
make \
openssl \
Expand All @@ -57,7 +59,7 @@ RUN curl -L https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_
&& ./configure --enable-optimizations --enable-shared --prefix=/usr LDFLAGS="-Wl,-rpath /usr/lib" \
&& make altinstall
RUN alternatives --install /usr/bin/python python /usr/bin/python2.7 50
RUN alternatives --install /usr/bin/python python /usr/bin/python3.7 60
RUN alternatives --install /usr/bin/python python /usr/bin/python$(echo "${PYTHON_VERSION}" | cut -c1-3) 60
RUN curl https://bootstrap.pypa.io/get-pip.py | python -

FROM build-${DISTRO} AS build
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!groovy

def dockerVersions = ['19.03.8']
def dockerVersions = ['19.03.13']
def baseImages = ['alpine', 'debian']
def pythonVersions = ['py37']
def pythonVersions = ['py39']

pipeline {
agent none
Expand Down
8 changes: 4 additions & 4 deletions Release.Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!groovy

def dockerVersions = ['19.03.8', '18.09.9']
def dockerVersions = ['19.03.13', '18.09.9']
def baseImages = ['alpine', 'debian']
def pythonVersions = ['py37']
def pythonVersions = ['py39']

pipeline {
agent none
Expand Down Expand Up @@ -84,7 +84,7 @@ pipeline {
steps {
checkout scm
sh './script/setup/osx'
sh 'tox -e py37 -- tests/unit'
sh 'tox -e py39 -- tests/unit'
sh './script/build/osx'
dir ('dist') {
checksum('docker-compose-Darwin-x86_64')
Expand Down Expand Up @@ -121,7 +121,7 @@ pipeline {
}
steps {
checkout scm
bat 'tox.exe -e py37 -- tests/unit'
bat 'tox.exe -e py39 -- tests/unit'
powershell '.\\script\\build\\windows.ps1'
dir ('dist') {
checksum('docker-compose-Windows-x86_64.exe')
Expand Down
2 changes: 1 addition & 1 deletion requirements-build.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pyinstaller==3.6
pyinstaller==4.1
2 changes: 1 addition & 1 deletion requirements-indirect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ appdirs==1.4.4
attrs==20.1.0
bcrypt==3.1.7
cffi==1.14.1
cryptography==3.0
cryptography==3.2
distlib==0.3.1
entrypoints==0.3
filelock==3.0.12
Expand Down
4 changes: 2 additions & 2 deletions script/build/linux-entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -ex

CODE_PATH=/code
VENV="${CODE_PATH}"/.tox/py37
VENV="${CODE_PATH}"/.tox/py39

cd "${CODE_PATH}"
mkdir -p dist
Expand All @@ -24,7 +24,7 @@ if [ ! -z "${BUILD_BOOTLOADER}" ]; then
git clone --single-branch --branch develop https://github.com/pyinstaller/pyinstaller.git /tmp/pyinstaller
cd /tmp/pyinstaller/bootloader
# Checkout commit corresponding to version in requirements-build
git checkout v3.6
git checkout v4.1
"${VENV}"/bin/python3 ./waf configure --no-lsb all
"${VENV}"/bin/pip3 install ..
cd "${CODE_PATH}"
Expand Down
6 changes: 3 additions & 3 deletions script/build/windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
#
# http://git-scm.com/download/win
#
# 2. Install Python 3.7.x:
# 2. Install Python 3.9.x:
#
# https://www.python.org/downloads/
#
# 3. Append ";C:\Python37;C:\Python37\Scripts" to the "Path" environment variable:
# 3. Append ";C:\Python39;C:\Python39\Scripts" to the "Path" environment variable:
#
# https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true
#
Expand Down Expand Up @@ -39,7 +39,7 @@ if (Test-Path venv) {
Get-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName }

# Create virtualenv
virtualenv -p C:\Python37\python.exe .\venv
virtualenv -p C:\Python39\python.exe .\venv

# pip and pyinstaller generate lots of warnings, so we need to ignore them
$ErrorActionPreference = "Continue"
Expand Down
8 changes: 4 additions & 4 deletions script/setup/osx
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ if ! [ ${DEPLOYMENT_TARGET} == "$(macos_version)" ]; then
SDK_SHA1=dd228a335194e3392f1904ce49aff1b1da26ca62
fi

OPENSSL_VERSION=1.1.1g
OPENSSL_VERSION=1.1.1h
OPENSSL_URL=https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz
OPENSSL_SHA1=b213a293f2127ec3e323fb3cfc0c9807664fd997
OPENSSL_SHA1=8d0d099e8973ec851368c8c775e05e1eadca1794

PYTHON_VERSION=3.7.7
PYTHON_VERSION=3.9.0
PYTHON_URL=https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
PYTHON_SHA1=8e9968663a214aea29659ba9dfa959e8a7d82b39
PYTHON_SHA1=5744a10ba989d2badacbab3c00cdcb83c83106c7

#
# Install prerequisites.
Expand Down
4 changes: 2 additions & 2 deletions script/test/all
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker run --rm \
"$TAG" tox -e pre-commit

get_versions="docker run --rm
--entrypoint=/code/.tox/py37/bin/python
--entrypoint=/code/.tox/py39/bin/python
$TAG
/code/script/test/versions.py docker/docker-ce,moby/moby"

Expand All @@ -23,7 +23,7 @@ fi


BUILD_NUMBER=${BUILD_NUMBER-$USER}
PY_TEST_VERSIONS=${PY_TEST_VERSIONS:-py37}
PY_TEST_VERSIONS=${PY_TEST_VERSIONS:-py39}

for version in $DOCKER_VERSIONS; do
>&2 echo "Running tests against Docker $version"
Expand Down
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,5 +102,7 @@ def find_version(*file_paths):
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
],
)
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py37,pre-commit
envlist = py39,pre-commit

[testenv]
usedevelop=True
Expand Down

0 comments on commit 5c6c300

Please sign in to comment.