From 1384fc7875d3f93f775983e4379f491503b503ca Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Thu, 23 May 2024 12:26:25 -0400 Subject: [PATCH] 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" Signed-off-by: Casey Bodley --- requirements.txt | 6 +++--- setup.cfg | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/requirements.txt b/requirements.txt index 9c9c7306b..121de7c4e 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 89e9e7d2b..c6a5b4c89 100644 --- a/setup.cfg +++ b/setup.cfg @@ -99,7 +99,7 @@ test = coverage ipy mock - nose + pynose pytest pytest-cov toml