From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7C11B158094 for ; Mon, 26 Sep 2022 17:18:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B61E1E0DEA; Mon, 26 Sep 2022 17:18:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 96FFDE0DEA for ; Mon, 26 Sep 2022 17:18:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B376B34113D for ; Mon, 26 Sep 2022 17:18:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DA0805F1 for ; Mon, 26 Sep 2022 17:18:06 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1664212527.4770d54128c0201ee9c0b58eb4d1536f9186df36.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/sip/, dev-python/sip/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/sip/Manifest dev-python/sip/files/sip-6.5.0-pep517-args.patch dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch dev-python/sip/sip-6.6.1.ebuild X-VCS-Directories: dev-python/sip/ dev-python/sip/files/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 4770d54128c0201ee9c0b58eb4d1536f9186df36 X-VCS-Branch: master Date: Mon, 26 Sep 2022 17:18:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7cb79d28-3e34-44b5-a368-cabfb47c3f60 X-Archives-Hash: 689c4845ae751eeb32e51e75e5d70ec2 commit: 4770d54128c0201ee9c0b58eb4d1536f9186df36 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sat Sep 24 11:20:58 2022 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Mon Sep 26 17:15:27 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4770d541 dev-python/sip: drop 6.6.1 Signed-off-by: Andreas Sturmlechner gentoo.org> dev-python/sip/Manifest | 1 - dev-python/sip/files/sip-6.5.0-pep517-args.patch | 190 --------------------- .../files/sip-6.6.1-python311-invalid-regex.patch | 21 --- dev-python/sip/sip-6.6.1.ebuild | 39 ----- 4 files changed, 251 deletions(-) diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest index 9c197847ec48..d4f0c3000b0d 100644 --- a/dev-python/sip/Manifest +++ b/dev-python/sip/Manifest @@ -1,3 +1,2 @@ DIST sip-4.19.25.tar.gz 1056384 BLAKE2B f92e105e6b30e871aea2883dc9cd459e4032fb139a9eaff153a3412a66b39df4d7ac985711a2693aee83195ff3850ae648bee4102f7fc3cc30d09885799f2b98 SHA512 60fb4133c68869bf0993144978b4847d94a0f9c7b477f64a346ea133cfe35bc11820204ab327dcf9a929b6f65a26d16cc7efbce65e49967c3347b39376e57001 -DIST sip-6.6.1.tar.gz 1134991 BLAKE2B dec51bce80566ffad25dd67686a746134e032f3cf1696fbf256d000d266f9e3921dcafaead40bcf3dc67d42aa89c5982d090abde7d8b3c3f8ec6ddd4470b9a43 SHA512 49d03730819210f4239946da0ddd0694583dc13458997edc11895ef399d8017f38e3354a87bae495492c3cf3334b810c2d924ec0f5bbb129e88cc15eac720c01 DIST sip-6.6.2.tar.gz 1143535 BLAKE2B 92158af35be47a7581b71d97d1d79f6ca9022144144e3e44e09ccbfa3a285ebb4cec1264e621275159345c33f0f45c86183f7ea1fb3792aca2aeb64d9e46f7ad SHA512 5e031baa9ff6d8d19f4c36ef7c3900c6440d261102259cdc12fce28471a849fed80c123bf31ad506b099a925b2967eb5863e6736ac00fbcff99198711cf0e5e5 diff --git a/dev-python/sip/files/sip-6.5.0-pep517-args.patch b/dev-python/sip/files/sip-6.5.0-pep517-args.patch deleted file mode 100644 index c4d39dcf6156..000000000000 --- a/dev-python/sip/files/sip-6.5.0-pep517-args.patch +++ /dev/null @@ -1,190 +0,0 @@ -Backport from https://www.riverbankcomputing.com/hg/sip/ - -changeset: 2771:8543f04b374f -branch: 6.6-maint -tag: tip -user: Phil Thompson -date: Tue May 10 13:58:28 2022 +0100 -summary: Fixed the PEP571 backend to handle multiple instances of the same config - -changeset: 2769:c02af095a016 -branch: 6.6-maint -user: Phil Thompson -date: Sat May 07 15:18:14 2022 +0100 -summary: Fix an API backward incompatibility. - -changeset: 2768:98dbce3e62f1 -branch: 6.6-maint -user: Phil Thompson -date: Sat May 07 15:03:49 2022 +0100 -summary: Any config settings passed by a PEP 571 frontend are now used. - -diff -r 8583e2bb1b32 sipbuild/abstract_project.py ---- a/sipbuild/abstract_project.py Thu Nov 25 18:15:32 2021 +0000 -+++ b/sipbuild/abstract_project.py Tue May 10 16:15:30 2022 +0200 -@@ -1,4 +1,4 @@ --# Copyright (c) 2020, Riverbank Computing Limited -+# Copyright (c) 2022, Riverbank Computing Limited - # All rights reserved. - # - # This copy of SIP is licensed for use under the terms of the SIP License -@@ -34,7 +34,7 @@ - """ This specifies the API of a project. """ - - @classmethod -- def bootstrap(cls, tool, tool_description=''): -+ def bootstrap(cls, tool, tool_description='', arguments=None): - """ Return an AbstractProject instance fully configured for a - particular command line tool. - """ -@@ -79,6 +79,10 @@ - "The project factory did not return an AbstractProject " - "object") - -+ # We set this as an attribute rather than change the API of the ctor or -+ # setup(). -+ project.arguments = arguments -+ - # Complete the configuration of the project. - project.setup(pyproject, tool, tool_description) - -diff -r 8583e2bb1b32 sipbuild/api.py ---- a/sipbuild/api.py Thu Nov 25 18:15:32 2021 +0000 -+++ b/sipbuild/api.py Tue May 10 16:15:30 2022 +0200 -@@ -1,4 +1,4 @@ --# Copyright (c) 2019, Riverbank Computing Limited -+# Copyright (c) 2022, Riverbank Computing Limited - # All rights reserved. - # - # This copy of SIP is licensed for use under the terms of the SIP License -@@ -28,10 +28,8 @@ - def build_sdist(sdist_directory, config_settings=None): - """ The PEP 517 hook for building an sdist from pyproject.toml. """ - -- # Note that we ignore config_settings until we have a frontend that we can -- # fully test with. (pip seems lacking at the moment.) -- -- project = AbstractProject.bootstrap('pep517') -+ project = AbstractProject.bootstrap('sdist', -+ arguments=_convert_config_settings(config_settings)) - - # pip executes this in a separate process and doesn't handle exceptions - # very well. However it does capture stdout and (eventually) show it to -@@ -45,10 +43,8 @@ - def build_wheel(wheel_directory, config_settings=None, metadata_directory=None): - """ The PEP 517 hook for building a wheel from pyproject.toml. """ - -- # Note that we ignore config_settings until we have a frontend that we can -- # fully test with. (pip seems lacking at the moment.) -- -- project = AbstractProject.bootstrap('pep517') -+ project = AbstractProject.bootstrap('wheel', -+ arguments=_convert_config_settings(config_settings)) - - # pip executes this in a separate process and doesn't handle exceptions - # very well. However it does capture stdout and (eventually) show it to -@@ -57,3 +53,26 @@ - return project.build_wheel(wheel_directory) - except Exception as e: - handle_exception(e) -+ -+ -+def _convert_config_settings(config_settings): -+ """ Return any configuration settings from the frontend to a pseudo-command -+ line. -+ """ -+ -+ if config_settings is None: -+ config_settings = {} -+ -+ args = [] -+ -+ for name, value in config_settings.items(): -+ if value: -+ if not isinstance(value, list): -+ value = [value] -+ -+ for m_value in value: -+ args.append(name + '=' + m_value) -+ else: -+ args.append(name) -+ -+ return args -diff -r 8583e2bb1b32 sipbuild/configurable.py ---- a/sipbuild/configurable.py Thu Nov 25 18:15:32 2021 +0000 -+++ b/sipbuild/configurable.py Tue May 10 16:15:30 2022 +0200 -@@ -1,4 +1,4 @@ --# Copyright (c) 2021, Riverbank Computing Limited -+# Copyright (c) 2022, Riverbank Computing Limited - # All rights reserved. - # - # This copy of SIP is licensed for use under the terms of the SIP License -@@ -244,7 +244,7 @@ - """ - - # The tools that will build a set of bindings. -- BUILD_TOOLS = ('build', 'install', 'pep517', 'wheel') -+ BUILD_TOOLS = ('build', 'install', 'wheel') - - # All the valid tools. - _ALL_TOOLS = BUILD_TOOLS + ('sdist', ) -diff -r 8583e2bb1b32 sipbuild/project.py ---- a/sipbuild/project.py Thu Nov 25 18:15:32 2021 +0000 -+++ b/sipbuild/project.py Tue May 10 16:15:30 2022 +0200 -@@ -155,6 +155,7 @@ - - # The current directory should contain the .toml file. - self.root_dir = os.getcwd() -+ self.arguments = None - self.bindings = collections.OrderedDict() - self.bindings_factories = [] - self.builder = None -@@ -204,11 +205,6 @@ - def apply_user_defaults(self, tool): - """ Set default values for user options that haven't been set yet. """ - -- # If we are the backend to a 3rd-party frontend (most probably pip) -- # then let it handle the verbosity of messages. -- if self.verbose is None and tool == '': -- self.verbose = True -- - # This is only used when creating sdist and wheel files. - if self.name is None: - self.name = self.metadata['name'] -@@ -569,14 +565,9 @@ - # Set the initial configuration from the pyproject.toml file. - self._set_initial_configuration(pyproject, tool) - -- # Add any tool-specific command line options for (so far unspecified) -+ # Add any tool-specific command line arguments for (so far unspecified) - # parts of the configuration. -- if tool != 'pep517': -- self._configure_from_command_line(tool, tool_description) -- else: -- # Until pip improves it's error reporting we give the user all the -- # help we can. -- self.verbose = True -+ self._configure_from_arguments(tool, tool_description) - - # Now that any help has been given we can report a problematic - # pyproject.toml file. -@@ -712,8 +703,8 @@ - for bindings in self.bindings.values(): - bindings.verify_configuration(tool) - -- def _configure_from_command_line(self, tool, tool_description): -- """ Update the configuration from the user supplied command line. """ -+ def _configure_from_arguments(self, tool, tool_description): -+ """ Update the configuration from any user supplied arguments. """ - - from argparse import SUPPRESS - from .argument_parser import ArgumentParser -@@ -739,7 +730,7 @@ - bindings.add_command_line_options(parser, tool, all_options) - - # Parse the arguments and update the corresponding configurables. -- args = parser.parse_args() -+ args = parser.parse_args(self.arguments) - - for option, configurables in all_options.items(): - for configurable in configurables: diff --git a/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch b/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch deleted file mode 100644 index 908111627854..000000000000 --- a/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch +++ /dev/null @@ -1,21 +0,0 @@ - -# HG changeset patch -# User Phil Thompson -# Date 1651507410 -3600 -# Node ID 3d656f0765f508ea9714b5e7c9ce00e304e6f600 -# Parent c179f418c5bee188e3ec7a0c0e50f9eab34cf12f -Fixed indented directives. - -diff -r c179f418c5be -r 3d656f0765f5 sipbuild/generator/parser/tokens.py ---- a/sipbuild/generator/parser/tokens.py Mon May 02 16:51:06 2022 +0100 -+++ b/sipbuild/generator/parser/tokens.py Mon May 02 17:03:30 2022 +0100 -@@ -174,7 +174,7 @@ - - # Handle directives. - def t_DIRECTIVE(t): -- r'(?m)^\s*%[a-zA-Z][a-zA-Z]*' -+ r'%[a-zA-Z][a-zA-Z]*' - - # The name of the directive is used as its type. - name = t.value[t.value.index('%') + 1:] - diff --git a/dev-python/sip/sip-6.6.1.ebuild b/dev-python/sip/sip-6.6.1.ebuild deleted file mode 100644 index fa5b7a2265af..000000000000 --- a/dev-python/sip/sip-6.6.1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -PYTHON_COMPAT=( python3_{8..11} ) -DISTUTILS_USE_PEP517=setuptools -inherit distutils-r1 - -DESCRIPTION="Python bindings generator for C/C++ libraries" -HOMEPAGE="https://www.riverbankcomputing.com/software/sip/ https://pypi.org/project/sip/" - -MY_P=${PN}-${PV/_pre/.dev} -if [[ ${PV} == *_pre* ]]; then - SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" -else - SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" -fi -S=${WORKDIR}/${MY_P} - -LICENSE="|| ( GPL-2 GPL-3 SIP )" -SLOT="5" -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86" - -RDEPEND=" - !