1 |
commit: 4770d54128c0201ee9c0b58eb4d1536f9186df36 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 11:20:58 2022 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 17:15:27 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4770d541 |
7 |
|
8 |
dev-python/sip: drop 6.6.1 |
9 |
|
10 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
11 |
|
12 |
dev-python/sip/Manifest | 1 - |
13 |
dev-python/sip/files/sip-6.5.0-pep517-args.patch | 190 --------------------- |
14 |
.../files/sip-6.6.1-python311-invalid-regex.patch | 21 --- |
15 |
dev-python/sip/sip-6.6.1.ebuild | 39 ----- |
16 |
4 files changed, 251 deletions(-) |
17 |
|
18 |
diff --git a/dev-python/sip/Manifest b/dev-python/sip/Manifest |
19 |
index 9c197847ec48..d4f0c3000b0d 100644 |
20 |
--- a/dev-python/sip/Manifest |
21 |
+++ b/dev-python/sip/Manifest |
22 |
@@ -1,3 +1,2 @@ |
23 |
DIST sip-4.19.25.tar.gz 1056384 BLAKE2B f92e105e6b30e871aea2883dc9cd459e4032fb139a9eaff153a3412a66b39df4d7ac985711a2693aee83195ff3850ae648bee4102f7fc3cc30d09885799f2b98 SHA512 60fb4133c68869bf0993144978b4847d94a0f9c7b477f64a346ea133cfe35bc11820204ab327dcf9a929b6f65a26d16cc7efbce65e49967c3347b39376e57001 |
24 |
-DIST sip-6.6.1.tar.gz 1134991 BLAKE2B dec51bce80566ffad25dd67686a746134e032f3cf1696fbf256d000d266f9e3921dcafaead40bcf3dc67d42aa89c5982d090abde7d8b3c3f8ec6ddd4470b9a43 SHA512 49d03730819210f4239946da0ddd0694583dc13458997edc11895ef399d8017f38e3354a87bae495492c3cf3334b810c2d924ec0f5bbb129e88cc15eac720c01 |
25 |
DIST sip-6.6.2.tar.gz 1143535 BLAKE2B 92158af35be47a7581b71d97d1d79f6ca9022144144e3e44e09ccbfa3a285ebb4cec1264e621275159345c33f0f45c86183f7ea1fb3792aca2aeb64d9e46f7ad SHA512 5e031baa9ff6d8d19f4c36ef7c3900c6440d261102259cdc12fce28471a849fed80c123bf31ad506b099a925b2967eb5863e6736ac00fbcff99198711cf0e5e5 |
26 |
|
27 |
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 |
28 |
deleted file mode 100644 |
29 |
index c4d39dcf6156..000000000000 |
30 |
--- a/dev-python/sip/files/sip-6.5.0-pep517-args.patch |
31 |
+++ /dev/null |
32 |
@@ -1,190 +0,0 @@ |
33 |
-Backport from https://www.riverbankcomputing.com/hg/sip/ |
34 |
- |
35 |
-changeset: 2771:8543f04b374f |
36 |
-branch: 6.6-maint |
37 |
-tag: tip |
38 |
-user: Phil Thompson <phil@××××××××××××××××××.com> |
39 |
-date: Tue May 10 13:58:28 2022 +0100 |
40 |
-summary: Fixed the PEP571 backend to handle multiple instances of the same config |
41 |
- |
42 |
-changeset: 2769:c02af095a016 |
43 |
-branch: 6.6-maint |
44 |
-user: Phil Thompson <phil@××××××××××××××××××.com> |
45 |
-date: Sat May 07 15:18:14 2022 +0100 |
46 |
-summary: Fix an API backward incompatibility. |
47 |
- |
48 |
-changeset: 2768:98dbce3e62f1 |
49 |
-branch: 6.6-maint |
50 |
-user: Phil Thompson <phil@××××××××××××××××××.com> |
51 |
-date: Sat May 07 15:03:49 2022 +0100 |
52 |
-summary: Any config settings passed by a PEP 571 frontend are now used. |
53 |
- |
54 |
-diff -r 8583e2bb1b32 sipbuild/abstract_project.py |
55 |
---- a/sipbuild/abstract_project.py Thu Nov 25 18:15:32 2021 +0000 |
56 |
-+++ b/sipbuild/abstract_project.py Tue May 10 16:15:30 2022 +0200 |
57 |
-@@ -1,4 +1,4 @@ |
58 |
--# Copyright (c) 2020, Riverbank Computing Limited |
59 |
-+# Copyright (c) 2022, Riverbank Computing Limited |
60 |
- # All rights reserved. |
61 |
- # |
62 |
- # This copy of SIP is licensed for use under the terms of the SIP License |
63 |
-@@ -34,7 +34,7 @@ |
64 |
- """ This specifies the API of a project. """ |
65 |
- |
66 |
- @classmethod |
67 |
-- def bootstrap(cls, tool, tool_description=''): |
68 |
-+ def bootstrap(cls, tool, tool_description='', arguments=None): |
69 |
- """ Return an AbstractProject instance fully configured for a |
70 |
- particular command line tool. |
71 |
- """ |
72 |
-@@ -79,6 +79,10 @@ |
73 |
- "The project factory did not return an AbstractProject " |
74 |
- "object") |
75 |
- |
76 |
-+ # We set this as an attribute rather than change the API of the ctor or |
77 |
-+ # setup(). |
78 |
-+ project.arguments = arguments |
79 |
-+ |
80 |
- # Complete the configuration of the project. |
81 |
- project.setup(pyproject, tool, tool_description) |
82 |
- |
83 |
-diff -r 8583e2bb1b32 sipbuild/api.py |
84 |
---- a/sipbuild/api.py Thu Nov 25 18:15:32 2021 +0000 |
85 |
-+++ b/sipbuild/api.py Tue May 10 16:15:30 2022 +0200 |
86 |
-@@ -1,4 +1,4 @@ |
87 |
--# Copyright (c) 2019, Riverbank Computing Limited |
88 |
-+# Copyright (c) 2022, Riverbank Computing Limited |
89 |
- # All rights reserved. |
90 |
- # |
91 |
- # This copy of SIP is licensed for use under the terms of the SIP License |
92 |
-@@ -28,10 +28,8 @@ |
93 |
- def build_sdist(sdist_directory, config_settings=None): |
94 |
- """ The PEP 517 hook for building an sdist from pyproject.toml. """ |
95 |
- |
96 |
-- # Note that we ignore config_settings until we have a frontend that we can |
97 |
-- # fully test with. (pip seems lacking at the moment.) |
98 |
-- |
99 |
-- project = AbstractProject.bootstrap('pep517') |
100 |
-+ project = AbstractProject.bootstrap('sdist', |
101 |
-+ arguments=_convert_config_settings(config_settings)) |
102 |
- |
103 |
- # pip executes this in a separate process and doesn't handle exceptions |
104 |
- # very well. However it does capture stdout and (eventually) show it to |
105 |
-@@ -45,10 +43,8 @@ |
106 |
- def build_wheel(wheel_directory, config_settings=None, metadata_directory=None): |
107 |
- """ The PEP 517 hook for building a wheel from pyproject.toml. """ |
108 |
- |
109 |
-- # Note that we ignore config_settings until we have a frontend that we can |
110 |
-- # fully test with. (pip seems lacking at the moment.) |
111 |
-- |
112 |
-- project = AbstractProject.bootstrap('pep517') |
113 |
-+ project = AbstractProject.bootstrap('wheel', |
114 |
-+ arguments=_convert_config_settings(config_settings)) |
115 |
- |
116 |
- # pip executes this in a separate process and doesn't handle exceptions |
117 |
- # very well. However it does capture stdout and (eventually) show it to |
118 |
-@@ -57,3 +53,26 @@ |
119 |
- return project.build_wheel(wheel_directory) |
120 |
- except Exception as e: |
121 |
- handle_exception(e) |
122 |
-+ |
123 |
-+ |
124 |
-+def _convert_config_settings(config_settings): |
125 |
-+ """ Return any configuration settings from the frontend to a pseudo-command |
126 |
-+ line. |
127 |
-+ """ |
128 |
-+ |
129 |
-+ if config_settings is None: |
130 |
-+ config_settings = {} |
131 |
-+ |
132 |
-+ args = [] |
133 |
-+ |
134 |
-+ for name, value in config_settings.items(): |
135 |
-+ if value: |
136 |
-+ if not isinstance(value, list): |
137 |
-+ value = [value] |
138 |
-+ |
139 |
-+ for m_value in value: |
140 |
-+ args.append(name + '=' + m_value) |
141 |
-+ else: |
142 |
-+ args.append(name) |
143 |
-+ |
144 |
-+ return args |
145 |
-diff -r 8583e2bb1b32 sipbuild/configurable.py |
146 |
---- a/sipbuild/configurable.py Thu Nov 25 18:15:32 2021 +0000 |
147 |
-+++ b/sipbuild/configurable.py Tue May 10 16:15:30 2022 +0200 |
148 |
-@@ -1,4 +1,4 @@ |
149 |
--# Copyright (c) 2021, Riverbank Computing Limited |
150 |
-+# Copyright (c) 2022, Riverbank Computing Limited |
151 |
- # All rights reserved. |
152 |
- # |
153 |
- # This copy of SIP is licensed for use under the terms of the SIP License |
154 |
-@@ -244,7 +244,7 @@ |
155 |
- """ |
156 |
- |
157 |
- # The tools that will build a set of bindings. |
158 |
-- BUILD_TOOLS = ('build', 'install', 'pep517', 'wheel') |
159 |
-+ BUILD_TOOLS = ('build', 'install', 'wheel') |
160 |
- |
161 |
- # All the valid tools. |
162 |
- _ALL_TOOLS = BUILD_TOOLS + ('sdist', ) |
163 |
-diff -r 8583e2bb1b32 sipbuild/project.py |
164 |
---- a/sipbuild/project.py Thu Nov 25 18:15:32 2021 +0000 |
165 |
-+++ b/sipbuild/project.py Tue May 10 16:15:30 2022 +0200 |
166 |
-@@ -155,6 +155,7 @@ |
167 |
- |
168 |
- # The current directory should contain the .toml file. |
169 |
- self.root_dir = os.getcwd() |
170 |
-+ self.arguments = None |
171 |
- self.bindings = collections.OrderedDict() |
172 |
- self.bindings_factories = [] |
173 |
- self.builder = None |
174 |
-@@ -204,11 +205,6 @@ |
175 |
- def apply_user_defaults(self, tool): |
176 |
- """ Set default values for user options that haven't been set yet. """ |
177 |
- |
178 |
-- # If we are the backend to a 3rd-party frontend (most probably pip) |
179 |
-- # then let it handle the verbosity of messages. |
180 |
-- if self.verbose is None and tool == '': |
181 |
-- self.verbose = True |
182 |
-- |
183 |
- # This is only used when creating sdist and wheel files. |
184 |
- if self.name is None: |
185 |
- self.name = self.metadata['name'] |
186 |
-@@ -569,14 +565,9 @@ |
187 |
- # Set the initial configuration from the pyproject.toml file. |
188 |
- self._set_initial_configuration(pyproject, tool) |
189 |
- |
190 |
-- # Add any tool-specific command line options for (so far unspecified) |
191 |
-+ # Add any tool-specific command line arguments for (so far unspecified) |
192 |
- # parts of the configuration. |
193 |
-- if tool != 'pep517': |
194 |
-- self._configure_from_command_line(tool, tool_description) |
195 |
-- else: |
196 |
-- # Until pip improves it's error reporting we give the user all the |
197 |
-- # help we can. |
198 |
-- self.verbose = True |
199 |
-+ self._configure_from_arguments(tool, tool_description) |
200 |
- |
201 |
- # Now that any help has been given we can report a problematic |
202 |
- # pyproject.toml file. |
203 |
-@@ -712,8 +703,8 @@ |
204 |
- for bindings in self.bindings.values(): |
205 |
- bindings.verify_configuration(tool) |
206 |
- |
207 |
-- def _configure_from_command_line(self, tool, tool_description): |
208 |
-- """ Update the configuration from the user supplied command line. """ |
209 |
-+ def _configure_from_arguments(self, tool, tool_description): |
210 |
-+ """ Update the configuration from any user supplied arguments. """ |
211 |
- |
212 |
- from argparse import SUPPRESS |
213 |
- from .argument_parser import ArgumentParser |
214 |
-@@ -739,7 +730,7 @@ |
215 |
- bindings.add_command_line_options(parser, tool, all_options) |
216 |
- |
217 |
- # Parse the arguments and update the corresponding configurables. |
218 |
-- args = parser.parse_args() |
219 |
-+ args = parser.parse_args(self.arguments) |
220 |
- |
221 |
- for option, configurables in all_options.items(): |
222 |
- for configurable in configurables: |
223 |
|
224 |
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 |
225 |
deleted file mode 100644 |
226 |
index 908111627854..000000000000 |
227 |
--- a/dev-python/sip/files/sip-6.6.1-python311-invalid-regex.patch |
228 |
+++ /dev/null |
229 |
@@ -1,21 +0,0 @@ |
230 |
- |
231 |
-# HG changeset patch |
232 |
-# User Phil Thompson <phil@××××××××××××××××××.com> |
233 |
-# Date 1651507410 -3600 |
234 |
-# Node ID 3d656f0765f508ea9714b5e7c9ce00e304e6f600 |
235 |
-# Parent c179f418c5bee188e3ec7a0c0e50f9eab34cf12f |
236 |
-Fixed indented directives. |
237 |
- |
238 |
-diff -r c179f418c5be -r 3d656f0765f5 sipbuild/generator/parser/tokens.py |
239 |
---- a/sipbuild/generator/parser/tokens.py Mon May 02 16:51:06 2022 +0100 |
240 |
-+++ b/sipbuild/generator/parser/tokens.py Mon May 02 17:03:30 2022 +0100 |
241 |
-@@ -174,7 +174,7 @@ |
242 |
- |
243 |
- # Handle directives. |
244 |
- def t_DIRECTIVE(t): |
245 |
-- r'(?m)^\s*%[a-zA-Z][a-zA-Z]*' |
246 |
-+ r'%[a-zA-Z][a-zA-Z]*' |
247 |
- |
248 |
- # The name of the directive is used as its type. |
249 |
- name = t.value[t.value.index('%') + 1:] |
250 |
- |
251 |
|
252 |
diff --git a/dev-python/sip/sip-6.6.1.ebuild b/dev-python/sip/sip-6.6.1.ebuild |
253 |
deleted file mode 100644 |
254 |
index fa5b7a2265af..000000000000 |
255 |
--- a/dev-python/sip/sip-6.6.1.ebuild |
256 |
+++ /dev/null |
257 |
@@ -1,39 +0,0 @@ |
258 |
-# Copyright 1999-2022 Gentoo Authors |
259 |
-# Distributed under the terms of the GNU General Public License v2 |
260 |
- |
261 |
-EAPI=8 |
262 |
- |
263 |
-PYTHON_COMPAT=( python3_{8..11} ) |
264 |
-DISTUTILS_USE_PEP517=setuptools |
265 |
-inherit distutils-r1 |
266 |
- |
267 |
-DESCRIPTION="Python bindings generator for C/C++ libraries" |
268 |
-HOMEPAGE="https://www.riverbankcomputing.com/software/sip/ https://pypi.org/project/sip/" |
269 |
- |
270 |
-MY_P=${PN}-${PV/_pre/.dev} |
271 |
-if [[ ${PV} == *_pre* ]]; then |
272 |
- SRC_URI="https://dev.gentoo.org/~pesa/distfiles/${MY_P}.tar.gz" |
273 |
-else |
274 |
- SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz" |
275 |
-fi |
276 |
-S=${WORKDIR}/${MY_P} |
277 |
- |
278 |
-LICENSE="|| ( GPL-2 GPL-3 SIP )" |
279 |
-SLOT="5" |
280 |
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86" |
281 |
- |
282 |
-RDEPEND=" |
283 |
- !<dev-python/sip-4.19.25-r1[${PYTHON_USEDEP}] |
284 |
- !=dev-python/sip-5.5.0-r0[${PYTHON_USEDEP}] |
285 |
- dev-python/packaging[${PYTHON_USEDEP}] |
286 |
- dev-python/ply[${PYTHON_USEDEP}] |
287 |
- dev-python/setuptools[${PYTHON_USEDEP}] |
288 |
- dev-python/toml[${PYTHON_USEDEP}] |
289 |
-" |
290 |
- |
291 |
-PATCHES=( |
292 |
- "${FILESDIR}/${P}-python311-invalid-regex.patch" |
293 |
- "${FILESDIR}/${PN}-6.5.0-pep517-args.patch" |
294 |
-) |
295 |
- |
296 |
-distutils_enable_sphinx doc --no-autodoc |