From f3b4c830f502defcf643179863e49c14d4c92334 Mon Sep 17 00:00:00 2001 From: Riccardo Pittau Date: Wed, 27 Mar 2024 14:31:58 +0100 Subject: [PATCH] Update setup and tox config Change-Id: Ie14902a25f7bc958683ea9acad42970e533995a8 --- setup.cfg | 5 +++-- sushy_oem_idrac/resources/manager/manager.py | 2 +- tox.ini | 12 +++++++----- 3 files changed, 11 insertions(+), 8 deletions(-) diff --git a/setup.cfg b/setup.cfg index 3b6f08a..3a822a0 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,6 +7,7 @@ long_description_content_type = text/markdown author = OpenStack author_email = openstack-discuss@lists.openstack.org home_page = https://docs.openstack.org/sushy/latest/ +python_requires = >=3.8 classifier = Environment :: OpenStack Intended Audience :: Information Technology @@ -16,10 +17,10 @@ classifier = Programming Language :: Python Programming Language :: Python :: 3 :: Only Programming Language :: Python :: 3 - Programming Language :: Python :: 3.6 - 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 [files] packages = diff --git a/sushy_oem_idrac/resources/manager/manager.py b/sushy_oem_idrac/resources/manager/manager.py index 2cd965e..4c4c1a2 100644 --- a/sushy_oem_idrac/resources/manager/manager.py +++ b/sushy_oem_idrac/resources/manager/manager.py @@ -138,7 +138,7 @@ VFDD\ @property @sushy_utils.cache_it def idrac_card_service(self): - """Property to reference `DelliDRACCardService` instance of this manager. + """Reference to `DelliDRACCardService` instance of this manager. """ path = sushy_utils.get_sub_resource_path_by( diff --git a/tox.ini b/tox.ini index dc17b74..64b2ef1 100644 --- a/tox.ini +++ b/tox.ini @@ -1,12 +1,13 @@ [tox] -minversion = 3.18.0 +minversion = 4.4.0 envlist = py3,pep8 ignore_basepython_conflict=true [testenv] +basepython = python3 +constrain_package_deps = true usedevelop = True install_command = pip install {opts} {packages} -basepython = python3 setenv = VIRTUAL_ENV={envdir} PYTHONWARNINGS=default::DeprecationWarning @@ -18,9 +19,10 @@ commands = stestr run --slowest {posargs} [testenv:pep8] deps = - hacking>=4.1.0,<5.0.0 # Apache-2.0 - flake8-import-order>=0.17.1 # LGPLv3 - pycodestyle>=2.0.0,<3.0.0 # MIT + hacking~=6.0.0 # Apache-2.0 + flake8-import-order>=0.17.1 # LGPLv3 + pycodestyle>=2.0.0,<3.0.0 # MIT + -c{env:TOX_CONSTRAINTS_FILE:https://releases.openstack.org/constraints/upper/master} commands = flake8 {posargs} [testenv:venv]