From 7fa8a1e3f149eea4c844c47cfe26136ed7614c58 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 15 Apr 2024 12:04:03 +0100 Subject: gentoo auto-resync : 15:04:2024 - 12:04:02 --- dev-python/astunparse/Manifest | 6 -- dev-python/astunparse/astunparse-1.6.3-r1.ebuild | 39 ------------ .../astunparse/files/astunparse-1.6.2-tests.patch | 23 ------- .../astunparse/files/astunparse-1.6.3-py39.patch | 74 ---------------------- .../files/astunparse-1.6.3-test-py311.patch | 26 -------- dev-python/astunparse/metadata.xml | 16 ----- 6 files changed, 184 deletions(-) delete mode 100644 dev-python/astunparse/Manifest delete mode 100644 dev-python/astunparse/astunparse-1.6.3-r1.ebuild delete mode 100644 dev-python/astunparse/files/astunparse-1.6.2-tests.patch delete mode 100644 dev-python/astunparse/files/astunparse-1.6.3-py39.patch delete mode 100644 dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch delete mode 100644 dev-python/astunparse/metadata.xml (limited to 'dev-python/astunparse') diff --git a/dev-python/astunparse/Manifest b/dev-python/astunparse/Manifest deleted file mode 100644 index 550e08874cb4..000000000000 --- a/dev-python/astunparse/Manifest +++ /dev/null @@ -1,6 +0,0 @@ -AUX astunparse-1.6.2-tests.patch 707 BLAKE2B 00d45b4b6bfdc70828d173985533345798a5982fa4f345e83c07e39c58dafffbf2a50ae1657df02769351a402e66faec443f7e63604ef457517e570803c50b3b SHA512 d1a86860548e0b904cc70017e0b5fa3a4e8da6bd1c03571e196e01a660d31a3ae03dec77c36945d7b5e53920b2531f0a7a0a5e3edc15b5a61c53ddafe83156d4 -AUX astunparse-1.6.3-py39.patch 2466 BLAKE2B 8779b2a98e801f675f67e2f57b283401aa577f76bfc9633c0f17af9ee9c11f1508c3b23f4bba12040012e9796f887bb7253a40603f1777a1f8cb95c5cd080c4f SHA512 6bd1a46f48e96634f67ffbd49fce4a3e9251f030a1a4298455bbe92f09bdaf1d03ce807b9bd44b8e04218d80df72974570f2c4de00e617dc6557ce537fb2abcf -AUX astunparse-1.6.3-test-py311.patch 995 BLAKE2B 92223486f919f516a294d265c2de0a502d055708be86ef297ccbb69647ca032f62af9aa44520e376e88c311e99fa0b48db617fc4bf7c6b2a8f502e038f0545f8 SHA512 3e9c8dbda3e7f07c438dd77a761c539fd212cddb62bb876a78482a72a6717ff00e1e3625f0b922dcfd27443b62520d5dafbe9651b515fca522e9b95cc774c87d -DIST astunparse-1.6.3.tar.gz 18290 BLAKE2B d7e6fa3ba58c6e112eb84720832890f4515b1c4ed420587565cdff37da893c07eefd0b9eb00795a3eb08bf56834d65150298a6be65e524b0c267c38e6f9c20d1 SHA512 12e99b32524e551494d3053a57aeb646bca8a96a9aa17b0737e6dace6c11874e2e7633d82197cacc0b55622bea637030344ab45c8db57ef244bd63663799d2e9 -EBUILD astunparse-1.6.3-r1.ebuild 783 BLAKE2B ce374b4d7d1e8894cced9f93bd7e7cfb041073d00663c21d31cbd0bdc3993130e9e6394ead07b00a17966bee8fefe93488650342a902516d040d0e876256c9f7 SHA512 dc17cd42e800bd4fd8eb0bce5e4adcd8718ccf564779009f114b9d7e24c1426e7353f5faf8e092898708b1fa7c764671de24e046a88cc10ceed8183ea6f9ea4f -MISC metadata.xml 488 BLAKE2B 9329c8e69d664603c1440c77afc371dcffa56c65b382f9d32d8b7917a689f20b966f7da15376c22119127f02070337e19448ccf1fb00215c5fc965be9056498a SHA512 d59e98b53bd6b962b554673200506373fe73e20aa50e3a56ed0e591061365d6da0d16c1ffbc799ed6eda65d6da27c349fe5e66f298011330e8c59882ff22a3b9 diff --git a/dev-python/astunparse/astunparse-1.6.3-r1.ebuild b/dev-python/astunparse/astunparse-1.6.3-r1.ebuild deleted file mode 100644 index 9b2343f7d389..000000000000 --- a/dev-python/astunparse/astunparse-1.6.3-r1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 2020-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..11} ) - -inherit distutils-r1 pypi - -DESCRIPTION="Astun parser for python" -HOMEPAGE=" - https://github.com/simonpercivall/astunparse/ - https://pypi.org/project/astunparse/ -" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~ppc ppc64 ~riscv ~sparc x86" - -RDEPEND=" - >=dev-python/six-1.6.1[${PYTHON_USEDEP}] - >=dev-python/wheel-0.23.0[${PYTHON_USEDEP}] -" - -PATCHES=( - "${FILESDIR}/astunparse-1.6.2-tests.patch" - # From Fedora - "${FILESDIR}/${P}-py39.patch" - # From Debian - "${FILESDIR}/${P}-test-py311.patch" -) - -distutils_enable_tests unittest - -python_install_all() { - distutils-r1_python_install_all - dodoc *.rst -} diff --git a/dev-python/astunparse/files/astunparse-1.6.2-tests.patch b/dev-python/astunparse/files/astunparse-1.6.2-tests.patch deleted file mode 100644 index b82c22831a9b..000000000000 --- a/dev-python/astunparse/files/astunparse-1.6.2-tests.patch +++ /dev/null @@ -1,23 +0,0 @@ -diff --git a/tests/common.py b/tests/common.py -index 95b9755..41123de 100644 ---- a/tests/common.py -+++ b/tests/common.py -@@ -1,6 +1,7 @@ - import codecs - import os - import sys -+import site - if sys.version_info < (2, 7): - import unittest2 as unittest - else: -@@ -175,9 +176,7 @@ class AstunparseCommonTestCase: - def check_roundtrip(self, code1, filename="internal", mode="exec"): - raise NotImplementedError() - -- test_directories = [ -- os.path.join(getattr(sys, 'real_prefix', sys.prefix), -- 'lib', 'python%s.%s' % sys.version_info[:2])] -+ test_directories = [os.path.dirname(d) for d in site.getsitepackages()] - - def test_files(self): - names = [] diff --git a/dev-python/astunparse/files/astunparse-1.6.3-py39.patch b/dev-python/astunparse/files/astunparse-1.6.3-py39.patch deleted file mode 100644 index ab8116a559ac..000000000000 --- a/dev-python/astunparse/files/astunparse-1.6.3-py39.patch +++ /dev/null @@ -1,74 +0,0 @@ -From 0388a0d2f42401dcedf7f89d3c291cfed3e4a3d5 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Wed, 8 Jul 2020 20:15:57 +0200 -Subject: [PATCH 1/2] Adapt dump() behavior to match ast.dump() on Python 3.9+ - -In Python 3.9+, ast.dump() omits optional fields/attributes from the output if -their value is None. Such defaults are defined as class attributes. - -See https://bugs.python.org/issue36287 -And https://github.com/python/cpython/pull/18843 - -This patch does not change the output on previous Python versions, -because the class attributes are missing there. - -Fixes https://github.com/simonpercivall/astunparse/issues/56 ---- - lib/astunparse/printer.py | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/lib/astunparse/printer.py b/lib/astunparse/printer.py -index 92d64f7..7a33deb 100644 ---- a/lib/astunparse/printer.py -+++ b/lib/astunparse/printer.py -@@ -4,6 +4,9 @@ - import six - - -+_NOPE = object() -+ -+ - class Printer(ast.NodeVisitor): - - def __init__(self, file=sys.stdout, indent=" "): -@@ -19,6 +22,7 @@ def write(self, text): - self.f.write(six.text_type(text)) - - def generic_visit(self, node): -+ cls = type(node) - - if isinstance(node, list): - nodestart = "[" -@@ -27,7 +31,8 @@ def generic_visit(self, node): - else: - nodestart = type(node).__name__ + "(" - nodeend = ")" -- children = [(name + "=", value) for name, value in ast.iter_fields(node)] -+ children = [(name + "=", value) for name, value in ast.iter_fields(node) -+ if not (value is None and getattr(cls, name, _NOPE) is None)] - - if len(children) > 1: - self.indentation += 1 - -From ea2b578a1b653e73696db2392b8e3d5bf75dadc7 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= -Date: Wed, 8 Jul 2020 20:21:17 +0200 -Subject: [PATCH 2/2] Test and support Python 3.9 - ---- - setup.py | 1 + - tox.ini | 2 +- - 2 files changed, 2 insertions(+), 1 deletion(-) - -diff --git a/setup.py b/setup.py -index e5a277a..29b384b 100755 ---- a/setup.py -+++ b/setup.py -@@ -52,6 +52,7 @@ def read_version(): - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Programming Language :: Python :: 3.8', -+ 'Programming Language :: Python :: 3.9', - 'Topic :: Software Development :: Code Generators', - ], - test_suite='tests', diff --git a/dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch b/dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch deleted file mode 100644 index f17ff76f0f6f..000000000000 --- a/dev-python/astunparse/files/astunparse-1.6.3-test-py311.patch +++ /dev/null @@ -1,26 +0,0 @@ -From: Carsten Schoenert -Date: Sat, 31 Dec 2022 12:01:26 +0100 -Subject: tests: Skip test_files() on Python >= 3.11 - -Given functions from astunparse are now mostly "battery included" in -Python 3.10 and ongoing und the test itself is only a small part of the -testing I think it's o.k. to simply skip now this test until upstream -will probably do some adjustment. - -Forwarded: https://github.com/simonpercivall/astunparse/issues/67 ---- - tests/common.py | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/tests/common.py b/tests/common.py -index 95b9755..7c8fa27 100644 ---- a/tests/common.py -+++ b/tests/common.py -@@ -179,6 +179,7 @@ class AstunparseCommonTestCase: - os.path.join(getattr(sys, 'real_prefix', sys.prefix), - 'lib', 'python%s.%s' % sys.version_info[:2])] - -+ @unittest.skipIf(sys.version_info >= (3, 11), "Ignoring if Python >= 3.11") - def test_files(self): - names = [] - for test_dir in self.test_directories: diff --git a/dev-python/astunparse/metadata.xml b/dev-python/astunparse/metadata.xml deleted file mode 100644 index bf7649e44504..000000000000 --- a/dev-python/astunparse/metadata.xml +++ /dev/null @@ -1,16 +0,0 @@ - - - - - williamh@gentoo.org - William Hubbs - - - python@gentoo.org - Python - - - simonpercivall/astunparse - astunparse - - -- cgit v1.2.3