Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/spyder/, dev-python/spyder/files/
Date: Wed, 26 Feb 2020 22:02:23
Message-Id: 1582754201.13dda237851240c5a2eec610612e7458d0face48.asturm@gentoo
1 commit: 13dda237851240c5a2eec610612e7458d0face48
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
3 AuthorDate: Wed Feb 26 19:07:02 2020 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 26 21:56:41 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13dda237
7
8 dev-python/spyder: Clean up spyder-3.x.x versions
9
10 Bug: https://bugs.gentoo.org/709866
11
12 Package-Manager: Portage-2.3.89, Repoman-2.3.20
13 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
14 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
15
16 dev-python/spyder/Manifest | 6 +-
17 dev-python/spyder/files/spyder-3.2.4-build.patch | 130 ---------------------
18 dev-python/spyder/files/spyder-3.2.8-build.patch | 129 --------------------
19 dev-python/spyder/files/spyder-3.3.0-build.patch | 49 --------
20 dev-python/spyder/files/spyder-3.3.1-build.patch | 49 --------
21 .../spyder/files/spyder-4.0.1-py3-only.patch | 56 +++++++++
22 dev-python/spyder/metadata.xml | 3 -
23 dev-python/spyder/spyder-3.2.4.ebuild | 62 ----------
24 dev-python/spyder/spyder-3.2.8.ebuild | 81 -------------
25 dev-python/spyder/spyder-3.3.0.ebuild | 74 ------------
26 dev-python/spyder/spyder-3.3.1.ebuild | 74 ------------
27 ...{spyder-4.0.1.ebuild => spyder-4.0.1-r1.ebuild} | 22 +---
28 12 files changed, 63 insertions(+), 672 deletions(-)
29
30 diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest
31 index 24947a0ce42..aaa6df24d22 100644
32 --- a/dev-python/spyder/Manifest
33 +++ b/dev-python/spyder/Manifest
34 @@ -1,6 +1,2 @@
35 -DIST spyder-3.2.4.tar.gz 3345797 BLAKE2B 2df946f257fee7e87dd922b6ed3b3c0fa02438560cb7fa4087f25498eb134bfc8c342a0a928be37f08448dfea2917380a8521ead13954091b1854616012ace91 SHA512 46e89c68545695d1e64aaafdd2ed724b152a41088f1bfa645b8c66d8ae6bcc2d86e9830cd3f16edfb8027aad5786dfb67f2a8371839dd515df8ebe34446716e6
36 -DIST spyder-3.2.8.tar.gz 3414627 BLAKE2B 95f85f719eba20eb9fed5183cfac582b040abc93724df512188d14167a1663c5be9906dfc499feda9f8b0d7a713c093dbf98e4f20f732e0e9669397e1b7c8482 SHA512 03dea90632af510cfc8c4cc684068213a54dac9eef671f04c83663dd40eb480a4b818e2d040efa7a78a0d17044018aa76f2931abbf344eb684094fc7a86ddf5e
37 -DIST spyder-3.3.0.tar.gz 2782654 BLAKE2B e85ef52109c723d6b1b011f0e81ab3a46d3e0e6ba72fd34a1eda9ed650c9e03532e8fd72e05365367f62035a6f03d6ec32d35314c54438bf639070c7bebfb4d6 SHA512 53a2b438afe245092eda4d202d2453b5b93d6682aafcdb00bf251ddcdb30cee2d81d8adadbe23fa36f64fa5f917b327690cb8f9e2cf5c0da2841b5eda648a26f
38 -DIST spyder-3.3.1.tar.gz 2786730 BLAKE2B d906b5750cb620db41aec514a64d132b9ee5a992047828faffe11af5abd22d0cec7b876dfe79c6d378804373e8db5c661214f5730833e7599bf13b80d4dc16d6 SHA512 91d648a2717b5d5386115ba800fdd98884e609b213007dbaa09c7d16335f1b9ec3d0bc6b32d1677db8c2704e990e70eaa04d6d1efc800008cddfa511105e9c68
39 -DIST spyder-4.0.1-docs.tar.gz 2257654 BLAKE2B a1d245c018d551e639d5acc862e09132ba80411c745430a5d16ff137c12919ec0b6e32d180aa629ba8dce3776826d754a4e843647b642086565e7a00c6dca94a SHA512 a62a1fd39833d827a2f9be357a2ed82eca37cc096a20a91030af8746d401b517d76a4f6a036c76eaa8355a88db6b2be8009e6b58d5539b57c43091677e93e62c
40 DIST spyder-4.0.1.tar.gz 10783565 BLAKE2B 5d264991b9bfc8118ef91f929269a300932cb0078b70c54613836c4337dc41214aa4ab81dacb4a535aaa6dea6b1eb591e25c7071664dc102e218373a0d7f8824 SHA512 9249a3b4a73ebe7a485d75fe2bea68bfa106c8ad0710120a6e05a43e3e2a65f9076904d1104180e925ab282b1d9da712c3509e0a5a7cfe3bd5ea8a95a1617bdd
41 +DIST spyder-docs-7c0b590.tar.gz 2257637 BLAKE2B 7e9528fde453631227ece3bd8c9163a0b3daadf3a83160b5475f943c49e7a559ff33dfe03531240b99571c535887ecff8459116d566dd7c739c74c4165e00060 SHA512 4d9548cc69db85ae6e93cac64e680460da6f9e76bf8b1265b31fbd4925786d29427de40bf06fd52ba807b0bb8f6c224e35b809c0e015a77013deb383e6d666f8
42
43 diff --git a/dev-python/spyder/files/spyder-3.2.4-build.patch b/dev-python/spyder/files/spyder-3.2.4-build.patch
44 deleted file mode 100644
45 index 2a1fee52131..00000000000
46 --- a/dev-python/spyder/files/spyder-3.2.4-build.patch
47 +++ /dev/null
48 @@ -1,130 +0,0 @@
49 ---- spyder-3.2.3.orig/setup.py 2017-08-29 00:42:56.000000000 +0200
50 -+++ spyder-3.2.3/setup.py 2017-09-16 20:57:08.610147911 +0200
51 -@@ -77,13 +77,7 @@
52 - def get_data_files():
53 - """Return data_files in a platform dependent manner"""
54 - if sys.platform.startswith('linux'):
55 -- if PY3:
56 -- data_files = [('share/applications', ['scripts/spyder3.desktop']),
57 -- ('share/pixmaps', ['img_src/spyder3.png']),
58 -- ('share/metainfo', ['scripts/spyder3.appdata.xml'])]
59 -- else:
60 -- data_files = [('share/applications', ['scripts/spyder.desktop']),
61 -- ('share/pixmaps', ['img_src/spyder.png'])]
62 -+ data_files = [('share/pixmaps', ['img_src/spyder.png'])]
63 - elif os.name == 'nt':
64 - data_files = [('scripts', ['img_src/spyder.ico',
65 - 'img_src/spyder_reset.ico'])]
66 -@@ -106,102 +100,6 @@
67 -
68 -
69 - #==============================================================================
70 --# Make Linux detect Spyder desktop file
71 --#==============================================================================
72 --class MyInstallData(install_data):
73 -- def run(self):
74 -- install_data.run(self)
75 -- if sys.platform.startswith('linux'):
76 -- try:
77 -- subprocess.call(['update-desktop-database'])
78 -- except:
79 -- print("ERROR: unable to update desktop database",
80 -- file=sys.stderr)
81 --CMDCLASS = {'install_data': MyInstallData}
82 --
83 --
84 --#==============================================================================
85 --# Sphinx build (documentation)
86 --#==============================================================================
87 --def get_html_help_exe():
88 -- """Return HTML Help Workshop executable path (Windows only)"""
89 -- if os.name == 'nt':
90 -- hhc_base = r'C:\Program Files%s\HTML Help Workshop\hhc.exe'
91 -- for hhc_exe in (hhc_base % '', hhc_base % ' (x86)'):
92 -- if osp.isfile(hhc_exe):
93 -- return hhc_exe
94 -- else:
95 -- return
96 --
97 --try:
98 -- from sphinx import setup_command
99 --
100 -- class MyBuild(build):
101 -- user_options = [('no-doc', None, "Don't build Spyder documentation")] \
102 -- + build.user_options
103 -- def __init__(self, *args, **kwargs):
104 -- build.__init__(self, *args, **kwargs)
105 -- self.no_doc = False
106 -- def with_doc(self):
107 -- setup_dir = os.path.dirname(os.path.abspath(__file__))
108 -- is_doc_dir = os.path.isdir(os.path.join(setup_dir, 'doc'))
109 -- install_obj = self.distribution.get_command_obj('install')
110 -- return (is_doc_dir and not self.no_doc and not install_obj.no_doc)
111 -- sub_commands = build.sub_commands + [('build_doc', with_doc)]
112 -- CMDCLASS['build'] = MyBuild
113 --
114 --
115 -- class MyInstall(install):
116 -- user_options = [('no-doc', None, "Don't build Spyder documentation")] \
117 -- + install.user_options
118 -- def __init__(self, *args, **kwargs):
119 -- install.__init__(self, *args, **kwargs)
120 -- self.no_doc = False
121 -- CMDCLASS['install'] = MyInstall
122 --
123 --
124 -- class MyBuildDoc(setup_command.BuildDoc):
125 -- def run(self):
126 -- build = self.get_finalized_command('build')
127 -- sys.path.insert(0, os.path.abspath(build.build_lib))
128 -- dirname = self.distribution.get_command_obj('build').build_purelib
129 -- self.builder_target_dir = osp.join(dirname, 'spyder', 'doc')
130 --
131 -- if not osp.exists(self.builder_target_dir):
132 -- os.mkdir(self.builder_target_dir)
133 --
134 -- hhc_exe = get_html_help_exe()
135 -- self.builder = "html" if hhc_exe is None else "htmlhelp"
136 --
137 -- try:
138 -- setup_command.BuildDoc.run(self)
139 -- except UnicodeDecodeError:
140 -- print("ERROR: unable to build documentation because Sphinx "\
141 -- "do not handle source path with non-ASCII characters. "\
142 -- "Please try to move the source package to another "\
143 -- "location (path with *only* ASCII characters).",
144 -- file=sys.stderr)
145 -- sys.path.pop(0)
146 --
147 -- # Building chm doc, if HTML Help Workshop is installed
148 -- if hhc_exe is not None:
149 -- fname = osp.join(self.builder_target_dir, 'Spyderdoc.chm')
150 -- subprocess.call('"%s" %s' % (hhc_exe, fname), shell=True)
151 -- if osp.isfile(fname):
152 -- dest = osp.join(dirname, 'spyder')
153 -- try:
154 -- shutil.move(fname, dest)
155 -- except shutil.Error:
156 -- print("Unable to replace %s" % dest)
157 -- shutil.rmtree(self.builder_target_dir)
158 --
159 -- CMDCLASS['build_doc'] = MyBuildDoc
160 --except ImportError:
161 -- print('WARNING: unable to build documentation because Sphinx '\
162 -- 'is not installed', file=sys.stderr)
163 --
164 --
165 --#==============================================================================
166 - # Main scripts
167 - #==============================================================================
168 - # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows
169 -@@ -261,8 +159,7 @@
170 - 'Programming Language :: Python :: 3',
171 - 'Development Status :: 5 - Production/Stable',
172 - 'Topic :: Scientific/Engineering',
173 -- 'Topic :: Software Development :: Widget Sets'],
174 -- cmdclass=CMDCLASS)
175 -+ 'Topic :: Software Development :: Widget Sets'])
176 -
177 -
178 - #==============================================================================
179
180 diff --git a/dev-python/spyder/files/spyder-3.2.8-build.patch b/dev-python/spyder/files/spyder-3.2.8-build.patch
181 deleted file mode 100644
182 index b21c77d660b..00000000000
183 --- a/dev-python/spyder/files/spyder-3.2.8-build.patch
184 +++ /dev/null
185 @@ -1,129 +0,0 @@
186 ---- spyder-3.2.8/setup.py 2018-03-23 14:00:00.000000000 +0100
187 -+++ spyder-3.2.8/setup.py 2018-03-23 14:00:00.000000001 +0100
188 -@@ -77,12 +77,7 @@
189 - def get_data_files():
190 - """Return data_files in a platform dependent manner"""
191 - if sys.platform.startswith('linux'):
192 -- if PY3:
193 -- data_files = [('share/applications', ['scripts/spyder3.desktop']),
194 -- ('share/icons', ['img_src/spyder3.png']),
195 -- ('share/metainfo', ['scripts/spyder3.appdata.xml'])]
196 -- else:
197 -- data_files = [('share/applications', ['scripts/spyder.desktop']),
198 -+ data_files = [('share/applications', ['scripts/spyder.desktop']),
199 - ('share/icons', ['img_src/spyder.png'])]
200 - elif os.name == 'nt':
201 - data_files = [('scripts', ['img_src/spyder.ico',
202 -@@ -106,102 +101,6 @@
203 -
204 -
205 - #==============================================================================
206 --# Make Linux detect Spyder desktop file
207 --#==============================================================================
208 --class MyInstallData(install_data):
209 -- def run(self):
210 -- install_data.run(self)
211 -- if sys.platform.startswith('linux'):
212 -- try:
213 -- subprocess.call(['update-desktop-database'])
214 -- except:
215 -- print("ERROR: unable to update desktop database",
216 -- file=sys.stderr)
217 --CMDCLASS = {'install_data': MyInstallData}
218 --
219 --
220 --#==============================================================================
221 --# Sphinx build (documentation)
222 --#==============================================================================
223 --def get_html_help_exe():
224 -- """Return HTML Help Workshop executable path (Windows only)"""
225 -- if os.name == 'nt':
226 -- hhc_base = r'C:\Program Files%s\HTML Help Workshop\hhc.exe'
227 -- for hhc_exe in (hhc_base % '', hhc_base % ' (x86)'):
228 -- if osp.isfile(hhc_exe):
229 -- return hhc_exe
230 -- else:
231 -- return
232 --
233 --try:
234 -- from sphinx import setup_command
235 --
236 -- class MyBuild(build):
237 -- user_options = [('no-doc', None, "Don't build Spyder documentation")] \
238 -- + build.user_options
239 -- def __init__(self, *args, **kwargs):
240 -- build.__init__(self, *args, **kwargs)
241 -- self.no_doc = False
242 -- def with_doc(self):
243 -- setup_dir = os.path.dirname(os.path.abspath(__file__))
244 -- is_doc_dir = os.path.isdir(os.path.join(setup_dir, 'doc'))
245 -- install_obj = self.distribution.get_command_obj('install')
246 -- return (is_doc_dir and not self.no_doc and not install_obj.no_doc)
247 -- sub_commands = build.sub_commands + [('build_doc', with_doc)]
248 -- CMDCLASS['build'] = MyBuild
249 --
250 --
251 -- class MyInstall(install):
252 -- user_options = [('no-doc', None, "Don't build Spyder documentation")] \
253 -- + install.user_options
254 -- def __init__(self, *args, **kwargs):
255 -- install.__init__(self, *args, **kwargs)
256 -- self.no_doc = False
257 -- CMDCLASS['install'] = MyInstall
258 --
259 --
260 -- class MyBuildDoc(setup_command.BuildDoc):
261 -- def run(self):
262 -- build = self.get_finalized_command('build')
263 -- sys.path.insert(0, os.path.abspath(build.build_lib))
264 -- dirname = self.distribution.get_command_obj('build').build_purelib
265 -- self.builder_target_dir = osp.join(dirname, 'spyder', 'doc')
266 --
267 -- if not osp.exists(self.builder_target_dir):
268 -- os.mkdir(self.builder_target_dir)
269 --
270 -- hhc_exe = get_html_help_exe()
271 -- self.builder = "html" if hhc_exe is None else "htmlhelp"
272 --
273 -- try:
274 -- setup_command.BuildDoc.run(self)
275 -- except UnicodeDecodeError:
276 -- print("ERROR: unable to build documentation because Sphinx "\
277 -- "do not handle source path with non-ASCII characters. "\
278 -- "Please try to move the source package to another "\
279 -- "location (path with *only* ASCII characters).",
280 -- file=sys.stderr)
281 -- sys.path.pop(0)
282 --
283 -- # Building chm doc, if HTML Help Workshop is installed
284 -- if hhc_exe is not None:
285 -- fname = osp.join(self.builder_target_dir, 'Spyderdoc.chm')
286 -- subprocess.call('"%s" %s' % (hhc_exe, fname), shell=True)
287 -- if osp.isfile(fname):
288 -- dest = osp.join(dirname, 'spyder')
289 -- try:
290 -- shutil.move(fname, dest)
291 -- except shutil.Error:
292 -- print("Unable to replace %s" % dest)
293 -- shutil.rmtree(self.builder_target_dir)
294 --
295 -- CMDCLASS['build_doc'] = MyBuildDoc
296 --except ImportError:
297 -- print('WARNING: unable to build documentation because Sphinx '\
298 -- 'is not installed', file=sys.stderr)
299 --
300 --
301 --#==============================================================================
302 - # Main scripts
303 - #==============================================================================
304 - # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows
305 -@@ -261,8 +160,7 @@
306 - 'Programming Language :: Python :: 3',
307 - 'Development Status :: 5 - Production/Stable',
308 - 'Topic :: Scientific/Engineering',
309 -- 'Topic :: Software Development :: Widget Sets'],
310 -- cmdclass=CMDCLASS)
311 -+ 'Topic :: Software Development :: Widget Sets'])
312 -
313 -
314 - #==============================================================================
315
316 diff --git a/dev-python/spyder/files/spyder-3.3.0-build.patch b/dev-python/spyder/files/spyder-3.3.0-build.patch
317 deleted file mode 100644
318 index f6037237e0c..00000000000
319 --- a/dev-python/spyder/files/spyder-3.3.0-build.patch
320 +++ /dev/null
321 @@ -1,49 +0,0 @@
322 -diff -r -U3 spyder-3.3.0.orig/setup.py spyder-3.3.0/setup.py
323 ---- spyder-3.3.0.orig/setup.py 2018-06-27 11:28:24.000000000 +0700
324 -+++ spyder-3.3.0/setup.py 2018-08-07 23:26:17.609046673 +0700
325 -@@ -75,12 +75,7 @@
326 - def get_data_files():
327 - """Return data_files in a platform dependent manner"""
328 - if sys.platform.startswith('linux'):
329 -- if PY3:
330 -- data_files = [('share/applications', ['scripts/spyder3.desktop']),
331 -- ('share/icons', ['img_src/spyder3.png']),
332 -- ('share/metainfo', ['scripts/spyder3.appdata.xml'])]
333 -- else:
334 -- data_files = [('share/applications', ['scripts/spyder.desktop']),
335 -+ data_files = [('share/applications', ['scripts/spyder.desktop']),
336 - ('share/icons', ['img_src/spyder.png'])]
337 - elif os.name == 'nt':
338 - data_files = [('scripts', ['img_src/spyder.ico',
339 -@@ -104,21 +99,6 @@
340 -
341 -
342 - #==============================================================================
343 --# Make Linux detect Spyder desktop file
344 --#==============================================================================
345 --class MyInstallData(install_data):
346 -- def run(self):
347 -- install_data.run(self)
348 -- if sys.platform.startswith('linux'):
349 -- try:
350 -- subprocess.call(['update-desktop-database'])
351 -- except:
352 -- print("ERROR: unable to update desktop database",
353 -- file=sys.stderr)
354 --CMDCLASS = {'install_data': MyInstallData}
355 --
356 --
357 --#==============================================================================
358 - # Main scripts
359 - #==============================================================================
360 - # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows
361 -@@ -178,8 +158,7 @@
362 - 'Programming Language :: Python :: 3',
363 - 'Development Status :: 5 - Production/Stable',
364 - 'Topic :: Scientific/Engineering',
365 -- 'Topic :: Software Development :: Widget Sets'],
366 -- cmdclass=CMDCLASS)
367 -+ 'Topic :: Software Development :: Widget Sets'])
368 -
369 -
370 - #==============================================================================
371
372 diff --git a/dev-python/spyder/files/spyder-3.3.1-build.patch b/dev-python/spyder/files/spyder-3.3.1-build.patch
373 deleted file mode 100644
374 index 1561dbdcc1e..00000000000
375 --- a/dev-python/spyder/files/spyder-3.3.1-build.patch
376 +++ /dev/null
377 @@ -1,49 +0,0 @@
378 -diff -r -U3 spyder-3.3.1.orig/setup.py spyder-3.3.1/setup.py
379 ---- spyder-3.3.1.orig/setup.py 2018-08-10 10:46:02.000000000 +0700
380 -+++ spyder-3.3.1/setup.py 2018-08-14 19:16:10.921323804 +0700
381 -@@ -83,12 +83,7 @@
382 - def get_data_files():
383 - """Return data_files in a platform dependent manner"""
384 - if sys.platform.startswith('linux'):
385 -- if PY3:
386 -- data_files = [('share/applications', ['scripts/spyder3.desktop']),
387 -- ('share/icons', ['img_src/spyder3.png']),
388 -- ('share/metainfo', ['scripts/spyder3.appdata.xml'])]
389 -- else:
390 -- data_files = [('share/applications', ['scripts/spyder.desktop']),
391 -+ data_files = [('share/applications', ['scripts/spyder.desktop']),
392 - ('share/icons', ['img_src/spyder.png'])]
393 - elif os.name == 'nt':
394 - data_files = [('scripts', ['img_src/spyder.ico',
395 -@@ -112,21 +107,6 @@
396 -
397 -
398 - #==============================================================================
399 --# Make Linux detect Spyder desktop file
400 --#==============================================================================
401 --class MyInstallData(install_data):
402 -- def run(self):
403 -- install_data.run(self)
404 -- if sys.platform.startswith('linux'):
405 -- try:
406 -- subprocess.call(['update-desktop-database'])
407 -- except:
408 -- print("ERROR: unable to update desktop database",
409 -- file=sys.stderr)
410 --CMDCLASS = {'install_data': MyInstallData}
411 --
412 --
413 --#==============================================================================
414 - # Main scripts
415 - #==============================================================================
416 - # NOTE: the '[...]_win_post_install.py' script is installed even on non-Windows
417 -@@ -210,8 +190,7 @@
418 - 'Intended Audience :: Science/Research',
419 - 'Intended Audience :: Developers',
420 - 'Topic :: Scientific/Engineering',
421 -- 'Topic :: Software Development :: Widget Sets'],
422 -- cmdclass=CMDCLASS)
423 -+ 'Topic :: Software Development :: Widget Sets'])
424 -
425 -
426 - #==============================================================================
427
428 diff --git a/dev-python/spyder/files/spyder-4.0.1-py3-only.patch b/dev-python/spyder/files/spyder-4.0.1-py3-only.patch
429 new file mode 100644
430 index 00000000000..df5f0c4ad1c
431 --- /dev/null
432 +++ b/dev-python/spyder/files/spyder-4.0.1-py3-only.patch
433 @@ -0,0 +1,56 @@
434 +diff --git a/setup.py b/setup.py
435 +index a492549..b77f758 100644
436 +--- a/setup.py
437 ++++ b/setup.py
438 +@@ -31,13 +31,6 @@ import shutil
439 + from distutils.core import setup
440 + from distutils.command.install_data import install_data
441 +
442 +-
443 +-#==============================================================================
444 +-# Check for Python 3
445 +-#==============================================================================
446 +-PY3 = sys.version_info[0] == 3
447 +-
448 +-
449 + #==============================================================================
450 + # Minimal Python version sanity check
451 + # Taken from the notebook setup.py -- Modified BSD License
452 +@@ -87,13 +80,8 @@ def get_subpackages(name):
453 + def get_data_files():
454 + """Return data_files in a platform dependent manner"""
455 + if sys.platform.startswith('linux'):
456 +- if PY3:
457 +- data_files = [('share/applications', ['scripts/spyder3.desktop']),
458 +- ('share/icons', ['img_src/spyder3.png']),
459 +- ('share/metainfo', ['scripts/spyder3.appdata.xml'])]
460 +- else:
461 +- data_files = [('share/applications', ['scripts/spyder.desktop']),
462 +- ('share/icons', ['img_src/spyder.png'])]
463 ++ data_files = [('share/applications', ['scripts/spyder.desktop']),
464 ++ ('share/pixmaps', ['img_src/spyder.png'])]
465 + elif os.name == 'nt':
466 + data_files = [('scripts', ['img_src/spyder.ico',
467 + 'img_src/spyder_reset.ico'])]
468 +@@ -115,10 +103,7 @@ def get_packages():
469 + # platforms due to a bug in pip installation process
470 + # See spyder-ide/spyder#1158.
471 + SCRIPTS = ['%s_win_post_install.py' % NAME]
472 +-if PY3 and sys.platform.startswith('linux'):
473 +- SCRIPTS.append('spyder3')
474 +-else:
475 +- SCRIPTS.append('spyder')
476 ++SCRIPTS.append('spyder')
477 +
478 +
479 + #==============================================================================
480 +@@ -246,8 +231,7 @@ if 'setuptools' in sys.modules:
481 +
482 + setup_args['entry_points'] = {
483 + 'gui_scripts': [
484 +- '{} = spyder.app.start:main'.format(
485 +- 'spyder3' if PY3 else 'spyder')
486 ++ '{} = spyder.app.start:main'.format('spyder')
487 + ]
488 + }
489 +
490
491 diff --git a/dev-python/spyder/metadata.xml b/dev-python/spyder/metadata.xml
492 index 91250b2b501..46303e6157d 100644
493 --- a/dev-python/spyder/metadata.xml
494 +++ b/dev-python/spyder/metadata.xml
495 @@ -28,9 +28,6 @@
496 including NumPy, SciPy, Pandas, IPython, QtConsole, Matplotlib, SymPy, and more,
497 and can be extended further with full plugin support.
498 </longdescription>
499 - <use>
500 - <flag name="webengine">Build bindings for the QtWebEngine module</flag>
501 - </use>
502 <upstream>
503 <remote-id type="pypi">spyder</remote-id>
504 <remote-id type="bitbucket">spyder-ide/spyderlib</remote-id>
505
506 diff --git a/dev-python/spyder/spyder-3.2.4.ebuild b/dev-python/spyder/spyder-3.2.4.ebuild
507 deleted file mode 100644
508 index c3313327ca4..00000000000
509 --- a/dev-python/spyder/spyder-3.2.4.ebuild
510 +++ /dev/null
511 @@ -1,62 +0,0 @@
512 -# Copyright 1999-2020 Gentoo Authors
513 -# Distributed under the terms of the GNU General Public License v2
514 -
515 -EAPI=6
516 -
517 -PYTHON_COMPAT=( python3_6 )
518 -
519 -inherit eutils distutils-r1
520 -
521 -DESCRIPTION="Python IDE with matlab-like features"
522 -HOMEPAGE="
523 - https://github.com/spyder-ide/spyder/
524 - https://pypi.org/project/spyder/
525 - https://pythonhosted.org/spyder/"
526 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
527 -
528 -LICENSE="MIT"
529 -SLOT="0"
530 -KEYWORDS="~amd64 ~x86"
531 -IUSE="doc hdf5"
532 -
533 -RDEPEND="
534 - dev-python/QtPy[${PYTHON_USEDEP},svg,webkit]
535 - dev-python/qtconsole[${PYTHON_USEDEP}]
536 - >=dev-python/rope-0.10.7[${PYTHON_USEDEP}]
537 - dev-python/jedi[${PYTHON_USEDEP}]
538 - dev-python/pyflakes[${PYTHON_USEDEP}]
539 - dev-python/sphinx[${PYTHON_USEDEP}]
540 - dev-python/pygments[${PYTHON_USEDEP}]
541 - dev-python/pylint[${PYTHON_USEDEP}]
542 - dev-python/pep8[${PYTHON_USEDEP}]
543 - dev-python/psutil[${PYTHON_USEDEP}]
544 - dev-python/nbconvert[${PYTHON_USEDEP}]
545 - >=dev-python/qtawesome-0.4.1[${PYTHON_USEDEP}]
546 - dev-python/pickleshare[${PYTHON_USEDEP}]
547 - dev-python/pyzmq[${PYTHON_USEDEP}]
548 - dev-python/chardet[${PYTHON_USEDEP}]
549 - >=dev-python/pycodestyle-2.3.0
550 - hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )"
551 -DEPEND="${RDEPEND}
552 - app-arch/unzip"
553 -
554 -# Courtesy of Arfrever
555 -PATCHES=( "${FILESDIR}"/${P}-build.patch )
556 -
557 -python_compile_all() {
558 - if use doc; then
559 - sphinx-build doc doc/html || die "Generation of documentation failed"
560 - fi
561 -}
562 -
563 -python_install() {
564 - distutils-r1_python_install
565 - python_newscript scripts/${PN} ${PN}${EPYTHON:6:1}
566 -}
567 -
568 -python_install_all() {
569 - use doc && local HTML_DOCS=( doc/html/. )
570 - distutils-r1_python_install_all
571 - doicon spyder/images/spyder.svg
572 - make_desktop_entry spyder Spyder spyder "Development;IDE"
573 -}
574
575 diff --git a/dev-python/spyder/spyder-3.2.8.ebuild b/dev-python/spyder/spyder-3.2.8.ebuild
576 deleted file mode 100644
577 index 21993629d5f..00000000000
578 --- a/dev-python/spyder/spyder-3.2.8.ebuild
579 +++ /dev/null
580 @@ -1,81 +0,0 @@
581 -# Copyright 1999-2020 Gentoo Authors
582 -# Distributed under the terms of the GNU General Public License v2
583 -
584 -EAPI=6
585 -
586 -PYTHON_COMPAT=( python3_6 )
587 -
588 -inherit eutils distutils-r1 xdg-utils
589 -
590 -DESCRIPTION="Python IDE with matlab-like features"
591 -HOMEPAGE="
592 - https://github.com/spyder-ide/spyder/
593 - https://pypi.org/project/spyder/
594 - https://pythonhosted.org/spyder/"
595 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
596 -
597 -LICENSE="MIT"
598 -SLOT="0"
599 -KEYWORDS="~amd64 ~x86"
600 -IUSE="doc hdf5 +webengine webkit"
601 -REQUIRED_USE="webengine? ( !webkit )"
602 -
603 -RDEPEND="
604 - hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
605 - dev-python/chardet[${PYTHON_USEDEP}]
606 - dev-python/cloudpickle[${PYTHON_USEDEP}]
607 - dev-python/jedi[${PYTHON_USEDEP}]
608 - dev-python/nbconvert[${PYTHON_USEDEP}]
609 - dev-python/pep8[${PYTHON_USEDEP}]
610 - dev-python/pickleshare[${PYTHON_USEDEP}]
611 - dev-python/psutil[${PYTHON_USEDEP}]
612 - >=dev-python/pycodestyle-2.3.0[${PYTHON_USEDEP}]
613 - dev-python/pyflakes[${PYTHON_USEDEP}]
614 - dev-python/pygments[${PYTHON_USEDEP}]
615 - dev-python/pylint[${PYTHON_USEDEP}]
616 - dev-python/pyzmq[${PYTHON_USEDEP}]
617 - >=dev-python/qtawesome-0.4.1[${PYTHON_USEDEP}]
618 - dev-python/qtconsole[${PYTHON_USEDEP}]
619 - dev-python/QtPy[${PYTHON_USEDEP},svg,webengine?,webkit?]
620 - >=dev-python/rope-0.10.7[${PYTHON_USEDEP}]
621 - dev-python/sphinx[${PYTHON_USEDEP}]"
622 -
623 -DEPEND="${RDEPEND}
624 - app-arch/unzip"
625 -
626 -# Based on the courtesy of Arfrever
627 -PATCHES=( "${FILESDIR}"/${PN}-3.2.8-build.patch )
628 -
629 -python_compile_all() {
630 - if use doc; then
631 - sphinx-build doc doc/html || die "Generation of documentation failed"
632 - fi
633 -}
634 -
635 -python_install() {
636 - distutils-r1_python_install
637 - python_newscript scripts/${PN} ${PN}${EPYTHON:6:1}
638 -}
639 -
640 -python_install_all() {
641 - use doc && local HTML_DOCS=( doc/html/. )
642 - distutils-r1_python_install_all
643 - doicon spyder/images/spyder.svg
644 - make_desktop_entry spyder Spyder spyder "Development;IDE"
645 -}
646 -
647 -pkg_postinst() {
648 - xdg_desktop_database_update
649 -
650 - elog "To get additional features, optional runtime dependencies may be installed:"
651 - optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib
652 - optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas
653 - optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy
654 - optfeature "Symbolic mathematics in the IPython console" dev-python/sympy
655 - optfeature "Import Matlab workspace files in the Variable Explorer" sci-libs/scipy
656 - optfeature "Run Cython files in the IPython console" dev-python/cython
657 -}
658 -
659 -pkg_postrm() {
660 - xdg_desktop_database_update
661 -}
662
663 diff --git a/dev-python/spyder/spyder-3.3.0.ebuild b/dev-python/spyder/spyder-3.3.0.ebuild
664 deleted file mode 100644
665 index 300204dd1e1..00000000000
666 --- a/dev-python/spyder/spyder-3.3.0.ebuild
667 +++ /dev/null
668 @@ -1,74 +0,0 @@
669 -# Copyright 1999-2020 Gentoo Authors
670 -# Distributed under the terms of the GNU General Public License v2
671 -
672 -EAPI=6
673 -
674 -PYTHON_COMPAT=( python3_6 )
675 -
676 -inherit eutils distutils-r1 xdg-utils
677 -
678 -DESCRIPTION="The Scientific PYthon Development EnviRonment"
679 -HOMEPAGE="
680 - https://www.spyder-ide.org/
681 - https://github.com/spyder-ide/spyder/
682 - https://pypi.org/project/spyder/"
683 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
684 -
685 -LICENSE="MIT"
686 -SLOT="0"
687 -KEYWORDS="~amd64 ~x86"
688 -IUSE="hdf5 +webengine webkit"
689 -REQUIRED_USE="webengine? ( !webkit )"
690 -
691 -RDEPEND="
692 - hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
693 - dev-python/chardet[${PYTHON_USEDEP}]
694 - dev-python/cloudpickle[${PYTHON_USEDEP}]
695 - dev-python/jedi[${PYTHON_USEDEP}]
696 - dev-python/nbconvert[${PYTHON_USEDEP}]
697 - dev-python/pycodestyle[${PYTHON_USEDEP}]
698 - dev-python/pickleshare[${PYTHON_USEDEP}]
699 - dev-python/psutil[${PYTHON_USEDEP}]
700 - dev-python/pyflakes[${PYTHON_USEDEP}]
701 - dev-python/pygments[${PYTHON_USEDEP}]
702 - dev-python/pylint[${PYTHON_USEDEP}]
703 - dev-python/pyzmq[${PYTHON_USEDEP}]
704 - >=dev-python/qtawesome-0.4.1[${PYTHON_USEDEP}]
705 - dev-python/qtconsole[${PYTHON_USEDEP}]
706 - dev-python/QtPy[${PYTHON_USEDEP},svg,webengine?,webkit?]
707 - >=dev-python/rope-0.10.7[${PYTHON_USEDEP}]
708 - dev-python/sphinx[${PYTHON_USEDEP}]
709 - dev-python/numpydoc[${PYTHON_USEDEP}]
710 - <dev-python/spyder-kernels-1.0"
711 -DEPEND="${RDEPEND}
712 - dev-python/setuptools[${PYTHON_USEDEP}]"
713 -
714 -# Based on the courtesy of Arfrever
715 -PATCHES=( "${FILESDIR}"/${P}-build.patch )
716 -
717 -python_install() {
718 - distutils-r1_python_install
719 - python_newscript scripts/${PN} ${PN}${EPYTHON:6:1}
720 -}
721 -
722 -python_install_all() {
723 - distutils-r1_python_install_all
724 - doicon spyder/images/spyder.svg
725 - make_desktop_entry spyder Spyder spyder "Development;IDE"
726 -}
727 -
728 -pkg_postinst() {
729 - xdg_desktop_database_update
730 -
731 - elog "To get additional features, optional runtime dependencies may be installed:"
732 - optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib
733 - optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas
734 - optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy
735 - optfeature "Symbolic mathematics in the IPython console" dev-python/sympy
736 - optfeature "Import Matlab workspace files in the Variable Explorer" sci-libs/scipy
737 - optfeature "Run Cython files in the IPython console" dev-python/cython
738 -}
739 -
740 -pkg_postrm() {
741 - xdg_desktop_database_update
742 -}
743
744 diff --git a/dev-python/spyder/spyder-3.3.1.ebuild b/dev-python/spyder/spyder-3.3.1.ebuild
745 deleted file mode 100644
746 index 300204dd1e1..00000000000
747 --- a/dev-python/spyder/spyder-3.3.1.ebuild
748 +++ /dev/null
749 @@ -1,74 +0,0 @@
750 -# Copyright 1999-2020 Gentoo Authors
751 -# Distributed under the terms of the GNU General Public License v2
752 -
753 -EAPI=6
754 -
755 -PYTHON_COMPAT=( python3_6 )
756 -
757 -inherit eutils distutils-r1 xdg-utils
758 -
759 -DESCRIPTION="The Scientific PYthon Development EnviRonment"
760 -HOMEPAGE="
761 - https://www.spyder-ide.org/
762 - https://github.com/spyder-ide/spyder/
763 - https://pypi.org/project/spyder/"
764 -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
765 -
766 -LICENSE="MIT"
767 -SLOT="0"
768 -KEYWORDS="~amd64 ~x86"
769 -IUSE="hdf5 +webengine webkit"
770 -REQUIRED_USE="webengine? ( !webkit )"
771 -
772 -RDEPEND="
773 - hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] )
774 - dev-python/chardet[${PYTHON_USEDEP}]
775 - dev-python/cloudpickle[${PYTHON_USEDEP}]
776 - dev-python/jedi[${PYTHON_USEDEP}]
777 - dev-python/nbconvert[${PYTHON_USEDEP}]
778 - dev-python/pycodestyle[${PYTHON_USEDEP}]
779 - dev-python/pickleshare[${PYTHON_USEDEP}]
780 - dev-python/psutil[${PYTHON_USEDEP}]
781 - dev-python/pyflakes[${PYTHON_USEDEP}]
782 - dev-python/pygments[${PYTHON_USEDEP}]
783 - dev-python/pylint[${PYTHON_USEDEP}]
784 - dev-python/pyzmq[${PYTHON_USEDEP}]
785 - >=dev-python/qtawesome-0.4.1[${PYTHON_USEDEP}]
786 - dev-python/qtconsole[${PYTHON_USEDEP}]
787 - dev-python/QtPy[${PYTHON_USEDEP},svg,webengine?,webkit?]
788 - >=dev-python/rope-0.10.7[${PYTHON_USEDEP}]
789 - dev-python/sphinx[${PYTHON_USEDEP}]
790 - dev-python/numpydoc[${PYTHON_USEDEP}]
791 - <dev-python/spyder-kernels-1.0"
792 -DEPEND="${RDEPEND}
793 - dev-python/setuptools[${PYTHON_USEDEP}]"
794 -
795 -# Based on the courtesy of Arfrever
796 -PATCHES=( "${FILESDIR}"/${P}-build.patch )
797 -
798 -python_install() {
799 - distutils-r1_python_install
800 - python_newscript scripts/${PN} ${PN}${EPYTHON:6:1}
801 -}
802 -
803 -python_install_all() {
804 - distutils-r1_python_install_all
805 - doicon spyder/images/spyder.svg
806 - make_desktop_entry spyder Spyder spyder "Development;IDE"
807 -}
808 -
809 -pkg_postinst() {
810 - xdg_desktop_database_update
811 -
812 - elog "To get additional features, optional runtime dependencies may be installed:"
813 - optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib
814 - optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas
815 - optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy
816 - optfeature "Symbolic mathematics in the IPython console" dev-python/sympy
817 - optfeature "Import Matlab workspace files in the Variable Explorer" sci-libs/scipy
818 - optfeature "Run Cython files in the IPython console" dev-python/cython
819 -}
820 -
821 -pkg_postrm() {
822 - xdg_desktop_database_update
823 -}
824
825 diff --git a/dev-python/spyder/spyder-4.0.1.ebuild b/dev-python/spyder/spyder-4.0.1-r1.ebuild
826 similarity index 94%
827 rename from dev-python/spyder/spyder-4.0.1.ebuild
828 rename to dev-python/spyder/spyder-4.0.1-r1.ebuild
829 index 21369ad1977..438470ebe1e 100644
830 --- a/dev-python/spyder/spyder-4.0.1.ebuild
831 +++ b/dev-python/spyder/spyder-4.0.1-r1.ebuild
832 @@ -5,10 +5,10 @@ EAPI=7
833
834 PYTHON_COMPAT=( python3_{6,7} )
835
836 -inherit eutils distutils-r1 virtualx xdg-utils
837 +inherit eutils xdg distutils-r1 virtualx
838
839 # Commit of documentation to fetch
840 -DOCS_PV="6177401"
841 +DOCS_PV="7c0b590"
842
843 DESCRIPTION="The Scientific Python Development Environment"
844 HOMEPAGE="
845 @@ -16,7 +16,7 @@ HOMEPAGE="
846 https://github.com/spyder-ide/spyder/
847 https://pypi.org/project/spyder/"
848 SRC_URI="https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
849 - https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${P}-docs.tar.gz"
850 + https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.tar.gz"
851
852 LICENSE="MIT"
853 SLOT="0"
854 @@ -65,7 +65,8 @@ DEPEND="test? (
855 # Based on the courtesy of Arfrever
856 # This patch removes a call to update-desktop-database during build
857 # This fails because access is denied to this command during build
858 -PATCHES=( "${FILESDIR}"/${P}-build.patch )
859 +PATCHES=( "${FILESDIR}/${P}-build.patch"
860 + "${FILESDIR}/${P}-py3-only.patch" )
861
862 distutils_enable_tests pytest
863 distutils_enable_sphinx docs/doc --no-autodoc
864 @@ -116,14 +117,8 @@ python_test() {
865 virtx pytest -vv
866 }
867
868 -python_install_all() {
869 - distutils-r1_python_install_all
870 - dosym spyder3 /usr/bin/spyder
871 -}
872 -
873 pkg_postinst() {
874 - xdg_desktop_database_update
875 - xdg_icon_cache_update
876 + xdg_pkg_postinst
877
878 elog "To get additional features, optional runtime dependencies may be installed:"
879 optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib
880 @@ -145,8 +140,3 @@ pkg_postinst() {
881 # spyder-reports not yet updated to >=spyder-4.0.0
882 # optfeature "Markdown reports using Pweave" dev-python/spyder-reports
883 }
884 -
885 -pkg_postrm() {
886 - xdg_desktop_database_update
887 - xdg_icon_cache_update
888 -}