Skip to content
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
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]

steps:
- uses: actions/checkout@v3
Expand All @@ -27,7 +27,7 @@ jobs:

- name: Test using tox
run: |
tox -s -e "py37,py38,py39,py310,py311"
tox -s -e "py39,py310,py311,py312,py313"

# - name: Test Summary
# uses: test-summary/action@v1
Expand All @@ -45,7 +45,7 @@ jobs:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.13"

- name: Install dependencies
run: |
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM fedora:34 AS base
FROM fedora:42 AS base

RUN dnf -y update && dnf clean all
RUN dnf -y install python3.7 python3.8 python3.9 python3.10 python3.11 tox git && dnf clean all
RUN dnf -y install python3.9 python3.10 python3.11 python3.12 python3.13 tox git && dnf clean all
RUN python3 -m pip install --upgrade build twine mkdocs && dnf clean all

FROM base AS build
Expand Down Expand Up @@ -30,4 +30,4 @@ FROM build AS build_package
RUN python3 -m build && twine check dist/*

FROM scratch AS package
COPY --from=build_package /src/dist/ /
COPY --from=build_package /src/dist/ /
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Features
Requirements
------------

* Requires python3 >= 3.6, pexpect, pyeapi
* Requires python3 >= 3.9, pexpect, pyeapi
* Network devices under test (DUTs) must be accessible via SSH.


Expand Down Expand Up @@ -248,4 +248,4 @@ Distributed under the terms of the [BSD-3](http://opensource.org/licenses/BSD-3-
Issues
------

If you encounter any problems, please [file an issue](https://github.com/dcasnowdon-anet/pytest-netdut/issues) along with a detailed description.
If you encounter any problems, please [file an issue](https://github.com/aristanetworks/pytest-netdut/issues) along with a detailed description.
6 changes: 5 additions & 1 deletion src/pytest_netdut/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ def create(name) -> Callable:
]

for fixture in fixtures:
globals()[fixture._pytestfixturefunction.name] = fixture
try:
globals()[fixture.name] = fixture
except AttributeError:
# For pytest < 8.4.0
globals()[fixture._pytestfixturefunction.name] = fixture

return fixtures[0]

Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
isolated_build = True
envlist = py37,py38,py39,py310,py311,black,prospector,tmpblack
envlist = py39,py310,py311,py312,py313,black,prospector,tmpblack

[testenv]
deps =
Expand Down