Skip to content

Commit

Permalink
Prevent venv initialization error with py39
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea committed Nov 14, 2024
1 parent 1efa595 commit fe8a741
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.entry.python }}
# tox-ansible requires python 3.10 but it can be used to test with
# older versions of python.
python-version: |
3.10
${{ matrix.entry.python }}
- name: Install tox-ansible, includes tox
run: python3 -m pip install .
Expand Down
8 changes: 5 additions & 3 deletions src/tox_ansible/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@
{integration, sanity, unit}-py3.13-{2.18, milestone, devel}
"""
TOX_WORK_DIR = Path()
# Without the minimal pytest-ansible condition, installation may fail in some
# cases (pip, uv).
OUR_DEPS = [
"pytest",
"pytest-xdist",
"pytest-ansible",
"pytest>=7.4.3", # Oct 2023
"pytest-xdist>=3.4.0", # Nov 2023
"pytest-ansible>=v4.1.1", # latest version still supporting py39 (Oct 2023)
]

T = TypeVar("T", bound=ConfigSet)
Expand Down

0 comments on commit fe8a741

Please sign in to comment.