Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Require minimum python version to 3.9 #201

Merged
merged 3 commits into from
Oct 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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