diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:47:34 -0500 |
| commit | dda948891d3731927b821ce31f9d9a2d03ba20c5 (patch) | |
| tree | 99cd40be4cbb0606260da212cd81b8ab2db9da9b /dev-python/decopatch | |
| parent | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (diff) | |
| download | baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.gz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.tar.xz baldeagleos-repo-dda948891d3731927b821ce31f9d9a2d03ba20c5.zip | |
Adding metadata
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 | 12 |
5 files changed, 138 insertions, 0 deletions
diff --git a/dev-python/decopatch/Manifest b/dev-python/decopatch/Manifest new file mode 100644 index 000000000000..c5b1e1dc1306 --- /dev/null +++ b/dev-python/decopatch/Manifest @@ -0,0 +1 @@ +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 new file mode 100644 index 000000000000..371c254f2037 --- /dev/null +++ b/dev-python/decopatch/decopatch-1.4.10-r1.ebuild @@ -0,0 +1,40 @@ +# 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 new file mode 100644 index 000000000000..3b1b47773a13 --- /dev/null +++ b/dev-python/decopatch/files/decopatch-1.4.10-pkg_resources.patch @@ -0,0 +1,24 @@ +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 new file mode 100644 index 000000000000..24ca2082e9ca --- /dev/null +++ b/dev-python/decopatch/files/decopatch-1.4.10-python12.patch @@ -0,0 +1,61 @@ +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 new file mode 100644 index 000000000000..0c3432940dda --- /dev/null +++ b/dev-python/decopatch/metadata.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <upstream> + <doc>https://smarie.github.io/python-decopatch/</doc> + <maintainer> + <email>sylvain.marie@schneider-electric.com</email> + <name>Sylvain Marie</name> + </maintainer> + </upstream> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
