diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/munch | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/munch')
| -rw-r--r-- | dev-python/munch/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/munch/files/munch-4.0.0-py313.patch | 29 | ||||
| -rw-r--r-- | dev-python/munch/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/munch/munch-4.0.0.ebuild | 33 |
4 files changed, 73 insertions, 0 deletions
diff --git a/dev-python/munch/Manifest b/dev-python/munch/Manifest new file mode 100644 index 000000000000..75d911a9c1ea --- /dev/null +++ b/dev-python/munch/Manifest @@ -0,0 +1 @@ +DIST munch-4.0.0.tar.gz 19089 BLAKE2B 17aba6f5ab3e2e532a9deb8623ef10aa569231e5457b96acacd7c11117db47afa82409f9bf8aa384a8207c23d4af1140dca6db27c73df05658b8ad3997ad071a SHA512 7beeee4d3fd084ac929e796cd62af097c2602a3ec06405f79b562bc6d14577350adbbe02848253c62f0938e706b9056799bfd5b9c2bdff6e559b3903b8cdca5c 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/metadata.xml b/dev-python/munch/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/munch/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/munch/munch-4.0.0.ebuild b/dev-python/munch/munch-4.0.0.ebuild new file mode 100644 index 000000000000..c7cc1235f2e1 --- /dev/null +++ b/dev-python/munch/munch-4.0.0.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A dot-accessible dictionary (a la JavaScript objects)" +HOMEPAGE=" + https://github.com/Infinidat/munch/ + https://pypi.org/project/munch/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~x64-macos" + +BDEPEND=" + dev-python/pbr[${PYTHON_USEDEP}] + test? ( + >=dev-python/pyyaml-5.1[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/Infinidat/munch/pull/104 + "${FILESDIR}/${P}-py313.patch" +) |
