diff options
| author | Michał Górny <mgorny@gentoo.org> | 2024-07-27 11:50:49 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2024-07-27 11:53:16 +0200 |
| commit | 7888717f7f28b2136b18b0ff1e9751fd7387bc87 (patch) | |
| tree | a23111aeff7a51338e8952907ed9cc973101efc7 | |
| parent | 87ae727add5fa879d14ef364647174857dfce762 (diff) | |
| download | gentoo-7888717f7f28b2136b18b0ff1e9751fd7387bc87.tar.gz gentoo-7888717f7f28b2136b18b0ff1e9751fd7387bc87.tar.bz2 gentoo-7888717f7f28b2136b18b0ff1e9751fd7387bc87.zip | |
dev-python/makefun: Remove old
Signed-off-by: Michał Górny <mgorny@gentoo.org>
| -rw-r--r-- | dev-python/makefun/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/makefun/files/makefun-1.15.3-test.patch | 80 | ||||
| -rw-r--r-- | dev-python/makefun/makefun-1.15.3.ebuild | 34 |
3 files changed, 0 insertions, 115 deletions
diff --git a/dev-python/makefun/Manifest b/dev-python/makefun/Manifest index 8789a69768c9..14b2ef157f54 100644 --- a/dev-python/makefun/Manifest +++ b/dev-python/makefun/Manifest @@ -1,2 +1 @@ -DIST makefun-1.15.3.tar.gz 71799 BLAKE2B 3500be7bc5b0e86a6f75781bb8fb7156624e4c910f54dfd7498268f96cd3df84e1f4d4502f4705f9a278948043e571951137e420358e94e051ba81387b14d4ba SHA512 6d48d8e1bdd60ab440b31241a957ba60aa5ae6c77a7a4785dd0a3c6cf4cedd5389ff76d7a309d230bdf1db9be577ab85446741febb30dae0be87e9c3a2d003a0 DIST makefun-1.15.4.tar.gz 72160 BLAKE2B 361e598bf17c3e235934d65de48e638897dae9f93285269c39d97d1202506dd7e0c688b628d1811571fc259c39dbe345e8b269809c5079bf651a9ef09b681331 SHA512 eb6ed268137726ed306c7b118307ada365832d6f17a50da2804cc55708d114ad7e630ed4fdbd15a411d92ce601c4cc10d671d1ade7e270349009c10fd82618d7 diff --git a/dev-python/makefun/files/makefun-1.15.3-test.patch b/dev-python/makefun/files/makefun-1.15.3-test.patch deleted file mode 100644 index bed2b01c01d4..000000000000 --- a/dev-python/makefun/files/makefun-1.15.3-test.patch +++ /dev/null @@ -1,80 +0,0 @@ -diff --git a/tests/test_partial_and_macros.py b/tests/test_partial_and_macros.py -index 6fd4503..3ce0a33 100644 ---- a/tests/test_partial_and_macros.py -+++ b/tests/test_partial_and_macros.py -@@ -1,5 +1,6 @@ - import functools - import pytest -+import re - import sys - - import makefun -@@ -11,6 +12,11 @@ except ImportError: - - PY2 = sys.version_info < (3, ) - -+# Python 3.13 dedents docstrings, earlier versions just strip initial -+# whitespace. Use a regexp to get a consistently dedented docstring -+# for comparison across Python versions. -+DOCSTRING_NORMALIZE_RE = re.compile(r"^ +", re.MULTILINE) -+ - - def test_doc(): - def foo(x, y): -@@ -41,15 +47,15 @@ def test_doc(): - - sig_actual_call = ref_sig_str.replace("*, ", "") - -- assert bar.__doc__ \ -+ assert DOCSTRING_NORMALIZE_RE.sub("", bar.__doc__) \ - == """<This function is equivalent to 'foo%s', see original 'foo' doc below.> - -- a `foo` function -+a `foo` function - -- :param x: -- :param y: -- :return: -- """ % sig_actual_call -+:param x: -+:param y: -+:return: -+""" % sig_actual_call - - - def test_partial(): -@@ -78,16 +84,16 @@ def test_partial(): - - sig_actual_call = "(x, y='hello', a)" # if PY2 else "(x, *, y='hello', a)" - -- assert foo.__doc__.replace("=KW_ONLY_ARG!", "") \ -+ assert DOCSTRING_NORMALIZE_RE.sub("", foo.__doc__.replace("=KW_ONLY_ARG!", "")) \ - == """<This function is equivalent to 'foo%s', see original 'foo' doc below.> - -- a `foo` function -+a `foo` function - -- :param x: -- :param y: -- :param a: -- :return: -- """ % sig_actual_call -+:param x: -+:param y: -+:param a: -+:return: -+""" % sig_actual_call - - - def test_issue_57(): -@@ -127,9 +133,7 @@ def test_create_with_partial(): - assert m() == -1 - assert m.i == 1 - # the doc remains untouched in create_function as opposed to wraps, this is normal -- assert m.__doc__ == """partial(func, *args, **keywords) - new function with partial application -- of the given arguments and keywords. --""" -+ assert m.__doc__ == functools.partial.__doc__ - - - def test_args_order_and_kind(): diff --git a/dev-python/makefun/makefun-1.15.3.ebuild b/dev-python/makefun/makefun-1.15.3.ebuild deleted file mode 100644 index b27a70e4e38d..000000000000 --- a/dev-python/makefun/makefun-1.15.3.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..13} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Small library to dynamically create Python functions" -HOMEPAGE=" - https://pypi.org/project/makefun/ - https://github.com/smarie/python-makefun/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86" - -BDEPEND=" - dev-python/setuptools-scm[${PYTHON_USEDEP}] -" - -distutils_enable_tests pytest - -src_prepare() { - local PATCHES=( - # https://github.com/smarie/python-makefun/pull/104 - "${FILESDIR}/${P}-test.patch" - ) - - distutils-r1_src_prepare -} |
