Skip to content

Commit 470af30

Browse files
Upgrade minimum Python to 3.10
1 parent 0fd2da8 commit 470af30

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
TOXENV: pkg
1919

2020
steps:
21-
- name: Switch to using Python 3.9 by default
21+
- name: Switch to using Python 3.10 by default
2222
uses: actions/setup-python@v5
2323
with:
24-
python-version: 3.9
24+
python-version: 3.10
2525

2626
- name: Install tox
2727
run: python3 -m pip install --user "tox>=4.0.0"

.github/workflows/tox.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@ jobs:
2828
id: generate_matrix
2929
uses: coactions/dynamic-matrix@v1
3030
with:
31-
min_python: "3.9"
32-
max_python: "3.11"
31+
default_python: "3.10"
32+
min_python: "3.10"
33+
max_python: "3.12"
3334
other_names: |
3435
lint
3536
docs
36-
# platforms: linux,macos
37+
platforms: linux,macos
3738

3839
build:
3940
name: ${{ matrix.name }}
@@ -70,11 +71,11 @@ jobs:
7071
examples/playbooks/collections/ansible_collections
7172
key: galaxy-${{ hashFiles('examples/playbooks/collections/requirements.yml') }}
7273

73-
- name: Set up Python ${{ matrix.python_version || '3.9' }}
74+
- name: Set up Python ${{ matrix.python_version || '3.10' }}
7475
uses: actions/setup-python@v5
7576
with:
7677
cache: pip
77-
python-version: ${{ matrix.python_version || '3.9' }}
78+
python-version: ${{ matrix.python_version || '3.10' }}
7879

7980
- name: Install tox
8081
run: |

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ repos:
118118
entry: pip-compile --upgrade --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --strip-extras --unsafe-package ruamel-yaml-clib
119119
files: ^.config\/requirements.*$
120120
language: python
121-
language_version: "3.9" # minimal we support officially
121+
language_version: "3.10" # minimal we support officially
122122
pass_filenames: false
123123
stages: [manual]
124124
additional_dependencies:
@@ -130,7 +130,7 @@ repos:
130130
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --strip-extras --unsafe-package ruamel-yaml-clib
131131
files: ^.config\/requirements.*$
132132
language: python
133-
language_version: "3.9" # minimal we support officially
133+
language_version: "3.10" # minimal we support officially
134134
pass_filenames: false
135135
additional_dependencies:
136136
- pip>=22.3.1

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repo_url: https://github.com/ansible/mkdocs-ansible
1111
edit_uri: blob/main/docs/
1212

1313
# Copyright
14-
copyright: Copyright 2023 Red Hat Inc
14+
copyright: Copyright 2024 Red Hat Inc
1515

1616
# Configuration
1717
theme:

pyproject.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires = [
77
build-backend = "setuptools.build_meta"
88

99
[project]
10-
requires-python = ">=3.9"
10+
requires-python = ">=3.10"
1111
dynamic = ["version", "dependencies", "optional-dependencies"]
1212
name = "mkdocs-ansible"
1313
description = "Ansible MkDocs Theme based on mkdocs-material"
@@ -22,6 +22,9 @@ classifiers = [
2222
"License :: OSI Approved :: MIT License",
2323
"Programming Language :: JavaScript",
2424
"Programming Language :: Python",
25+
'Programming Language :: Python :: 3.10',
26+
'Programming Language :: Python :: 3.11',
27+
'Programming Language :: Python :: 3.12',
2528
"Topic :: Documentation",
2629
"Topic :: Software Development :: Documentation",
2730
"Topic :: Text Processing :: Markup :: HTML",
@@ -39,7 +42,7 @@ ansible = "mkdocs_ansible"
3942

4043
[tool.mypy]
4144
strict = true
42-
python_version = "3.9"
45+
python_version = "3.10"
4346
warn_unused_configs = true
4447
exclude = ['build']
4548

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ allowlist_externals =
3939
description = Run all linters
4040
# pip compile includes python version in output constraints, so we want to
4141
# be sure that version does not change randomly.
42-
basepython = python3.9
42+
basepython = python3.10
4343
deps =
4444
pre-commit>=2.6.0
4545
setuptools>=51.1.1
@@ -59,7 +59,7 @@ description = Bump all test dependencies
5959
# we reuse the lint environment
6060
envdir = {toxworkdir}/lint
6161
skip_install = true
62-
basepython = python3.9
62+
basepython = python3.10
6363
deps =
6464
{[testenv:lint]deps}
6565
setenv =

0 commit comments

Comments
 (0)