Skip to content

Commit

Permalink
Require minimum python version to 3.9 (#201)
Browse files Browse the repository at this point in the history
* Upgrade minimum python version to 3.9
  • Loading branch information
cristianonicolai authored Oct 20, 2023
1 parent e1fb10b commit e2116e4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
id: generate_matrix
uses: coactions/dynamic-matrix@v1
with:
min_python: "3.7"
min_python: "3.9"
max_python: "3.12"
other_names: |
lint
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To use `pytest-ansible-units`, follow these steps:
pip install pytest-ansible
```

2. Ensure you have Python 3.8 or greater, ansible-core, and pyyaml installed.
2. Ensure you have Python 3.9 or greater, ansible-core, and pyyaml installed.

3. Depending on your preferred directory structure, you can clone collections
into the appropriate paths.
Expand Down
6 changes: 2 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"

[project]
# https://peps.python.org/pep-0621/#readme
requires-python = ">=3.7"
requires-python = ">=3.9"
dynamic = ["version", "dependencies", "optional-dependencies"]
name = "pytest-ansible"
description = "Plugin for pytest to simplify calling ansible modules from tests or fixtures"
Expand All @@ -26,8 +26,6 @@ classifiers = [
'Topic :: Utilities',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
Expand Down Expand Up @@ -160,7 +158,7 @@ ignore = [
"T",
"TRY",
]
target-version = "py37"
target-version = "py39"
# Same as Black.
line-length = 88

Expand Down
2 changes: 1 addition & 1 deletion src/pytest_ansible/module_dispatcher/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""Define BaseModuleDispatcher class."""

from typing import Sequence
from collections.abc import Sequence

from pytest_ansible.errors import AnsibleModuleError

Expand Down
2 changes: 0 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ setenv =
ANSIBLE_LOCAL_TEMP = {envdir}/.ansible-local
PIP_CONSTRAINT = {toxinidir}/.config/requirements.txt
devel: PIP_CONSTRAINT = /dev/null
py37: PIP_CONSTRAINT = /dev/null
py38: PIP_CONSTRAINT = /dev/null
extras =
test
allowlist_externals =
Expand Down

0 comments on commit e2116e4

Please sign in to comment.