commit: d9882a0848600aefd42d01aaf749580cfb85c48e Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Thu Sep 5 13:26:12 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Thu Sep 5 16:02:24 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9882a08
dev-python/pure-eval: Remove old Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> dev-python/pure-eval/Manifest | 1 - .../pure-eval/files/pure-eval-0.2.2-py313.patch | 63 ---------------------- dev-python/pure-eval/pure-eval-0.2.2-r1.ebuild | 43 --------------- dev-python/pure-eval/pure-eval-0.2.2.ebuild | 37 ------------- 4 files changed, 144 deletions(-) diff --git a/dev-python/pure-eval/Manifest b/dev-python/pure-eval/Manifest index 429c6ba56260..f27351ab82b5 100644 --- a/dev-python/pure-eval/Manifest +++ b/dev-python/pure-eval/Manifest @@ -1,2 +1 @@ -DIST pure_eval-0.2.2.tar.gz 19395 BLAKE2B 19f86a1436e5f1a026a24f62c435e8970d84960f4cde1de80c58949b1aede6aa7562e8430e10e3f7171212c31d5699a3321fad5fb2ea1eed961a30d43a632a79 SHA512 35d20cbbfd513b7ac341759e619401a5f57b7b9df8abd09ce6414d4ee6bfa45dcadbad7529d067e81ad7ea2107c14fd03783a3a77f8074dad30d2e5161656804 DIST pure_eval-0.2.3.tar.gz 19752 BLAKE2B 18ed36bf045ddcd351a8dd82079df409e26ed745e3c326a7743536bc3e74a880830f55fa1252113aa03b9830b5cac63601335cb6b877994861efb0b9b54a07d9 SHA512 8575f54aa7e522a3db86b80fdbe1f8518ef4ef17a160b2541f74d0853e123cffcbc9f04df9faeddfc7ed92bb6b1d27fb7b3ce2de1c66b6b13e453b7b2bf72052 diff --git a/dev-python/pure-eval/files/pure-eval-0.2.2-py313.patch b/dev-python/pure-eval/files/pure-eval-0.2.2-py313.patch deleted file mode 100644 index 9ec2d680b616..000000000000 --- a/dev-python/pure-eval/files/pure-eval-0.2.2-py313.patch +++ /dev/null @@ -1,63 +0,0 @@ -From 42e8a1f4a41b60c51619868f543e7b3ee82ac42f Mon Sep 17 00:00:00 2001 -From: Lumir Balhar <[email protected]> -Date: Wed, 15 May 2024 10:14:31 +0200 -Subject: [PATCH] Fix compatibility of check_copy_ast_without_context with Py - 3.13b1 - -Resolves: https://github.com/alexmojaki/pure_eval/issues/16 ---- - tests/test_utils.py | 11 ++++++++++- - 1 file changed, 10 insertions(+), 1 deletion(-) - -diff --git a/tests/test_utils.py b/tests/test_utils.py -index 172f50e..3a9cc9b 100644 ---- a/tests/test_utils.py -+++ b/tests/test_utils.py -@@ -58,7 +58,16 @@ def check_copy_ast_without_context(tree): - dump1 = ast.dump(tree) - dump2 = ast.dump(tree2) - normalised_dump1 = re.sub( -- r", ctx=(Load|Store|Del)\(\)", -+ # Two possible matches: -+ # - first one like ", ctx=…" where ", " should be removed -+ # - second one like "(ctx=…" where "(" should be kept -+ ( -+ r"(" -+ r", ctx=(Load|Store|Del)\(\)" -+ r"|" -+ r"(?<=\()ctx=(Load|Store|Del)\(\)" -+ r")" -+ ), - "", - dump1 - ) -From 89645cfd19d1480d586af50842f0ac264a036fa8 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <[email protected]> -Date: Sun, 9 Jun 2024 21:45:31 +0200 -Subject: [PATCH] Explicitly remove the ctx attribute in - copy_ast_without_context - -Python 3.13.0b2+ defaults to Load when we don't pass ctx -See https://github.com/python/cpython/pull/118871 ---- - pure_eval/utils.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/pure_eval/utils.py b/pure_eval/utils.py -index a8a3730..19ead65 100644 ---- a/pure_eval/utils.py -+++ b/pure_eval/utils.py -@@ -184,7 +184,12 @@ def copy_ast_without_context(x): - if field != 'ctx' - if hasattr(x, field) - } -- return type(x)(**kwargs) -+ a = type(x)(**kwargs) -+ if hasattr(a, 'ctx'): -+ # Python 3.13.0b2+ defaults to Load when we don't pass ctx -+ # https://github.com/python/cpython/pull/118871 -+ del a.ctx -+ return a - elif isinstance(x, list): - return list(map(copy_ast_without_context, x)) - else: diff --git a/dev-python/pure-eval/pure-eval-0.2.2-r1.ebuild b/dev-python/pure-eval/pure-eval-0.2.2-r1.ebuild deleted file mode 100644 index 3268f08fd3f0..000000000000 --- a/dev-python/pure-eval/pure-eval-0.2.2-r1.ebuild +++ /dev/null @@ -1,43 +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=( pypy3 python3_{10..13} ) - -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 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" - -distutils_enable_tests pytest - -PATCHES=( - # https://github.com/alexmojaki/pure_eval/commit/42e8a1f4a41b60c51619868f543e7b3ee82ac42f - # https://github.com/alexmojaki/pure_eval/pull/18 - "${FILESDIR}/${P}-py313.patch" -) - -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 -} diff --git a/dev-python/pure-eval/pure-eval-0.2.2.ebuild b/dev-python/pure-eval/pure-eval-0.2.2.ebuild deleted file mode 100644 index 2e9546fd7db9..000000000000 --- a/dev-python/pure-eval/pure-eval-0.2.2.ebuild +++ /dev/null @@ -1,37 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( pypy3 python3_{10..12} ) - -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 ~ia64 ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos ~x64-macos" - -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 -}
