summaryrefslogtreecommitdiff
path: root/dev-python/munch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-06-15 00:09:17 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-06-15 00:09:17 +0100
commit6a7029e0f7370d4d5dfe9e31cc2719a870482392 (patch)
tree28c6c747114eaedfd2db81f86ac2ff3d7d13111e /dev-python/munch
parent5e41a38157bb40e8513e8e34426e85faba672fe7 (diff)
gentoo auto-resync : 15:06:2024 - 00:09:17
Diffstat (limited to 'dev-python/munch')
-rw-r--r--dev-python/munch/Manifest3
-rw-r--r--dev-python/munch/files/munch-4.0.0-py313.patch29
-rw-r--r--dev-python/munch/munch-4.0.0.ebuild11
3 files changed, 39 insertions, 4 deletions
diff --git a/dev-python/munch/Manifest b/dev-python/munch/Manifest
index 6d886bd22ab6..08bccd8377bd 100644
--- a/dev-python/munch/Manifest
+++ b/dev-python/munch/Manifest
@@ -1,3 +1,4 @@
+AUX munch-4.0.0-py313.patch 1167 BLAKE2B 6957d4011f3cd2603a6b7e22a0378b065cb8e6cfcca5756575a79854bc77ee301da753a86c3949bf369116b81aaf9443d396d6f1618084dd7ab8bb65b70fa3bc SHA512 815235dd5cd09d8079c7c2a45258dd3468bd92c5fa5d9b6f8273ddf31f83dee4fc476baa9b031a6c9f94d298f00a86de97fedfee2d88ee9ae4b6bc6fe167e5da
DIST munch-4.0.0.tar.gz 19089 BLAKE2B 17aba6f5ab3e2e532a9deb8623ef10aa569231e5457b96acacd7c11117db47afa82409f9bf8aa384a8207c23d4af1140dca6db27c73df05658b8ad3997ad071a SHA512 7beeee4d3fd084ac929e796cd62af097c2602a3ec06405f79b562bc6d14577350adbbe02848253c62f0938e706b9056799bfd5b9c2bdff6e559b3903b8cdca5c
-EBUILD munch-4.0.0.ebuild 619 BLAKE2B ff436ee21d0ac608163a6065267c5c412656521200506b775610bf31851621b30f3173defafbf6e5a0e804f1d0a467acc02640249f825bfa1f403878d9f37f7c SHA512 23a4741322bd155798fe4224c7f89b3bc75b61fca02a05e2b4f9598b5abc7d4a050eccf23e227e509e72ecad40dd83dc8093a64cce11c63a1ac09c27185934ae
+EBUILD munch-4.0.0.ebuild 711 BLAKE2B 1b6a95a33d79711de9951c07962b2a5b0a403ffa576bb77c1665f6a75061dbb99caba182898132c6887c45477590c7993bdeeb2100a366c40966b83556cfa742 SHA512 fdb35562625cb347afa71bb645390bb01e8c7da4200ced979284af764e62a41945744861aea98b97c3e4552212c24401a59dad64c93691700c63dc440caa1629
MISC metadata.xml 401 BLAKE2B ab900d598b463036c2f6d7cb6a5b1abcc25e5739d3fb953741abae620ee8ac845077870dacf433211c5a4d14972114f8d16b94a86514be5de7667a2ab32b1f45 SHA512 f3334ff207272f39f44dad54f2d173218b2192675e04dd076cc16b461a656e146f3ba5b73e53ef8c115c5c3f32f40664f6191c31aa20fec5bcedb61186fed4bf
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 <ksurma@redhat.com>
+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..2b58fe8804b1 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
@@ -15,8 +15,8 @@ HOMEPAGE="
"
LICENSE="MIT"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
SLOT="0"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
BDEPEND="
dev-python/pbr[${PYTHON_USEDEP}]
@@ -26,3 +26,8 @@ BDEPEND="
"
distutils_enable_tests pytest
+
+PATCHES=(
+ # https://github.com/Infinidat/munch/pull/104
+ "${FILESDIR}/${P}-py313.patch"
+)