diff options
| author | root <root@alpha.trunkmasters.com> | 2026-09-05 19:11:59 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-09-05 19:11:59 -0500 |
| commit | 5f278372030aad6db0f73700a9780b84a004d5ff (patch) | |
| tree | 027a42b585c1678d4fa9fb9ab464e9df3bcdc71f /dev-python/pure-eval | |
| parent | d1f18a9f11dde5cf862fd7c32c6d33a0a9114736 (diff) | |
| download | baldeagleos-repo-5f278372030aad6db0f73700a9780b84a004d5ff.tar.gz baldeagleos-repo-5f278372030aad6db0f73700a9780b84a004d5ff.tar.xz baldeagleos-repo-5f278372030aad6db0f73700a9780b84a004d5ff.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pure-eval')
| -rw-r--r-- | dev-python/pure-eval/files/pure-eval-0.2.3-py315.patch | 16 | ||||
| -rw-r--r-- | dev-python/pure-eval/pure-eval-0.2.3-r1.ebuild | 27 | ||||
| -rw-r--r-- | dev-python/pure-eval/pure-eval-0.2.3.ebuild | 19 |
3 files changed, 45 insertions, 17 deletions
diff --git a/dev-python/pure-eval/files/pure-eval-0.2.3-py315.patch b/dev-python/pure-eval/files/pure-eval-0.2.3-py315.patch new file mode 100644 index 000000000000..7d2a12ada3b5 --- /dev/null +++ b/dev-python/pure-eval/files/pure-eval-0.2.3-py315.patch @@ -0,0 +1,16 @@ +From d70a873553d3163373ebcbb4217a1144fd371df2 Mon Sep 17 00:00:00 2001 +From: Alex Hall <alex.mojaki@gmail.com> +Date: Sun, 11 Jan 2026 14:05:46 +0200 +Subject: [PATCH] Test and fix python 3.15 + +--- a/pure_eval/my_getattr_static.py ++++ b/pure_eval/my_getattr_static.py +@@ -69,7 +69,7 @@ def getattr_static(obj, attr): + klass = type(obj) + dict_attr = _shadowed_dict(klass) + if (dict_attr is _sentinel or +- type(dict_attr) is types.MemberDescriptorType): ++ type(dict_attr) is types.MemberDescriptorType or type(dict_attr) is types.GetSetDescriptorType): + instance_result = _check_instance(obj, attr) + else: + raise CannotEval diff --git a/dev-python/pure-eval/pure-eval-0.2.3-r1.ebuild b/dev-python/pure-eval/pure-eval-0.2.3-r1.ebuild new file mode 100644 index 000000000000..b0f099a9591d --- /dev/null +++ b/dev-python/pure-eval/pure-eval-0.2.3-r1.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2026 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="Safely evaluate AST nodes without side effects" +HOMEPAGE=" + https://github.com/alexmojaki/pure_eval/ + https://pypi.org/project/pure-eval/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/alexmojaki/pure_eval/pull/24 + "${FILESDIR}/${P}-py315.patch" +) diff --git a/dev-python/pure-eval/pure-eval-0.2.3.ebuild b/dev-python/pure-eval/pure-eval-0.2.3.ebuild index c8354a073f6a..9844ba64bcf0 100644 --- a/dev-python/pure-eval/pure-eval-0.2.3.ebuild +++ b/dev-python/pure-eval/pure-eval-0.2.3.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2025 Gentoo Authors +# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -18,20 +18,5 @@ LICENSE="MIT" SLOT="0" KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~arm64-macos ~x64-macos" +EPYTEST_PLUGINS=() distutils_enable_tests pytest - -python_test() { - local EPYTEST_DESELECT=() - - case ${EPYTHON} in - pypy3*) - EPYTEST_DESELECT+=( - # https://github.com/alexmojaki/pure_eval/issues/15 - tests/test_getattr_static.py::TestGetattrStatic::test_custom_object_dict - tests/test_utils.py::test_safe_name_samples - ) - ;; - esac - - epytest -} |
