]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
replace deprecated nose dependency with pynose 1947/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 23 May 2024 16:26:25 +0000 (12:26 -0400)
committerCasey Bodley <cbodley@redhat.com>
Thu, 23 May 2024 16:33:54 +0000 (12:33 -0400)
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 <cbodley@redhat.com>
requirements.txt
setup.cfg

index 9c9c7306b1d94f5507e78f5e87d94cd466c5fe5c..121de7c4e1ee55416e6c32e1792f6fbca73d9012 100644 (file)
@@ -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
index 89e9e7d2bed59fec5ee21561858d26181c5a5f21..c6a5b4c8924052fda19029cb40f093453b5ae09c 100644 (file)
--- a/setup.cfg
+++ b/setup.cfg
@@ -99,7 +99,7 @@ test =
     coverage
     ipy
     mock
-    nose
+    pynose
     pytest
     pytest-cov
     toml