diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-26 19:51:10 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2024-01-26 19:51:10 +0000 |
| commit | 1d7597f7115205e0dd20171886c38860ceef7a54 (patch) | |
| tree | 201cd5f4fa8451f37417f55fe5f15b2cd6d14676 /dev-python/decopatch | |
| parent | 7d0f02291c8488a5fba11f2cc88f4d76bb499afe (diff) | |
| download | baldeagleos-repo-1d7597f7115205e0dd20171886c38860ceef7a54.tar.gz baldeagleos-repo-1d7597f7115205e0dd20171886c38860ceef7a54.tar.xz baldeagleos-repo-1d7597f7115205e0dd20171886c38860ceef7a54.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.ebuild | 4 | ||||
| -rw-r--r-- | dev-python/decopatch/decopatch-1.4.9.ebuild | 36 | ||||
| -rw-r--r-- | dev-python/decopatch/files/decopatch-1.4.10-python12.patch | 61 |
4 files changed, 64 insertions, 38 deletions
diff --git a/dev-python/decopatch/Manifest b/dev-python/decopatch/Manifest index db88ebb4539d..c5b1e1dc1306 100644 --- a/dev-python/decopatch/Manifest +++ b/dev-python/decopatch/Manifest @@ -1,2 +1 @@ DIST decopatch-1.4.10.tar.gz 69538 BLAKE2B 812305abb0648c42fe786f6153820ff68e3bf3cb23bf0b3eecb139085b88071f914aa556f17a90bd45b39cdf42a563fb3c30178095bbdd16331d36ec2ff29e58 SHA512 7554c5bdef6aeb06968334c8aef3f67b56bd3ff8be5e05cb6289f3088848d946d46ecc1d9f73bab9db80b6981aa4f9039c359eb8a0fe9f4acee62addf4f0ed96 -DIST decopatch-1.4.9.tar.gz 68419 BLAKE2B bb49ffd093aead65373f6c56955d2dfcdf73f5654acb12ddfbfc0b5c94f9db8e10c70493489cc06a569bef312f04c3e5cb94bbc9e64ba2f75866777fa7721aff SHA512 2f131bbc485ab177c86abb782cdd0b66b7370a7fb97b62e27da5fb62f3c115ae540eae22a346d8ecb0946216661c111f952d8e22e60b40de21371cd38b93264a diff --git a/dev-python/decopatch/decopatch-1.4.10.ebuild b/dev-python/decopatch/decopatch-1.4.10.ebuild index e284d3fbaf32..92e22240e74d 100644 --- a/dev-python/decopatch/decopatch-1.4.10.ebuild +++ b/dev-python/decopatch/decopatch-1.4.10.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -26,6 +26,8 @@ BDEPEND=" test? ( dev-python/pytest-cases[${PYTHON_USEDEP}] ) " +PATCHES=( "${FILESDIR}/${P}-python12.patch" ) + distutils_enable_tests pytest python_prepare_all() { diff --git a/dev-python/decopatch/decopatch-1.4.9.ebuild b/dev-python/decopatch/decopatch-1.4.9.ebuild deleted file mode 100644 index e1bd1bb30e58..000000000000 --- a/dev-python/decopatch/decopatch-1.4.9.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8,9,10,11,12} ) -DISTUTILS_USE_PEP517=setuptools - -DOCS_BUILDER="mkdocs" -DOCS_DEPEND="dev-python/mkdocs-material" - -inherit distutils-r1 docs 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}] - test? ( dev-python/pytest-cases[${PYTHON_USEDEP}] ) -" - -distutils_enable_tests pytest - -python_prepare_all() { - sed "/pytest-runner/d" -i setup.cfg || die - distutils-r1_python_prepare_all -} - -python_compile_all() { - docs_compile -} 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 |
