From 327b0ffe2a1dbf2c448efe4782b058160c53cb04 Mon Sep 17 00:00:00 2001 From: Sorin Sbarnea Date: Thu, 7 Dec 2023 19:07:38 +0000 Subject: [PATCH] Switch default python from 3.9 to 3.10 --- .config/constraints.txt | 2 +- .config/lock-requirements.txt | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/tox.yml | 4 ++-- .pre-commit-config.yaml | 6 +++--- tox.ini | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.config/constraints.txt b/.config/constraints.txt index c626f86a..91aa8052 100644 --- a/.config/constraints.txt +++ b/.config/constraints.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/constraints.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml diff --git a/.config/lock-requirements.txt b/.config/lock-requirements.txt index e6568e3d..14c5c1b2 100644 --- a/.config/lock-requirements.txt +++ b/.config/lock-requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.9 +# This file is autogenerated by pip-compile with Python 3.10 # by the following command: # # pip-compile --no-annotate --output-file=.config/lock-requirements.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c8b6f8da..7ce7149b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,10 +20,10 @@ jobs: TOXENV: pkg steps: - - name: Switch to using Python 3.9 by default + - name: Switch to using Python 3.10 by default uses: actions/setup-python@v5 with: - python-version: 3.9 + python-version: "3.10" - name: Install tox run: python3 -m pip install --user "tox>=4.0.0" diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 500fd7d6..1fcff2bb 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -79,12 +79,12 @@ jobs: examples/playbooks/collections/ansible_collections key: galaxy-${{ hashFiles('examples/playbooks/collections/requirements.yml') }} - - name: Set up Python ${{ matrix.python_version || '3.9' }} + - name: Set up Python ${{ matrix.python_version || '3.10' }} if: "!contains(matrix.shell, 'wsl')" uses: actions/setup-python@v5 with: cache: pip - python-version: ${{ matrix.python_version || '3.9' }} + python-version: ${{ matrix.python_version || '3.10' }} - name: Install tox run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e8a8c3c1..9fe13b0d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -95,7 +95,7 @@ repos: entry: pip-compile --upgrade --resolver=backtracking -q --no-annotate --output-file=.config/lock-requirements.txt pyproject.toml --strip-extras --unsafe-package ruamel-yaml-clib files: ^.config\/.*requirements.*$ language: python - language_version: "3.9" # minimal we support officially + language_version: "3.10" # minimal we support officially pass_filenames: false stages: [manual] additional_dependencies: @@ -107,7 +107,7 @@ repos: entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/constraints.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib files: ^.config\/.*requirements.*$ language: python - language_version: "3.9" # minimal we support officially + language_version: "3.10" # minimal we support officially pass_filenames: false additional_dependencies: - pip>=22.3.1 @@ -119,6 +119,6 @@ repos: files: ^.config\/.*requirements.*$ alias: up stages: [manual] - language_version: "3.9" # minimal we support officially + language_version: "3.10" # minimal we support officially additional_dependencies: - pip>=22.3.1 diff --git a/tox.ini b/tox.ini index 31f15ede..2fc5add2 100644 --- a/tox.ini +++ b/tox.ini @@ -39,7 +39,7 @@ setenv = COVERAGE_PROCESS_START={toxinidir}/pyproject.toml FORCE_COLOR = 1 PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt - devel: PIP_CONSTRAINT = /dev/null + devel,py39: PIP_CONSTRAINT = /dev/null extras = test allowlist_externals = @@ -74,7 +74,7 @@ description = Bump all test dependencies # we reuse the lint environment envdir = {toxworkdir}/lint skip_install = true -basepython = python3.9 +basepython = python3.10 deps = {[testenv:lint]deps} setenv =