Merge pull request #7944 from docker/bump-deps

Bump dependencies
This commit is contained in:
Anca Iordache 2020-11-26 19:46:39 +01:00 committed by GitHub
commit 5c6c300ba5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 33 additions and 29 deletions

View File

@ -17,7 +17,7 @@
sha: v1.3.4 sha: v1.3.4
hooks: hooks:
- id: reorder-python-imports - id: reorder-python-imports
language_version: 'python3.7' language_version: 'python3.9'
args: args:
- --py3-plus - --py3-plus
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade

View File

@ -1,11 +1,13 @@
ARG DOCKER_VERSION=19.03.8 ARG DOCKER_VERSION=19.03
ARG PYTHON_VERSION=3.7.7 ARG PYTHON_VERSION=3.9.0
ARG BUILD_ALPINE_VERSION=3.11
ARG BUILD_ALPINE_VERSION=3.12
ARG BUILD_CENTOS_VERSION=7 ARG BUILD_CENTOS_VERSION=7
ARG BUILD_DEBIAN_VERSION=slim-stretch ARG BUILD_DEBIAN_VERSION=slim-buster
ARG RUNTIME_ALPINE_VERSION=3.11.5
ARG RUNTIME_ALPINE_VERSION=3.12
ARG RUNTIME_CENTOS_VERSION=7 ARG RUNTIME_CENTOS_VERSION=7
ARG RUNTIME_DEBIAN_VERSION=stretch-20200414-slim ARG RUNTIME_DEBIAN_VERSION=buster-slim
ARG DISTRO=alpine ARG DISTRO=alpine
@ -36,7 +38,7 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
git \ git \
libc-dev \ libc-dev \
libffi-dev \ libffi-dev \
libgcc-6-dev \ libgcc-8-dev \
libssl-dev \ libssl-dev \
make \ make \
openssl \ openssl \
@ -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" \ && ./configure --enable-optimizations --enable-shared --prefix=/usr LDFLAGS="-Wl,-rpath /usr/lib" \
&& make altinstall && make altinstall
RUN alternatives --install /usr/bin/python python /usr/bin/python2.7 50 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 - RUN curl https://bootstrap.pypa.io/get-pip.py | python -
FROM build-${DISTRO} AS build FROM build-${DISTRO} AS build

4
Jenkinsfile vendored
View File

@ -1,8 +1,8 @@
#!groovy #!groovy
def dockerVersions = ['19.03.8'] def dockerVersions = ['19.03.13']
def baseImages = ['alpine', 'debian'] def baseImages = ['alpine', 'debian']
def pythonVersions = ['py37'] def pythonVersions = ['py39']
pipeline { pipeline {
agent none agent none

View File

@ -1,8 +1,8 @@
#!groovy #!groovy
def dockerVersions = ['19.03.8', '18.09.9'] def dockerVersions = ['19.03.13', '18.09.9']
def baseImages = ['alpine', 'debian'] def baseImages = ['alpine', 'debian']
def pythonVersions = ['py37'] def pythonVersions = ['py39']
pipeline { pipeline {
agent none agent none
@ -84,7 +84,7 @@ pipeline {
steps { steps {
checkout scm checkout scm
sh './script/setup/osx' sh './script/setup/osx'
sh 'tox -e py37 -- tests/unit' sh 'tox -e py39 -- tests/unit'
sh './script/build/osx' sh './script/build/osx'
dir ('dist') { dir ('dist') {
checksum('docker-compose-Darwin-x86_64') checksum('docker-compose-Darwin-x86_64')
@ -121,7 +121,7 @@ pipeline {
} }
steps { steps {
checkout scm checkout scm
bat 'tox.exe -e py37 -- tests/unit' bat 'tox.exe -e py39 -- tests/unit'
powershell '.\\script\\build\\windows.ps1' powershell '.\\script\\build\\windows.ps1'
dir ('dist') { dir ('dist') {
checksum('docker-compose-Windows-x86_64.exe') checksum('docker-compose-Windows-x86_64.exe')

View File

@ -1 +1 @@
pyinstaller==3.6 pyinstaller==4.1

View File

@ -3,7 +3,7 @@ appdirs==1.4.4
attrs==20.1.0 attrs==20.1.0
bcrypt==3.1.7 bcrypt==3.1.7
cffi==1.14.1 cffi==1.14.1
cryptography==3.0 cryptography==3.2
distlib==0.3.1 distlib==0.3.1
entrypoints==0.3 entrypoints==0.3
filelock==3.0.12 filelock==3.0.12

View File

@ -3,7 +3,7 @@
set -ex set -ex
CODE_PATH=/code CODE_PATH=/code
VENV="${CODE_PATH}"/.tox/py37 VENV="${CODE_PATH}"/.tox/py39
cd "${CODE_PATH}" cd "${CODE_PATH}"
mkdir -p dist mkdir -p dist
@ -24,7 +24,7 @@ if [ ! -z "${BUILD_BOOTLOADER}" ]; then
git clone --single-branch --branch develop https://github.com/pyinstaller/pyinstaller.git /tmp/pyinstaller git clone --single-branch --branch develop https://github.com/pyinstaller/pyinstaller.git /tmp/pyinstaller
cd /tmp/pyinstaller/bootloader cd /tmp/pyinstaller/bootloader
# Checkout commit corresponding to version in requirements-build # 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/python3 ./waf configure --no-lsb all
"${VENV}"/bin/pip3 install .. "${VENV}"/bin/pip3 install ..
cd "${CODE_PATH}" cd "${CODE_PATH}"

View File

@ -6,11 +6,11 @@
# #
# http://git-scm.com/download/win # http://git-scm.com/download/win
# #
# 2. Install Python 3.7.x: # 2. Install Python 3.9.x:
# #
# https://www.python.org/downloads/ # 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 # https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sysdm_advancd_environmnt_addchange_variable.mspx?mfr=true
# #
@ -39,7 +39,7 @@ if (Test-Path venv) {
Get-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName } Get-ChildItem -Recurse -Include *.pyc | foreach ($_) { Remove-Item $_.FullName }
# Create virtualenv # 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 # pip and pyinstaller generate lots of warnings, so we need to ignore them
$ErrorActionPreference = "Continue" $ErrorActionPreference = "Continue"

View File

@ -13,13 +13,13 @@ if ! [ ${DEPLOYMENT_TARGET} == "$(macos_version)" ]; then
SDK_SHA1=dd228a335194e3392f1904ce49aff1b1da26ca62 SDK_SHA1=dd228a335194e3392f1904ce49aff1b1da26ca62
fi fi
OPENSSL_VERSION=1.1.1g OPENSSL_VERSION=1.1.1h
OPENSSL_URL=https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz 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_URL=https://www.python.org/ftp/python/${PYTHON_VERSION}/Python-${PYTHON_VERSION}.tgz
PYTHON_SHA1=8e9968663a214aea29659ba9dfa959e8a7d82b39 PYTHON_SHA1=5744a10ba989d2badacbab3c00cdcb83c83106c7
# #
# Install prerequisites. # Install prerequisites.

View File

@ -11,7 +11,7 @@ docker run --rm \
"$TAG" tox -e pre-commit "$TAG" tox -e pre-commit
get_versions="docker run --rm get_versions="docker run --rm
--entrypoint=/code/.tox/py37/bin/python --entrypoint=/code/.tox/py39/bin/python
$TAG $TAG
/code/script/test/versions.py docker/docker-ce,moby/moby" /code/script/test/versions.py docker/docker-ce,moby/moby"
@ -23,7 +23,7 @@ fi
BUILD_NUMBER=${BUILD_NUMBER-$USER} 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 for version in $DOCKER_VERSIONS; do
>&2 echo "Running tests against Docker $version" >&2 echo "Running tests against Docker $version"

View File

@ -102,5 +102,7 @@ setup(
'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7', 'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
], ],
) )

View File

@ -1,5 +1,5 @@
[tox] [tox]
envlist = py37,pre-commit envlist = py39,pre-commit
[testenv] [testenv]
usedevelop=True usedevelop=True