Skip to content

Commit

Permalink
Switch reference python version to 3.11
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ssbarnea committed Dec 16, 2024
1 parent 6c14643 commit 5e78053
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down
5 changes: 4 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 5e78053

Please sign in to comment.