diff options
Diffstat (limited to 'dev-python/vine')
-rw-r--r-- | dev-python/vine/Manifest | 3 | ||||
-rw-r--r-- | dev-python/vine/files/vine-5.1.0-pytest-8.patch | 29 | ||||
-rw-r--r-- | dev-python/vine/vine-5.1.0.ebuild | 7 |
3 files changed, 37 insertions, 2 deletions
diff --git a/dev-python/vine/Manifest b/dev-python/vine/Manifest index 8408ea291c43..70da136c4d52 100644 --- a/dev-python/vine/Manifest +++ b/dev-python/vine/Manifest @@ -1,3 +1,4 @@ +AUX vine-5.1.0-pytest-8.patch 976 BLAKE2B cae703dc329a1bf4bbf10fb890509550aff10c8586eba6b3f8d82a6b5662e030ea7e10a872e6e2d8d015e8305b615ba8cd026377c255f3e3ebee0899409734e8 SHA512 07b93be4a0030d96035b529d4188e03f33d431c2a941ce08e5620ee62e71b9868bc4b4932b0ea6dc3ecb7395166b6d21004db4aa9b240a8c46376a9f2cc08dcd DIST vine-5.1.0.tar.gz 48980 BLAKE2B e46a85582df4bdb6bddbe37ccc2511b5361cfcdd8210f81fe3064a41cb683e34b5a4e2d0539989246f60332e5fbf4b3dcca6a05e2a20a75af4927fd9bbe4b736 SHA512 899a494d26ce8236ba12451e8da42fad03803df0a9cf69829f650c23c0d4f6232b9246230fd984fa6616edbad8b2c08f0efe95e3692bee756dfc094f14e3432d -EBUILD vine-5.1.0.ebuild 404 BLAKE2B 54bffe2e460a4d88bbc25db64ef7192ba59621a7cbeeea0006108569cf0ee9fcbb929f41eac1c2a94c76effb8ef77d5657746874a0a9f79731b8cd9e96f93ad0 SHA512 b973b97a30ebc935710530a038ec46730d7a5a83ccf6144930b3fe579bdaefa241d9874e43b3343e08970967a2794d0c9e407aa4a6ff6045f52244e82b45fb13 +EBUILD vine-5.1.0.ebuild 495 BLAKE2B eeff6cb43b8417335c640ae1b3aa0d9e49fa8b871548ebc84ace5df5b26d0ce415cf0c7ae8bd6f78b2b3af79bfef77f67fa3f2ee063c11e48163c6a9ea99fcfa SHA512 ae5194dac139ae57cd57fae1edcca8b624fb03e0828c1205adc84002da0f03b61eb61744f5129e051a527c7f6afe5fe6e3fcff5fd2256d63690efb6e3059f35e MISC metadata.xml 462 BLAKE2B 7e59d35623baa0fc93b843d3b79ac5e4e505da52fdacce8f29c145af35b04c2226b2b6df0c64598af2c6de1640cf6de3091842a79830631b5adf328d91b135a6 SHA512 9ffdf8f9e99e992f12119f919fe43f5f3be4931b742c4cc74446a5a7288269faa4e7e857d03f0bf6a50e36a32cfe30253a9d7f247c80e51167c1691aa1ee899d diff --git a/dev-python/vine/files/vine-5.1.0-pytest-8.patch b/dev-python/vine/files/vine-5.1.0-pytest-8.patch new file mode 100644 index 000000000000..f9cf0863b062 --- /dev/null +++ b/dev-python/vine/files/vine-5.1.0-pytest-8.patch @@ -0,0 +1,29 @@ +From cf9b3979173ff22a4a410c4da6cfdad878eced8c Mon Sep 17 00:00:00 2001 +From: Stanislav Levin <slev@altlinux.org> +Date: Tue, 27 Feb 2024 23:53:38 +0300 +Subject: [PATCH] tests: Replace deprecated setup method (#105) + +Nose's `setup` method is deprecated since Pytest 7.2. + +See https://docs.pytest.org/en/stable/deprecations.html#support-for-tests-written-for-nose for details. + +Fixes: https://github.com/celery/vine/issues/104 + +Signed-off-by: Stanislav Levin <slev@altlinux.org> +--- + t/unit/test_synchronization.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/t/unit/test_synchronization.py b/t/unit/test_synchronization.py +index 87335b6..47b7a10 100644 +--- a/t/unit/test_synchronization.py ++++ b/t/unit/test_synchronization.py +@@ -8,7 +8,7 @@ + + class test_barrier: + +- def setup(self): ++ def setup_method(self): + self.m1, self.m2, self.m3 = Mock(), Mock(), Mock() + self.ps = [promise(self.m1), promise(self.m2), promise(self.m3)] + diff --git a/dev-python/vine/vine-5.1.0.ebuild b/dev-python/vine/vine-5.1.0.ebuild index 0d8990a58004..3d7bd3b8e971 100644 --- a/dev-python/vine/vine-5.1.0.ebuild +++ b/dev-python/vine/vine-5.1.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2023 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -19,3 +19,8 @@ SLOT="0" KEYWORDS="amd64 arm64 x86" distutils_enable_tests pytest + +PATCHES=( + # https://github.com/celery/vine/pull/105 + "${FILESDIR}/${P}-pytest-8.patch" +) |