From 5e78053691e5a27dacdbf168b0e17845b0175fa1 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Mon, 16 Dec 2024 14:30:54 +0000 Subject: [PATCH] Switch reference python version to 3.11 While we still require python 3.10, the lock files are created only for 3.11 in order to be able use newest ansible-core version. --- .github/workflows/tox.yml | 6 +++--- .pre-commit-config.yaml | 5 ++++- tox.ini | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 9e3efbf..66ef45b 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -32,7 +32,7 @@ jobs: with: run_pre: ./tools/test-setup.sh max_python: "3.13" - default_python: "3.10" # min version, for 'lint' in particular + default_python: "3.11" # min version, for 'lint' in particular jobs_producing_coverage: 8 other_names_also: | devspaces @@ -127,10 +127,10 @@ jobs: TOXENV: pkg TOX_EXTRA_BINDEP: 0 steps: - - name: Switch to using Python 3.10 by default + - name: Switch to using Python 3.11 by default uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: python3 -m pip install --user "tox>=4.0.0" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8494003..1436c59 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,7 +12,10 @@ ci: default_language_version: # minimal version we support officially as this will impact mypy, pylint and # pip-tools in undesirable ways. - python: "3.10" + # minimal version determined by minimal version required by ansible-core, but + # we might keep a backwards compatibility version for older ones, but the + # lock extra will not be usable those. + python: "3.11" repos: # - repo: https://github.com/rhysd/actionlint # rev: v1.7.3 diff --git a/tox.ini b/tox.ini index 5606fa1..6f3079e 100644 --- a/tox.ini +++ b/tox.ini @@ -53,7 +53,7 @@ allowlist_externals = [testenv:deps] description = Bump all dependencies -base_python = python3.10 +base_python = python3.11 skip_install = true deps = {[testenv:lint]deps}