commit:     eb2b978bf574681d20fcaa436d723370622f36c3
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 19 14:03:36 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 19 14:56:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eb2b978b

dev-python/tblib: Remove old

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

 dev-python/tblib/Manifest                     |  1 -
 dev-python/tblib/files/tblib-3.0.0-test.patch | 35 -----------------------
 dev-python/tblib/tblib-3.0.0.ebuild           | 41 ---------------------------
 3 files changed, 77 deletions(-)

diff --git a/dev-python/tblib/Manifest b/dev-python/tblib/Manifest
index b7fbd4b1a2d7..e981f7d40251 100644
--- a/dev-python/tblib/Manifest
+++ b/dev-python/tblib/Manifest
@@ -1,2 +1 @@
-DIST tblib-3.0.0.tar.gz 30616 BLAKE2B 
4e2ea0e0f09894f1a8dee4d0dbdc61c054964e4ec5a8a1fbb31f3793268ab8607b5b6e547f7771264c9863522b01cdd39ef6aa4a91d757f1c37f9fac37d6cbaf
 SHA512 
9914709846a4a9b0d9fe0f58eb321085f69e11ce364930f67cc5fec008d6ca57963b17699b0a136e2de91ff01004275fc43a38f318b9faab7cb2fac861108297
 DIST tblib-3.1.0.tar.gz 30766 BLAKE2B 
aa28e1f4a851b8562d0545643afc7293e3c0cf173a4a0ca04927958b143ace94ad36f449401fd237797a7f978d10f3080f4419fdc89f0e07503f5dbe7ad1f05f
 SHA512 
619e3a45322da4833e839e1af92231fee515f88fadf31f2544ba04d994f203778e4bb7c83abb937d89ff8fa1aa6949d3769cc7d828daf600833801f479bdfd33

diff --git a/dev-python/tblib/files/tblib-3.0.0-test.patch 
b/dev-python/tblib/files/tblib-3.0.0-test.patch
deleted file mode 100644
index fb1aed1344d5..000000000000
--- a/dev-python/tblib/files/tblib-3.0.0-test.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-diff --git a/tests/test_pickle_exception.py b/tests/test_pickle_exception.py
-index 5ff4679..53a9dce 100644
---- a/tests/test_pickle_exception.py
-+++ b/tests/test_pickle_exception.py
-@@ -29,6 +29,10 @@ class CustomError(Exception):
-     pass
- 
- 
-+def strip_locations(tb_text):
-+    return tb_text.replace('    ~~^~~\n', '').replace('    
^^^^^^^^^^^^^^^^^\n', '')
-+
-+
- @pytest.mark.parametrize('protocol', [None, *list(range(1, 
pickle.HIGHEST_PROTOCOL + 1))])
- @pytest.mark.parametrize('how', ['global', 'instance', 'class'])
- def test_install(clear_dispatch_table, how, protocol):
-@@ -58,8 +62,8 @@ def test_install(clear_dispatch_table, how, protocol):
-     else:
-         raise AssertionError
- 
--    expected_format_exception = ''.join(format_exception(type(exc), exc, 
exc.__traceback__))
--    print(expected_format_exception)
-+    expected_format_exception = 
strip_locations(''.join(format_exception(type(exc), exc, exc.__traceback__)))
-+
-     # Populate Exception.__dict__, which is used in some cases
-     exc.x = 1
-     exc.__cause__.x = 2
-@@ -88,7 +92,7 @@ def test_install(clear_dispatch_table, how, protocol):
-     if has_python311:
-         assert exc.__notes__ == ['note 1', 'note 2']
- 
--    assert expected_format_exception == ''.join(format_exception(type(exc), 
exc, exc.__traceback__))
-+    assert expected_format_exception == 
strip_locations(''.join(format_exception(type(exc), exc, exc.__traceback__)))
- 
- 
- @tblib.pickling_support.install

diff --git a/dev-python/tblib/tblib-3.0.0.ebuild 
b/dev-python/tblib/tblib-3.0.0.ebuild
deleted file mode 100644
index ce963787db28..000000000000
--- a/dev-python/tblib/tblib-3.0.0.ebuild
+++ /dev/null
@@ -1,41 +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="Traceback fiddling library for Python"
-HOMEPAGE="
-       https://github.com/ionelmc/python-tblib/
-       https://pypi.org/project/tblib/
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="amd64 arm arm64 ~loong ppc ppc64 ~riscv sparc x86 ~amd64-linux 
~x86-linux"
-
-RDEPEND="
-       dev-python/six[${PYTHON_USEDEP}]
-"
-BDEPEND="
-       test? (
-               dev-python/twisted[${PYTHON_USEDEP}]
-       )
-"
-
-distutils_enable_tests pytest
-
-PATCHES=(
-       # combined fixes from https://github.com/ionelmc/python-tblib/issues/74
-       "${FILESDIR}/${P}-test.patch"
-)
-
-python_test() {
-       local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
-       local -x PYTHONNODEBUGRANGES=yes
-       epytest
-}

Reply via email to