From: Casey Bodley Date: Thu, 23 May 2024 16:26:25 +0000 (-0400) Subject: replace deprecated nose dependency with pynose X-Git-Tag: 1.2.0~42^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1947%2Fhead;p=teuthology.git replace deprecated nose dependency with pynose after upgrading teuthology to centos 9 and python 3.10, the rgw multisite test suite now fails to invoke nosetests with: > AttributeError: module 'collections' has no attribute 'Callable' this is a known issue tracked in https://github.com/nose-devs/nose/issues/1127 Shilpa found a new 'pynose' package which claims that: > This version of nose is compatible with Python 3.7+ (including 3.13+). replace the nose dependency that i initially added in https://github.com/ceph/teuthology/pull/1069 with the current version 1.5.1 of pynose to prepare this pr, i first changed setup.cfg then ran: > ./update-requirements.sh -P "pynose==1.5.1" Fixes: https://tracker.ceph.com/issues/66183 Signed-off-by: Casey Bodley --- diff --git a/requirements.txt b/requirements.txt index 9c9c7306..121de7c4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with Python 3.11 +# This file is autogenerated by pip-compile with Python 3.12 # by the following command: # # pip-compile --extra=test pyproject.toml @@ -95,8 +95,6 @@ ndg-httpsclient==0.5.1 # via teuthology (pyproject.toml) netaddr==0.9.0 # via teuthology (pyproject.toml) -nose==1.3.7 - # via teuthology (pyproject.toml) packaging==23.2 # via # ansible-core @@ -138,6 +136,8 @@ pynacl==1.5.0 # via # paramiko # teuthology (pyproject.toml) +pynose==1.5.1 + # via teuthology (pyproject.toml) pyopenssl==23.3.0 # via # ndg-httpsclient diff --git a/setup.cfg b/setup.cfg index 89e9e7d2..c6a5b4c8 100644 --- a/setup.cfg +++ b/setup.cfg @@ -99,7 +99,7 @@ test = coverage ipy mock - nose + pynose pytest pytest-cov toml