diff options
Diffstat (limited to 'dev-python/decopatch')
| -rw-r--r-- | dev-python/decopatch/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/decopatch/decopatch-1.4.10-r1.ebuild | 40 | ||||
| -rw-r--r-- | dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch | 24 | ||||
| -rw-r--r-- | dev-python/decopatch/files/decopatch-1.4.10-python12.patch | 61 | ||||
| -rw-r--r-- | dev-python/decopatch/metadata.xml | 14 |
5 files changed, 0 insertions, 140 deletions
diff --git a/dev-python/decopatch/Manifest b/dev-python/decopatch/Manifest deleted file mode 100644 index c5b1e1dc1306..000000000000 --- a/dev-python/decopatch/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST decopatch-1.4.10.tar.gz 69538 BLAKE2B 812305abb0648c42fe786f6153820ff68e3bf3cb23bf0b3eecb139085b88071f914aa556f17a90bd45b39cdf42a563fb3c30178095bbdd16331d36ec2ff29e58 SHA512 7554c5bdef6aeb06968334c8aef3f67b56bd3ff8be5e05cb6289f3088848d946d46ecc1d9f73bab9db80b6981aa4f9039c359eb8a0fe9f4acee62addf4f0ed96 diff --git a/dev-python/decopatch/decopatch-1.4.10-r1.ebuild b/dev-python/decopatch/decopatch-1.4.10-r1.ebuild deleted file mode 100644 index 371c254f2037..000000000000 --- a/dev-python/decopatch/decopatch-1.4.10-r1.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2022-2026 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{13..14} ) -DISTUTILS_USE_PEP517=setuptools - -inherit distutils-r1 pypi - -DESCRIPTION="Create decorators easily in python" -HOMEPAGE=" - https://pypi.org/project/decopatch/ - https://github.com/smarie/python-decopatch -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~amd64" - -RDEPEND="dev-python/makefun[${PYTHON_USEDEP}]" -BDEPEND="dev-python/setuptools-scm[${PYTHON_USEDEP}]" - -PATCHES=( - "${FILESDIR}/${P}-python12.patch" - "${FILESDIR}/${P}-pkg_resources.patch" -) - -EPYTEST_PLUGINS=( pytest-cases ) -EPYTEST_DESELECT=( - # fails with whitespace differences in python 3.13 - tests/test_doc.py::test_doc_add_tag_function -) - -distutils_enable_tests pytest - -src_prepare() { - sed "/pytest-runner/d" -i setup.cfg || die - distutils-r1_src_prepare -} diff --git a/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch b/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch deleted file mode 100644 index 3b1b47773a13..000000000000 --- a/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch +++ /dev/null @@ -1,24 +0,0 @@ -https://github.com/smarie/python-decopatch/pull/39 - ---- - setup.py | 7 ------- - 1 file changed, 7 deletions(-) - -diff --git a/setup.py b/setup.py -index ab1583e..f533213 100644 ---- a/setup.py -+++ b/setup.py -@@ -15,13 +15,6 @@ - from setuptools import setup - - --# (1) check required versions (from https://medium.com/@daveshawley/safely-using-setup-cfg-for-metadata-1babbe54c108) --import pkg_resources -- --pkg_resources.require("setuptools>=39.2") --pkg_resources.require("setuptools_scm") -- -- - # (2) Generate download url using git version - from setuptools_scm import get_version # noqa: E402 - diff --git a/dev-python/decopatch/files/decopatch-1.4.10-python12.patch b/dev-python/decopatch/files/decopatch-1.4.10-python12.patch deleted file mode 100644 index 24ca2082e9ca..000000000000 --- a/dev-python/decopatch/files/decopatch-1.4.10-python12.patch +++ /dev/null @@ -1,61 +0,0 @@ -https://github.com/smarie/python-decopatch/pull/34 -From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> -Date: Tue, 25 Jul 2023 13:31:12 +0200 -Subject: [PATCH] Adjust for whitespace changes with python 3.12 - -Tests would fail with python3-3.12.0~b4-1.fc39.x86_64. ---- a/tests/test_doc.py -+++ b/tests/test_doc.py -@@ -1,5 +1,5 @@ - from __future__ import print_function -- -+import re - - import pytest - from makefun import wraps -@@ -182,7 +182,8 @@ def add_ints(a, b): - with capsys.disabled(): - print(captured.out) - -- assert captured.out == """hello, world ! -+ out = re.sub(r'[ \t]+\n', '\n', captured.out) -+ assert out == """hello, world ! - <executing foo> - hello, world ! - <executing bar> -@@ -195,7 +196,7 @@ def add_ints(a, b): - say_hello(person='world') - This decorator wraps the decorated function so that a nice hello - message is printed before each call. -- -+ - :param person: the person name in the print message. Default = "world" - - Signature: (person='world') ---- a/tests/test_doc_advanced.py -+++ b/tests/test_doc_advanced.py -@@ -1,4 +1,5 @@ - from __future__ import print_function -+import re - import sys - - import pytest -@@ -200,7 +201,8 @@ def custom(a, b): - with capsys.disabled(): - print(captured.out) - -- assert captured.out == """hello, world ! -+ out = re.sub(r'[ \t]+\n', '\n', captured.out) -+ assert out == """hello, world ! - hello, world ! - hello, you ! - Help on function say_hello in module tests.test_doc_advanced: -@@ -208,7 +210,7 @@ def custom(a, b): - say_hello(person='world') - This decorator modifies the decorated function so that a nice hello - message is printed before the call. -- -+ - :param person: the person name in the print message. Default = "world" - :param f: represents the decorated item. Automatically injected. - :return: a modified version of `f` that will print a hello message before executing diff --git a/dev-python/decopatch/metadata.xml b/dev-python/decopatch/metadata.xml deleted file mode 100644 index 1ce684e596c0..000000000000 --- a/dev-python/decopatch/metadata.xml +++ /dev/null @@ -1,14 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <!-- maintainer-needed --> - <upstream> - <remote-id type="pypi">decopatch</remote-id> - <remote-id type="github">smarie/python-decopatch</remote-id> - <doc>https://smarie.github.io/python-decopatch/</doc> - <maintainer> - <email>sylvain.marie@schneider-electric.com</email> - <name>Sylvain Marie</name> - </maintainer> - </upstream> -</pkgmetadata> |
