From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BEB25159C96 for ; Sat, 27 Jul 2024 09:53:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CF7E2BC079; Sat, 27 Jul 2024 09:53:27 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 770B42BC078 for ; Sat, 27 Jul 2024 09:53:27 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9321C342FA1 for ; Sat, 27 Jul 2024 09:53:26 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 64A4A1E7F for ; Sat, 27 Jul 2024 09:53:23 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1722073996.7888717f7f28b2136b18b0ff1e9751fd7387bc87.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/makefun/, dev-python/makefun/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/makefun/Manifest dev-python/makefun/files/makefun-1.15.3-test.patch dev-python/makefun/makefun-1.15.3.ebuild X-VCS-Directories: dev-python/makefun/ dev-python/makefun/files/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7888717f7f28b2136b18b0ff1e9751fd7387bc87 X-VCS-Branch: master Date: Sat, 27 Jul 2024 09:53:23 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: dd1b8282-0fcd-48db-8e2b-7d34be04ca65 X-Archives-Hash: 32307c91a48d2f3cf5b099fda257bc4b commit: 7888717f7f28b2136b18b0ff1e9751fd7387bc87 Author: Michał Górny gentoo org> AuthorDate: Sat Jul 27 09:50:49 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Jul 27 09:53:16 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7888717f dev-python/makefun: Remove old Signed-off-by: Michał Górny gentoo.org> dev-python/makefun/Manifest | 1 - dev-python/makefun/files/makefun-1.15.3-test.patch | 80 ---------------------- dev-python/makefun/makefun-1.15.3.ebuild | 34 --------- 3 files changed, 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__) \ - == """ - -- 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!", "")) \ - == """ - -- 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 -}