diff options
-rw-r--r-- | dev-python/stack-data/Manifest | 1 | ||||
-rw-r--r-- | dev-python/stack-data/files/stack-data-0.6.2-pygments-2.14.0.patch | 85 | ||||
-rw-r--r-- | dev-python/stack-data/stack-data-0.6.2.ebuild | 39 |
3 files changed, 0 insertions, 125 deletions
diff --git a/dev-python/stack-data/Manifest b/dev-python/stack-data/Manifest index 2ebcdccea8df..d324265772ac 100644 --- a/dev-python/stack-data/Manifest +++ b/dev-python/stack-data/Manifest @@ -1,2 +1 @@ -DIST stack_data-0.6.2.tar.gz 44146 BLAKE2B 1344b48a597af3df3a00036412c513faa97824f183a4337566a1a8efafcb6ec6597cf5fad3c6d532e8df2173900bdf87d0071efc66a801bd93743a92619fb5dd SHA512 cdc623f8efc2fc4a968fd537c2147f4de90c0878554b3d3d741cf916ae549da8756d6ac943dbdee94721cc6a0c433d04d73e30bccee2b4ec1f5027efc3c9b90d DIST stack_data-0.6.3.tar.gz 44707 BLAKE2B d50e8c8e925cd9a4a19f883422aa487543836b36e20861f9bdf41551484ba02f7bdfb729f8bc051b3a97e76b4df7e7833b53bd3c47daf85dc2aa4e8d5d1c11b1 SHA512 629c112c09a1f69566160039c4d5fd49e59bdc206ad76799c67418e08b93a0990dd802078b646da175ab719b448394b723aab37479be14d09c0fb1c72cdbd0b8 diff --git a/dev-python/stack-data/files/stack-data-0.6.2-pygments-2.14.0.patch b/dev-python/stack-data/files/stack-data-0.6.2-pygments-2.14.0.patch deleted file mode 100644 index 6d1909bd8382..000000000000 --- a/dev-python/stack-data/files/stack-data-0.6.2-pygments-2.14.0.patch +++ /dev/null @@ -1,85 +0,0 @@ -https://bugs.gentoo.org/892617 -https://github.com/alexmojaki/stack_data/pull/48 - -From 4fbe4c0aec04ac818070d5963b0249a5592c1b53 Mon Sep 17 00:00:00 2001 -From: Heiko Becker <heirecka@exherbo.org> -Date: Fri, 3 Feb 2023 14:51:01 +0100 -Subject: [PATCH] Update test_pygments_example and skip it with Pygments < - 2.14.0 - ---- a/tests/test_core.py -+++ b/tests/test_core.py -@@ -630,7 +630,7 @@ def test_example(): - """ - - --@pytest.mark.skipif(pygments_version < (2, 12), reason="Different output in older Pygments") -+@pytest.mark.skipif(pygments_version < (2, 14), reason="Different output in older Pygments") - def test_pygments_example(): - from .samples.pygments_example import bar - result = bar() -@@ -670,32 +670,32 @@ def test_pygments_example(): - - TerminalFormatter native: - -- 13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m(): -- 14 | x = \x1b[34m1\x1b[39;49;00m -- 15 | \x1b[36mstr\x1b[39;49;00m(x) -- 17 | \x1b[90m@deco\x1b[39;49;00m -- 18 | \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m(): -- 19 | \x1b[34mpass\x1b[39;49;00m -+ 13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m -+ 14 | x = \x1b[34m1\x1b[39;49;00m\x1b[37m\x1b[39;49;00m -+ 15 | \x1b[36mstr\x1b[39;49;00m(x)\x1b[37m\x1b[39;49;00m -+ 17 | \x1b[90m@deco\x1b[39;49;00m\x1b[37m\x1b[39;49;00m -+ 18 | \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m -+ 19 | \x1b[34mpass\x1b[39;49;00m\x1b[37m\x1b[39;49;00m - ----- -- 25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f): -- 26 | f.result = print_stack() -- 27 | \x1b[34mreturn\x1b[39;49;00m f -+ 25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f):\x1b[37m\x1b[39;49;00m -+ 26 | f.result = print_stack()\x1b[37m\x1b[39;49;00m -+ 27 | \x1b[34mreturn\x1b[39;49;00m f\x1b[37m\x1b[39;49;00m - ----- - - ==================== - - TerminalFormatter <class \'stack_data.core.style_with_executing_node.<locals>.NewStyle\'>: - -- 13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m(): -- 14 | x = \x1b[34m1\x1b[39;49;00m -- 15 | \x1b[36mstr\x1b[39;49;00m(x) -- 17 | \x1b[90m@deco\x1b[39;49;00m -- 18 | \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m(): -- 19 | \x1b[34mpass\x1b[39;49;00m -+ 13 | \x1b[34mdef\x1b[39;49;00m \x1b[32mbar\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m -+ 14 | x = \x1b[34m1\x1b[39;49;00m\x1b[37m\x1b[39;49;00m -+ 15 | \x1b[36mstr\x1b[39;49;00m(x)\x1b[37m\x1b[39;49;00m -+ 17 | \x1b[90m@deco\x1b[39;49;00m\x1b[37m\x1b[39;49;00m -+ 18 | \x1b[34mdef\x1b[39;49;00m \x1b[32mfoo\x1b[39;49;00m():\x1b[37m\x1b[39;49;00m -+ 19 | \x1b[34mpass\x1b[39;49;00m\x1b[37m\x1b[39;49;00m - ----- -- 25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f): -- 26 | f.result = print_stack() -- 27 | \x1b[34mreturn\x1b[39;49;00m f -+ 25 | \x1b[34mdef\x1b[39;49;00m \x1b[32mdeco\x1b[39;49;00m(f):\x1b[37m\x1b[39;49;00m -+ 26 | f.result = print_stack()\x1b[37m\x1b[39;49;00m -+ 27 | \x1b[34mreturn\x1b[39;49;00m f\x1b[37m\x1b[39;49;00m - ----- - - ==================== -@@ -753,9 +753,9 @@ def test_pygments_example(): - 13 | <span class="k">def</span> <span class="nf">bar</span><span class="p">():</span> - 14 | <span class="n">x</span> <span class="o">=</span> <span class="mi">1</span> - 15 | <span class="nb">str</span><span class="p">(</span><span class="n">x</span><span class="p">)</span> -- 17 | <span class=" -ExecutingNode"> </span><span class="nd nd-ExecutingNode">@deco</span><span class=" -ExecutingNode"></span> -- 18 | <span class=" -ExecutingNode"> </span><span class="k k-ExecutingNode">def</span><span class=" -ExecutingNode"> </span><span class="nf nf-ExecutingNode">foo</span><span class="p p-ExecutingNode">():</span><span class=" -ExecutingNode"></span> -- 19 | <span class=" -ExecutingNode"> </span><span class="k k-ExecutingNode">pass</span><span class=" -ExecutingNode"></span> -+ 17 | <span class=" -ExecutingNode"> </span><span class="nd nd-ExecutingNode">@deco</span> -+ 18 | <span class=" -ExecutingNode"> </span><span class="k k-ExecutingNode">def</span><span class=" -ExecutingNode"> </span><span class="nf nf-ExecutingNode">foo</span><span class="p p-ExecutingNode">():</span> -+ 19 | <span class=" -ExecutingNode"> </span><span class="k k-ExecutingNode">pass</span> - ----- - 25 | <span class="k">def</span> <span class="nf">deco</span><span class="p">(</span><span class="n">f</span><span class="p">):</span> - 26 | <span class="n">f</span><span class="o">.</span><span class="n">result</span> <span class="o">=</span> <span class="n n-ExecutingNode">print_stack</span><span class="p p-ExecutingNode">()</span> - diff --git a/dev-python/stack-data/stack-data-0.6.2.ebuild b/dev-python/stack-data/stack-data-0.6.2.ebuild deleted file mode 100644 index 7714a2d63838..000000000000 --- a/dev-python/stack-data/stack-data-0.6.2.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Extract data from Python tracebacks for informative displays" -HOMEPAGE=" - https://github.com/alexmojaki/stack_data/ - https://pypi.org/project/stack-data/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos" - -RDEPEND=" - >=dev-python/asttokens-2.1.0[${PYTHON_USEDEP}] - >=dev-python/executing-1.2.0[${PYTHON_USEDEP}] - dev-python/pure_eval[${PYTHON_USEDEP}] -" -BDEPEND=" - test? ( - dev-python/cython[${PYTHON_USEDEP}] - dev-python/typeguard[${PYTHON_USEDEP}] - dev-python/littleutils[${PYTHON_USEDEP}] - dev-python/pygments[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}"/${P}-pygments-2.14.0.patch -) - -distutils_enable_tests pytest |