From b48803935dae968b192abbcb055ffb9847373f07 Mon Sep 17 00:00:00 2001 From: borntohonk <6264306+borntohonk@users.noreply.github.com> Date: Sat, 14 Dec 2024 09:04:07 +0100 Subject: [PATCH] Update tox to not use deprecated testpoint --- medusa/updater/update_manager.py | 3 ++- requirements.txt | 1 + test_requirements.txt | 1 + tox.ini | 4 ++-- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/medusa/updater/update_manager.py b/medusa/updater/update_manager.py index 4b17e5ee5e..b5ab28fdcb 100644 --- a/medusa/updater/update_manager.py +++ b/medusa/updater/update_manager.py @@ -3,13 +3,14 @@ from __future__ import unicode_literals import logging -from packaging.version import Version from github import GithubException from medusa import app from medusa.logger.adapters.style import BraceAdapter +from packaging.version import Version + from requests.exceptions import RequestException diff --git a/requirements.txt b/requirements.txt index 413f200ec0..2fa94b28da 100644 --- a/requirements.txt +++ b/requirements.txt @@ -19,6 +19,7 @@ jsonrpclib-pelix==0.4.3.2 knowit==0.4.0 Mako==1.2.4 markdown2==2.4.13 +packaging==24.2 profilehooks==1.12.0 PyGithub==1.45 PyJWT==2.7.0 diff --git a/test_requirements.txt b/test_requirements.txt index 3f2d489dbb..22d25e90da 100644 --- a/test_requirements.txt +++ b/test_requirements.txt @@ -6,6 +6,7 @@ pycodestyle==2.8.0 flake8-docstrings==1.7.0 flake8-import-order==0.18.2 flake8-quotes==3.3.2 +packaging pep8-naming==0.13.2 pytest>=6.2.5 pytest-cov==4.1.0 diff --git a/tox.ini b/tox.ini index 946953af09..ed68f76e3a 100644 --- a/tox.ini +++ b/tox.ini @@ -18,11 +18,11 @@ deps = pytest -rtest_requirements.txt commands = - python setup.py test -a "{posargs:tests} --cov=medusa --cov-report=xml" + pytest {posargs:tests} --cov=medusa --cov-report=xml [testenv:lint] deps = pytest -rtest_requirements.txt commands = - python setup.py test -a "medusa --flake8" + pytest medusa --flake8