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 3C63515817D for ; Fri, 14 Jun 2024 19:07:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2395BE2B7B; Fri, 14 Jun 2024 19:07:09 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 0A260E2B7B for ; Fri, 14 Jun 2024 19:07:09 +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 347D333BED4 for ; Fri, 14 Jun 2024 19:07:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 75DBC1D04 for ; Fri, 14 Jun 2024 19:07:05 +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: <1718391968.ab84b003ad8405976235aa748b9c2678db890745.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/munch/files/, dev-python/munch/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/munch/files/munch-4.0.0-py313.patch dev-python/munch/munch-4.0.0.ebuild X-VCS-Directories: dev-python/munch/files/ dev-python/munch/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: ab84b003ad8405976235aa748b9c2678db890745 X-VCS-Branch: master Date: Fri, 14 Jun 2024 19:07:05 +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: 39c1ba14-2e89-4ac4-be9f-415948bfc404 X-Archives-Hash: 727e66368b5cc9a105f8ac0534c2b33d commit: ab84b003ad8405976235aa748b9c2678db890745 Author: Michał Górny gentoo org> AuthorDate: Fri Jun 14 19:03:17 2024 +0000 Commit: Michał Górny gentoo org> CommitDate: Fri Jun 14 19:06:08 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab84b003 dev-python/munch: Enable py3.13 Signed-off-by: Michał Górny gentoo.org> dev-python/munch/files/munch-4.0.0-py313.patch | 29 ++++++++++++++++++++++++++ dev-python/munch/munch-4.0.0.ebuild | 9 ++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/dev-python/munch/files/munch-4.0.0-py313.patch b/dev-python/munch/files/munch-4.0.0-py313.patch new file mode 100644 index 000000000000..6d7cba2b89d7 --- /dev/null +++ b/dev-python/munch/files/munch-4.0.0-py313.patch @@ -0,0 +1,29 @@ +From 84651ee872f9ea6dbaed986fd3818202933a8b50 Mon Sep 17 00:00:00 2001 +From: Karolina Surma +Date: Wed, 5 Jun 2024 09:49:49 +0200 +Subject: [PATCH] Adjust tests for Python 3.13 + +--- + tests/test_munch.py | 9 +++++++++ + 1 file changed, 9 insertions(+) + +diff --git a/tests/test_munch.py b/tests/test_munch.py +index c80b757..5886fdd 100644 +--- a/tests/test_munch.py ++++ b/tests/test_munch.py +@@ -225,6 +225,15 @@ def test_reserved_attributes(attrname): + assert attr == 'munch' + elif attrname == '__dict__': + assert attr == {} ++ elif attrname == '__static_attributes__': ++ # Python 3.13: added __static_attributes__ attribute, populated by the ++ # compiler, containing a tuple of names of attributes of this class ++ # which are accessed through self.X from any function in its body. ++ assert isinstance(attr, tuple) ++ elif attrname == '__firstlineno__': ++ # Python 3.13: added __firstlineno__ attribute, populated by the ++ # compiler, containing the line number of the first line of the class definition ++ assert isinstance(attr, int) + else: + assert callable(attr) + diff --git a/dev-python/munch/munch-4.0.0.ebuild b/dev-python/munch/munch-4.0.0.ebuild index 5e000b9f640e..00bee963b931 100644 --- a/dev-python/munch/munch-4.0.0.ebuild +++ b/dev-python/munch/munch-4.0.0.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2023 Gentoo Authors +# 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..12} pypy3 ) +PYTHON_COMPAT=( python3_{10..13} pypy3 ) inherit distutils-r1 pypi @@ -26,3 +26,8 @@ BDEPEND=" " distutils_enable_tests pytest + +PATCHES=( + # https://github.com/Infinidat/munch/pull/104 + "${FILESDIR}/${P}-py313.patch" +)