1 |
commit: 5ee45e923b325092e82b015c3181fa54f30a7978 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> |
3 |
AuthorDate: Mon Mar 30 08:34:21 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Mar 30 11:26:42 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ee45e92 |
7 |
|
8 |
dev-python/spyder: clean up |
9 |
|
10 |
Package-Manager: Portage-2.3.96, Repoman-2.3.22 |
11 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/15170 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
.../files/spyder-4.1.1-allow-newer-parso.patch | 39 ----- |
16 |
dev-python/spyder/spyder-4.1.1-r1.ebuild | 158 --------------------- |
17 |
2 files changed, 197 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/spyder/files/spyder-4.1.1-allow-newer-parso.patch b/dev-python/spyder/files/spyder-4.1.1-allow-newer-parso.patch |
20 |
deleted file mode 100644 |
21 |
index 4b1c8d7b601..00000000000 |
22 |
--- a/dev-python/spyder/files/spyder-4.1.1-allow-newer-parso.patch |
23 |
+++ /dev/null |
24 |
@@ -1,39 +0,0 @@ |
25 |
-diff --git a/requirements/conda.txt b/requirements/conda.txt |
26 |
-index 2e5e4e1..e5f427e 100644 |
27 |
---- a/requirements/conda.txt |
28 |
-+++ b/requirements/conda.txt |
29 |
-@@ -14,7 +14,7 @@ keyring |
30 |
- nbconvert >=4.0 |
31 |
- numpydoc >=0.6.0 |
32 |
- Paramiko >=2.4.0 |
33 |
--parso =0.5.2 |
34 |
-+parso >=0.5.2 |
35 |
- pexpect >=4.4.0 |
36 |
- pickleshare >=0.4 |
37 |
- psutil >=5.3 |
38 |
-diff --git a/setup.py b/setup.py |
39 |
-index 2d5d58b..f008824 100644 |
40 |
---- a/setup.py |
41 |
-+++ b/setup.py |
42 |
-@@ -218,7 +218,7 @@ install_requires = [ |
43 |
- 'numpydoc>=0.6.0', |
44 |
- # Required to get SSH connections to remote kernels |
45 |
- 'paramiko>=2.4.0;platform_system=="Windows"', |
46 |
-- 'parso==0.5.2', |
47 |
-+ 'parso>=0.5.2', |
48 |
- 'pexpect>=4.4.0', |
49 |
- 'pickleshare>=0.4', |
50 |
- 'psutil>=5.3', |
51 |
-diff --git a/spyder/dependencies.py b/spyder/dependencies.py |
52 |
-index 7c88ab6..60950a8 100644 |
53 |
---- a/spyder/dependencies.py |
54 |
-+++ b/spyder/dependencies.py |
55 |
-@@ -41,7 +41,7 @@ KEYRING_REQVER = None |
56 |
- NBCONVERT_REQVER = '>=4.0' |
57 |
- NUMPYDOC_REQVER = '>=0.6.0' |
58 |
- PARAMIKO_REQVER = '>=2.4.0' |
59 |
--PARSO_REQVER = '=0.5.2' |
60 |
-+PARSO_REQVER = '>=0.5.2' |
61 |
- PEXPECT_REQVER = '>=4.4.0' |
62 |
- PICKLESHARE_REQVER = '>=0.4' |
63 |
- PSUTIL_REQVER = '>=5.3' |
64 |
|
65 |
diff --git a/dev-python/spyder/spyder-4.1.1-r1.ebuild b/dev-python/spyder/spyder-4.1.1-r1.ebuild |
66 |
deleted file mode 100644 |
67 |
index 0116d491f8c..00000000000 |
68 |
--- a/dev-python/spyder/spyder-4.1.1-r1.ebuild |
69 |
+++ /dev/null |
70 |
@@ -1,158 +0,0 @@ |
71 |
-# Copyright 1999-2020 Gentoo Authors |
72 |
-# Distributed under the terms of the GNU General Public License v2 |
73 |
- |
74 |
-EAPI=7 |
75 |
- |
76 |
-PYTHON_COMPAT=( python3_{6,7} ) |
77 |
- |
78 |
-inherit eutils xdg distutils-r1 virtualx |
79 |
- |
80 |
-# Commit of documentation to fetch |
81 |
-DOCS_PV="7c0b590" |
82 |
- |
83 |
-DESCRIPTION="The Scientific Python Development Environment" |
84 |
-HOMEPAGE=" |
85 |
- https://www.spyder-ide.org/ |
86 |
- https://github.com/spyder-ide/spyder/ |
87 |
- https://pypi.org/project/spyder/" |
88 |
-SRC_URI="https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz |
89 |
- https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.tar.gz" |
90 |
- |
91 |
-LICENSE="MIT" |
92 |
-SLOT="0" |
93 |
-KEYWORDS="~amd64 ~x86" |
94 |
- |
95 |
-RDEPEND=" |
96 |
- >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] |
97 |
- >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] |
98 |
- >=dev-python/cloudpickle-0.5.0[${PYTHON_USEDEP}] |
99 |
- >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] |
100 |
- dev-python/intervaltree[${PYTHON_USEDEP}] |
101 |
- >=dev-python/ipython-4.0[${PYTHON_USEDEP}] |
102 |
- ~dev-python/jedi-0.15.2[${PYTHON_USEDEP}] |
103 |
- dev-python/keyring[${PYTHON_USEDEP}] |
104 |
- >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] |
105 |
- >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] |
106 |
- >=dev-python/parso-0.5.2[${PYTHON_USEDEP}] |
107 |
- >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] |
108 |
- >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] |
109 |
- >=dev-python/psutil-5.3[${PYTHON_USEDEP}] |
110 |
- >=dev-python/pygments-2.0[${PYTHON_USEDEP}] |
111 |
- >=dev-python/pylint-0.25[${PYTHON_USEDEP}] |
112 |
- >=dev-python/python-language-server-0.31.9[${PYTHON_USEDEP}] |
113 |
- <dev-python/python-language-server-0.32.0[${PYTHON_USEDEP}] |
114 |
- >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] |
115 |
- >=dev-python/pyzmq-17.0.0[${PYTHON_USEDEP}] |
116 |
- >=dev-python/qdarkstyle-2.8[${PYTHON_USEDEP}] |
117 |
- >=dev-python/qtawesome-0.5.7[${PYTHON_USEDEP}] |
118 |
- >=dev-python/qtconsole-4.6.0[${PYTHON_USEDEP}] |
119 |
- >=dev-python/QtPy-1.5.0[${PYTHON_USEDEP},svg,webengine] |
120 |
- >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] |
121 |
- >=dev-python/spyder-kernels-1.9.0[${PYTHON_USEDEP}] |
122 |
- <dev-python/spyder-kernels-1.10.0[${PYTHON_USEDEP}] |
123 |
- dev-python/watchdog[${PYTHON_USEDEP}]" |
124 |
- |
125 |
-DEPEND="test? ( |
126 |
- dev-python/coverage[${PYTHON_USEDEP}] |
127 |
- dev-python/cython[${PYTHON_USEDEP}] |
128 |
- dev-python/flaky[${PYTHON_USEDEP}] |
129 |
- dev-python/matplotlib[tk,${PYTHON_USEDEP}] |
130 |
- dev-python/mock[${PYTHON_USEDEP}] |
131 |
- dev-python/pandas[${PYTHON_USEDEP}] |
132 |
- dev-python/pillow[${PYTHON_USEDEP}] |
133 |
- dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] |
134 |
- dev-python/pytest-mock[${PYTHON_USEDEP}] |
135 |
- dev-python/pytest-qt[${PYTHON_USEDEP}] |
136 |
- sci-libs/scipy[${PYTHON_USEDEP}] |
137 |
- dev-python/sympy[${PYTHON_USEDEP}] )" |
138 |
- |
139 |
-# Based on the courtesy of Arfrever |
140 |
-# This patch removes a call to update-desktop-database during build |
141 |
-# This fails because access is denied to this command during build |
142 |
-PATCHES=( |
143 |
- "${FILESDIR}/${P}-build.patch" |
144 |
- "${FILESDIR}/${P}-py3-only.patch" |
145 |
- "${FILESDIR}/${P}-allow-newer-parso.patch" |
146 |
-) |
147 |
- |
148 |
-distutils_enable_tests pytest |
149 |
-distutils_enable_sphinx docs/doc --no-autodoc |
150 |
- |
151 |
-python_prepare_all() { |
152 |
- # move docs into workdir |
153 |
- mv ../spyder-docs-${DOCS_PV}* docs || die |
154 |
- |
155 |
- # some tests still depend on QtPy[webkit] which is going to be removed |
156 |
- # spyder itself works fine without webkit |
157 |
- rm spyder/widgets/tests/test_browser.py || die |
158 |
- rm spyder/plugins/onlinehelp/tests/test_pydocgui.py || die |
159 |
- rm spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py || die |
160 |
- rm spyder/plugins/ipythonconsole/tests/test_ipython_config_dialog.py || die |
161 |
- rm spyder/plugins/help/tests/test_widgets.py || die |
162 |
- rm spyder/plugins/help/tests/test_plugin.py || die |
163 |
- # fails to collect |
164 |
- rm spyder/app/tests/test_mainwindow.py || die |
165 |
- |
166 |
- # skip online test |
167 |
- rm spyder/widgets/github/tests/test_github_backend.py || die |
168 |
- |
169 |
- # AssertionError: assert 'import numpy' == '# import numpy' |
170 |
- sed -i -e 's:test_comment:_&:' \ |
171 |
- spyder/plugins/editor/widgets/tests/test_codeeditor.py || die |
172 |
- |
173 |
- # AssertionError: assert '' == 'This is some test text!' |
174 |
- sed -i -e 's:test_tab_copies_find_to_replace:_&:' \ |
175 |
- spyder/plugins/editor/widgets/tests/test_editor.py || die |
176 |
- |
177 |
- # RuntimeError: Unsafe load() call disabled by Gentoo. See bug #659348 |
178 |
- sed -i -e 's:test_dependencies_for_binder_in_sync:_&:' \ |
179 |
- spyder/tests/test_dependencies_in_sync.py || die |
180 |
- |
181 |
- # Fatal Python error: Segmentation fault |
182 |
- sed -i -e 's:test_copy_path:_&:' \ |
183 |
- spyder/plugins/explorer/widgets/tests/test_explorer.py || die |
184 |
- |
185 |
- # No idea why this fails, no error just stops and dumps core |
186 |
- sed -i -e 's:test_arrayeditor_edit_complex_array:_&:' \ |
187 |
- spyder/plugins/variableexplorer/widgets/tests/test_arrayeditor.py || die |
188 |
- |
189 |
- # Assertion error, can't connect/remember inside ebuild environment |
190 |
- rm spyder/plugins/ipythonconsole/widgets/tests/test_kernelconnect.py || die |
191 |
- |
192 |
- # Assertion error (pytest-qt), maybe we can't do shortcuts inside ebuild environment? |
193 |
- sed -i -e 's:test_transform_to_uppercase_shortcut:_&:' \ |
194 |
- -e 's:test_transform_to_lowercase_shortcut:_&:' \ |
195 |
- -e 's:test_go_to_line_shortcut:_&:' \ |
196 |
- -e 's:test_delete_line_shortcut:_&:' \ |
197 |
- spyder/plugins/editor/widgets/tests/test_shortcuts.py || die |
198 |
- |
199 |
- distutils-r1_python_prepare_all |
200 |
-} |
201 |
- |
202 |
-python_test() { |
203 |
- virtx pytest -vv |
204 |
-} |
205 |
- |
206 |
-pkg_postinst() { |
207 |
- xdg_pkg_postinst |
208 |
- |
209 |
- elog "To get additional features, optional runtime dependencies may be installed:" |
210 |
- optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib |
211 |
- optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas |
212 |
- optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy |
213 |
- optfeature "Symbolic mathematics in the IPython console" dev-python/sympy |
214 |
- optfeature "Import Matlab workspace files in the Variable Explorer" sci-libs/scipy |
215 |
- optfeature "Run Cython files in the IPython console" dev-python/cython |
216 |
- optfeature "The hdf5/h5py plugin" dev-python/h5py |
217 |
- optfeature "The line profiler plugin" dev-python/spyder-line-profiler |
218 |
- optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler |
219 |
- # spyder-autopep8 and spyder-vim do not have a release (yet) |
220 |
- # and are not compatible with >=spyder-4.0.0 at the moment |
221 |
- # optfeature "The autopep8 plugin" dev-python/spyder-autopep8 |
222 |
- # optfeature "Vim key bindings" dev-python/spyder-vim |
223 |
- optfeature "Unittest support" dev-python/spyder-unittest |
224 |
- optfeature "Jupyter notebook support" dev-python/spyder-notebook |
225 |
- optfeature "System terminal inside spyder" dev-python/spyder-terminal |
226 |
- # spyder-reports not yet updated to >=spyder-4.0.0 |
227 |
- # optfeature "Markdown reports using Pweave" dev-python/spyder-reports |
228 |
-} |