Skip to content

Commit 1805966

Browse files
committed
Require python>=3.11
1 parent 55c94c1 commit 1805966

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
TOXENV: pkg
2121

2222
steps:
23-
- name: Switch to using Python 3.10 by default
23+
- name: Switch to using Python 3.11 by default
2424
uses: actions/setup-python@v5
2525
with:
26-
python-version: "3.10"
26+
python-version: "3.11"
2727

2828
- name: Install tox
2929
run: python3 -m pip install --user "tox>=4.0.0"

.github/workflows/tox.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ jobs:
2323
tox:
2424
uses: ansible/team-devtools/.github/workflows/tox.yml@main
2525
with:
26-
jobs_producing_coverage: 6
26+
jobs_producing_coverage: 5
27+
min_python: "3.11"
2728
other_names: |
2829
docs
2930
lint

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ repos:
113113
name: Check constraints files and requirements
114114
files: ^(pyproject\.toml|\.config/.*)$
115115
language: python
116-
language_version: "3.10" # minimal we support officially
116+
language_version: "3.11" # minimal we support officially
117117
entry: python3 -m uv pip compile -q --all-extras --output-file=.config/constraints.txt pyproject.toml
118118
pass_filenames: false
119119
additional_dependencies:
@@ -125,7 +125,7 @@ repos:
125125
entry: python3 -m uv pip compile -q --upgrade --output-file=.config/requirements-lock.txt pyproject.toml --strip-extras
126126
files: ^(pyproject\.toml|\.config/.*)$
127127
language: python
128-
language_version: "3.10" # minimal we support officially
128+
language_version: "3.11" # minimal we support officially
129129
pass_filenames: false
130130
stages: [manual]
131131
additional_dependencies:

pyproject.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ classifiers = [
1414
"License :: OSI Approved :: MIT License",
1515
"Programming Language :: JavaScript",
1616
"Programming Language :: Python",
17-
'Programming Language :: Python :: 3.10',
1817
'Programming Language :: Python :: 3.11',
1918
'Programming Language :: Python :: 3.12',
2019
'Programming Language :: Python :: 3.13',
@@ -29,7 +28,7 @@ license = {text = "MIT"}
2928
maintainers = [{"email" = "[email protected]", "name" = "Ansible by Red Hat"}]
3029
name = "mkdocs-ansible"
3130
readme = "docs/README.md"
32-
requires-python = ">=3.10"
31+
requires-python = ">=3.11"
3332

3433
[project.entry-points."mkdocs.themes"]
3534
ansible = "mkdocs_ansible"
@@ -72,7 +71,7 @@ source = ["src"]
7271
[tool.mypy]
7372
exclude = "(.config|build|dist|test/local-content|site-packages|~/.pyenv|examples/playbooks/collections|plugins/modules)"
7473
# https://github.com/python/mypy/issues/12664
75-
python_version = "3.10"
74+
python_version = "3.11"
7675
strict = true
7776
warn_unused_configs = true
7877

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ commands_pre =
5252
sh -c "rm -f {env_dir}/.coverage.* 2>/dev/null || true"
5353
commands =
5454
coverage run -m pytest {posargs:}
55-
{py,py310,py311,py312,py313}: sh -c "coverage combine -q --data-file={env_dir}/.coverage {env_dir}/.coverage.* && coverage xml --data-file={env_dir}/.coverage -o {env_dir}/coverage.xml --ignore-errors --fail-under=0 && COVERAGE_FILE={env_dir}/.coverage coverage lcov --fail-under=0 --ignore-errors -q && COVERAGE_FILE={env_dir}/.coverage coverage report --fail-under=0 --ignore-errors"
55+
{py,py311,py312,py313}: sh -c "coverage combine -q --data-file={env_dir}/.coverage {env_dir}/.coverage.* && coverage xml --data-file={env_dir}/.coverage -o {env_dir}/coverage.xml --ignore-errors --fail-under=0 && COVERAGE_FILE={env_dir}/.coverage coverage lcov --fail-under=0 --ignore-errors -q && COVERAGE_FILE={env_dir}/.coverage coverage report --fail-under=0 --ignore-errors"
5656
allowlist_externals =
5757
sh
5858
editable = true
5959

6060
[testenv:lint]
6161
description = Run all linters
62-
base_python = python3.10
62+
base_python = python3.11
6363
skip_install = true
6464
deps =
6565
pre-commit>=4.0.1
@@ -108,7 +108,7 @@ commands =
108108

109109
[testenv:deps]
110110
description = Bump all test dependencies
111-
base_python = python3.10
111+
base_python = python3.11
112112
skip_install = true
113113
deps =
114114
{[testenv:lint]deps}

0 commit comments

Comments
 (0)