commit:     8f866aab6a98fd286d715e3b9c21cf91d067826a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat May 10 08:51:16 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat May 10 10:25:10 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f866aab

dev-python/testresources: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/testresources/Manifest                  |  1 -
 .../files/testresources-2.0.1-py312-tests.patch    | 35 --------------------
 .../testresources/testresources-2.0.1-r3.ebuild    | 37 ----------------------
 3 files changed, 73 deletions(-)

diff --git a/dev-python/testresources/Manifest 
b/dev-python/testresources/Manifest
index 182563a5699c..d558616fdeb1 100644
--- a/dev-python/testresources/Manifest
+++ b/dev-python/testresources/Manifest
@@ -1,2 +1 @@
-DIST testresources-2.0.1.tar.gz 41948 BLAKE2B 
81f597099eb17090cfa759c2fc4e30be2de3f749760e6a0e88e4c5484c91fe6a00d1296ec6ba7dc5aea1bcd0f9239989fab8fbb4f211b6c5bf031ff1be4b803b
 SHA512 
0b23432b019400fe378e957d14a91083eef7fe1130a494b567a5274d69e4e8e09ab75861e5453c3f217507e144cf179c908f84dd1a807992d4bee0b8d32cb0f4
 DIST testresources-2.0.2.tar.gz 45057 BLAKE2B 
bb4c0cc12eae792eae3546cb7d0a71aaef0e50e7e26bffe3c8e80230e1e7686b91e93dd8fb31ec45a8c7c4e7f5c201193356653fcf1e199406d18d4673e8babc
 SHA512 
3e7970830833f0a057488638e77af017ca337a736c27e1bd86c896e02174d8f52ad154a649ba3f5a32aac36e1e17b4cb63a6539fcdb19eedba2dba42a76adaf1

diff --git 
a/dev-python/testresources/files/testresources-2.0.1-py312-tests.patch 
b/dev-python/testresources/files/testresources-2.0.1-py312-tests.patch
deleted file mode 100644
index 7d4451ca43b9..000000000000
--- a/dev-python/testresources/files/testresources-2.0.1-py312-tests.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-Subject: [PATCH] Refactor failIf to assertFalse for Python 3.12 Compatibility
-
-This commit replaces deprecated failIf calls with assertFalse in the
-test_resourced_test_case.py file. The failIf method was removed in
-Python 3.12 [1-3].
-
-[1] https://docs.python.org/3.12/whatsnew/3.12.html#removed
-[2] https://github.com/python/cpython/issues/89325
-[3] https://github.com/python/cpython/pull/28268
-
-Upstream-PR: https://github.com/testing-cabal/testresources/pull/15
-
-diff --git a/testresources/tests/test_resourced_test_case.py 
b/testresources/tests/test_resourced_test_case.py
-index 7d2cfba..3c8a1b3 100644
---- a/testresources/tests/test_resourced_test_case.py
-+++ b/testresources/tests/test_resourced_test_case.py
-@@ -129,7 +129,7 @@ class TestResourcedTestCase(testtools.TestCase):
-         self.resourced_case.resources = [("foo", self.resource_manager)]
-         self.resourced_case.setUpResources()
-         self.resourced_case.tearDownResources()
--        self.failIf(hasattr(self.resourced_case, "foo"))
-+        self.assertFalse(hasattr(self.resourced_case, "foo"))
- 
-     def testTearDownResourcesStopsUsingResource(self):
-         # tearDownResources records that there is one less use of each
-@@ -158,5 +158,5 @@ class TestResourcedTestCase(testtools.TestCase):
-         self.assertEqual(self.resourced_case.foo, self.resource)
-         self.assertEqual(self.resource_manager._uses, 1)
-         self.resourced_case.tearDown()
--        self.failIf(hasattr(self.resourced_case, "foo"))
-+        self.assertFalse(hasattr(self.resourced_case, "foo"))
-         self.assertEqual(self.resource_manager._uses, 0)
--- 
-2.39.2
-

diff --git a/dev-python/testresources/testresources-2.0.1-r3.ebuild 
b/dev-python/testresources/testresources-2.0.1-r3.ebuild
deleted file mode 100644
index 9f5909e7cd89..000000000000
--- a/dev-python/testresources/testresources-2.0.1-r3.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2025 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{10..13} pypy3 pypy3_11 )
-
-inherit distutils-r1 pypi
-
-DESCRIPTION="A pyunit extension for managing expensive test resources"
-HOMEPAGE="
-       https://launchpad.net/testresources/
-       https://github.com/testing-cabal/testresources/
-       https://pypi.org/project/testresources/
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~loong ~m68k ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux"
-
-RDEPEND="
-       dev-python/pbr[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       dev-python/pbr[${PYTHON_USEDEP}]
-       test? (
-               dev-python/testtools[${PYTHON_USEDEP}]
-               dev-python/fixtures[${PYTHON_USEDEP}]
-       )
-"
-
-PATCHES=(
-       "${FILESDIR}/${P}-py312-tests.patch"
-)
-
-distutils_enable_tests unittest

Reply via email to