From 7050cb7d3689be8eccf6312f3541b286441fc58f Mon Sep 17 00:00:00 2001 From: Rust Saiargaliev Date: Fri, 28 Oct 2022 12:16:35 +0200 Subject: [PATCH] Add support for Python 3.11.0 It was just released on Oct. 24, 2022: https://www.python.org/downloads/release/python-3110/ --- Dockerfile | 6 +++--- python/helpers/build | 2 +- python/lib/dependabot/python/python_versions.rb | 3 ++- .../python/update_checker/pipenv_version_resolver_spec.rb | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index bda1da5cf84..1ddc962cb6d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -105,10 +105,10 @@ ENV PYENV_ROOT=/usr/local/.pyenv \ PATH="/usr/local/.pyenv/bin:$PATH" RUN mkdir -p "$PYENV_ROOT" && chown dependabot:dependabot "$PYENV_ROOT" USER dependabot -RUN git -c advice.detachedHead=false clone https://github.com/pyenv/pyenv.git --branch v2.3.5 --single-branch --depth=1 /usr/local/.pyenv \ +RUN git -c advice.detachedHead=false clone https://github.com/pyenv/pyenv.git --branch v2.3.6 --single-branch --depth=1 /usr/local/.pyenv \ # This is the version of CPython that gets installed - && pyenv install 3.10.7 \ - && pyenv global 3.10.7 \ + && pyenv install 3.11.0 \ + && pyenv global 3.11.0 \ && rm -Rf /tmp/python-build* USER root diff --git a/python/helpers/build b/python/helpers/build index 485c3e8a35a..d28e0d92962 100755 --- a/python/helpers/build +++ b/python/helpers/build @@ -18,4 +18,4 @@ cp -r \ "$install_dir" cd "$install_dir" -PYENV_VERSION=3.10.7 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt" +PYENV_VERSION=3.11.0 pyenv exec pip --disable-pip-version-check install --use-pep517 -r "requirements.txt" diff --git a/python/lib/dependabot/python/python_versions.rb b/python/lib/dependabot/python/python_versions.rb index 555e2469580..e690e32b9ac 100644 --- a/python/lib/dependabot/python/python_versions.rb +++ b/python/lib/dependabot/python/python_versions.rb @@ -4,12 +4,13 @@ module Dependabot module Python module PythonVersions PRE_INSTALLED_PYTHON_VERSIONS = %w( - 3.10.7 + 3.11.0 ).freeze # Due to an OpenSSL issue we can only install the following versions in # the Dependabot container. SUPPORTED_VERSIONS = %w( + 3.11.0 3.10.7 3.10.6 3.10.5 3.10.4 3.10.3 3.10.2 3.10.1 3.10.0 3.9.14 3.9.13 3.9.12 3.9.11 3.9.10 3.9.9 3.9.8 3.9.7 3.9.6 3.9.5 3.9.4 3.9.2 3.9.1 3.9.0 3.8.14 3.8.13 3.8.12 3.8.11 3.8.10 3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 3.8.2 3.8.1 3.8.0 diff --git a/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb b/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb index 1c0afacba90..3143f01e843 100644 --- a/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb +++ b/python/spec/dependabot/python/update_checker/pipenv_version_resolver_spec.rb @@ -218,7 +218,7 @@ to start_with("Dependabot detected the following Python") expect(error.message).to include("3.4.*") expect(error.message). - to include("supported in Dependabot: 3.10.7, 3.10.6, 3.10.5") + to include("supported in Dependabot: 3.11.0, 3.10.7, 3.10.6") end end end