summaryrefslogtreecommitdiff
path: root/dev-python/makefun
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
commitb8c7370a682e4e29cda623222d17a790c01c3642 (patch)
treef6caa14689bd00a5760eadaa381ff41e50ef3c1b /dev-python/makefun
parent8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff)
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'dev-python/makefun')
-rw-r--r--dev-python/makefun/Manifest5
-rw-r--r--dev-python/makefun/files/makefun-1.15.3-test.patch80
-rw-r--r--dev-python/makefun/makefun-1.15.3.ebuild34
-rw-r--r--dev-python/makefun/makefun-1.15.4.ebuild2
4 files changed, 2 insertions, 119 deletions
diff --git a/dev-python/makefun/Manifest b/dev-python/makefun/Manifest
index aca645080b5d..a0255a41b2cf 100644
--- a/dev-python/makefun/Manifest
+++ b/dev-python/makefun/Manifest
@@ -1,6 +1,3 @@
-AUX makefun-1.15.3-test.patch 2142 BLAKE2B 70e7b70c0c78242d05af0929fdeec37f930663d07f6b7226267fee24cc66cb211cce3a6a1c6d590ed563971dc050ef1a82182a4ad7c1457173df6fb51c5bfc5a SHA512 01f58b4cbeb4788c590c7f8a2710ad9613adf91817106408dd975d83f89f95aa3a861a6b3709e3a3c09c37b5a81f8b92f09760fb2192da3dd2e5e331c4dc3d8a
-DIST makefun-1.15.3.tar.gz 71799 BLAKE2B 3500be7bc5b0e86a6f75781bb8fb7156624e4c910f54dfd7498268f96cd3df84e1f4d4502f4705f9a278948043e571951137e420358e94e051ba81387b14d4ba SHA512 6d48d8e1bdd60ab440b31241a957ba60aa5ae6c77a7a4785dd0a3c6cf4cedd5389ff76d7a309d230bdf1db9be577ab85446741febb30dae0be87e9c3a2d003a0
DIST makefun-1.15.4.tar.gz 72160 BLAKE2B 361e598bf17c3e235934d65de48e638897dae9f93285269c39d97d1202506dd7e0c688b628d1811571fc259c39dbe345e8b269809c5079bf651a9ef09b681331 SHA512 eb6ed268137726ed306c7b118307ada365832d6f17a50da2804cc55708d114ad7e630ed4fdbd15a411d92ce601c4cc10d671d1ade7e270349009c10fd82618d7
-EBUILD makefun-1.15.3.ebuild 672 BLAKE2B 7ea57a9f189d1ede9f477e9ddfa660d7b225ce4ff188485065c9888d0b08b8d511b04de11290051642830d635cb3814dc5e6f5db102d1e96d3c50655d8e47fe5 SHA512 4ab852ef1d3ce50041a8734a51abeeeb5967ff60df719381cae70c99ddc216be8d193210c41d3715b99710089a7356efe071b241c3df9166b61eb4adb43a5b5e
-EBUILD makefun-1.15.4.ebuild 523 BLAKE2B 021b1f3d56c5cd43536a4511657a06f1cf2e275f47dacf4bc7222910babba93ac2062a9d53feb3ca8dbcc7214a0162fb05de930b3c743df2133a1d3ea89d9694 SHA512 eeff59e7fe29c8c8a3a79a48f6f008afce8052ca2c50a6572d4d5f61d8dd106909b3eb6057f37fdc4aa0cf315536d980ce2b9cae6c50f2e8825688b9210f06c6
+EBUILD makefun-1.15.4.ebuild 520 BLAKE2B f9fa6923f159d6e51c10dbb0287decf0289060bc2eaab3cad954ea8cf570b9d1ab35eb2037a750423839f9a20db4b90b567fefbe1e15224befad8a5e59bbbcfc SHA512 beb1a09674b26c0f1226cd49739fea5d05d8a2521c077cf08f9743923f3d6366cb4db81f4d23b9a2b9f49a585264b5e167a08c827b00c3a97213d5bbb69d6d07
MISC metadata.xml 396 BLAKE2B 541c5e69fc3236d1aaf79505272c9bdf2a295524bb9bb04e782a4cd15c022e74651a9c4ebaa244672418e5fafaed97a48568538fcd527b135c279576f09350d2 SHA512 a500a2a8b23673ea11ffdd81cae9c96fc1368121cd6ce7955fb61bc59319cf87607b134f6b5d04aa6aa564eab9c2c1248c47d0ccc624cdd8ae58f5f12d96e279
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
-}
diff --git a/dev-python/makefun/makefun-1.15.4.ebuild b/dev-python/makefun/makefun-1.15.4.ebuild
index f926c1a858f8..9778e4c78944 100644
--- a/dev-python/makefun/makefun-1.15.4.ebuild
+++ b/dev-python/makefun/makefun-1.15.4.ebuild
@@ -16,7 +16,7 @@ HOMEPAGE="
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86"
+KEYWORDS="amd64 arm64 ~ppc64 ~riscv x86"
BDEPEND="
dev-python/setuptools-scm[${PYTHON_USEDEP}]