1 |
commit: 78cb8b3c4949be96ec7a3d214f6307b60098a7f1 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Dec 30 11:45:39 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Dec 30 11:46:54 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=78cb8b3c |
7 |
|
8 |
dev-python/spyder: add 5.4.1 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/spyder/Manifest | 2 + |
13 |
dev-python/spyder/spyder-5.4.1.ebuild | 196 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 198 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest |
17 |
index 027a2cc33b2d..4fc4ada656a6 100644 |
18 |
--- a/dev-python/spyder/Manifest |
19 |
+++ b/dev-python/spyder/Manifest |
20 |
@@ -1,2 +1,4 @@ |
21 |
DIST spyder-5.4.0.gh.tar.gz 24497211 BLAKE2B 6022e50345a7493e79cc05d735fcded1d109f7b33c94c4b281a0526fe2c3f5c1020c30bc1a48cdde28db6b279b38f191dc6974724ca893220bac034c69ffd46c SHA512 473408c8315ab46dade4cdfb709119d29a38ea77f29c3dc5a8b4e7eece5c1cbd21978ed2665fc6747ef4db9d8726d4ba796ee0716d48657367bb9840760e786f |
22 |
+DIST spyder-5.4.1.gh.tar.gz 24518322 BLAKE2B d19c28abf17872163d43e81d1a34e2f09cfb6d47738609352b0252de3eafbd63992e57059e965e5e9f668b44ba594d2a240130d9f10112bdea3f1d97568ca081 SHA512 f8dc629552957d4ddcbe849388a6b5b53acd17248ea247fd3c27e0a6b93c411102b12f427f9f41824709bceda8687f09efa0310ae4ce798ae9ebc389bbb8253c |
23 |
+DIST spyder-docs-3ae8705d3eba8fc30d4600d6d1e29ce0da8cd0c6.gh.tar.gz 95448945 BLAKE2B 5e130bff9fbca71e61ed96236a6964e8f34602efbb930dbc928a22eec59ebb2d2bee39f679c27dbbf88686345e5db5894f931e7ab95a3e007444b17c4e021176 SHA512 a6ebe6b6ff057616951c0075ba7c8039dc3a304b6e1bbbb40f80bb54018cee374df230e491493f18070273dded2942e14bfecc9439d33ae1bc3edd5b47067d77 |
24 |
DIST spyder-docs-bb9b308b66cc90e47f43418f079bf098eb4efe6c.gh.tar.gz 89966852 BLAKE2B 7698b0210ccfec9f00cc76893f49398a02878c732eba6bbc89c1da4514734aad8ae8ef85a9c701a1d194976a35a8092755f7c5f09b319f670fac21d0a2e6c542 SHA512 9dd428ca2623c5703076887ab593bd92a2e737d74eb914a7a186d2ab4855519abb02875226463d8c11ff5021e7e84a5ba7c200ad5476f0dc4646831bb0b197a1 |
25 |
|
26 |
diff --git a/dev-python/spyder/spyder-5.4.1.ebuild b/dev-python/spyder/spyder-5.4.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..e4c9f318be91 |
29 |
--- /dev/null |
30 |
+++ b/dev-python/spyder/spyder-5.4.1.ebuild |
31 |
@@ -0,0 +1,196 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{10..11} ) |
38 |
+DISTUTILS_USE_PEP517=setuptools |
39 |
+ |
40 |
+inherit optfeature xdg distutils-r1 |
41 |
+ |
42 |
+# Commit of documentation to fetch |
43 |
+DOCS_PV="3ae8705d3eba8fc30d4600d6d1e29ce0da8cd0c6" |
44 |
+ |
45 |
+DESCRIPTION="The Scientific Python Development Environment" |
46 |
+HOMEPAGE=" |
47 |
+ https://www.spyder-ide.org/ |
48 |
+ https://github.com/spyder-ide/spyder/ |
49 |
+ https://pypi.org/project/spyder/ |
50 |
+" |
51 |
+SRC_URI=" |
52 |
+ https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz |
53 |
+ https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz |
54 |
+" |
55 |
+ |
56 |
+LICENSE="MIT" |
57 |
+SLOT="0" |
58 |
+KEYWORDS="~amd64 ~x86" |
59 |
+ |
60 |
+# The test suite often hangs or does not work. RESTRICTing because IMO it is |
61 |
+# not worth the several hours I would have to spend every single version bump |
62 |
+# checking which tests do and do not work. |
63 |
+RESTRICT="test" |
64 |
+ |
65 |
+RDEPEND=" |
66 |
+ >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] |
67 |
+ >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] |
68 |
+ >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] |
70 |
+ >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/psutil-5.3[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/pygments-2.0[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/pylint-venv-2.1.1[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/python-lsp-black-1.2.0[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/pyzmq-22.1.0[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/qdarkstyle-3.0.2[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/qstylizer-0.2.2[${PYTHON_USEDEP}] |
87 |
+ >=dev-python/qtawesome-1.2.1[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/qtconsole-5.4.0[${PYTHON_USEDEP}] |
89 |
+ <dev-python/qtconsole-5.5.0[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/QtPy-2.1.0[${PYTHON_USEDEP},svg,webengine] |
91 |
+ >=sci-libs/rtree-0.9.7[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] |
93 |
+ >=dev-python/spyder-kernels-2.4.1[${PYTHON_USEDEP}] |
94 |
+ <dev-python/spyder-kernels-2.5.0[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] |
96 |
+ >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] |
98 |
+" |
99 |
+ |
100 |
+# Tests are broken anyway, so lets comment this out so we can enable py3.11 |
101 |
+# BDEPEND=" |
102 |
+# test? ( |
103 |
+# dev-python/cython[${PYTHON_USEDEP}] |
104 |
+# dev-python/flaky[${PYTHON_USEDEP}] |
105 |
+# dev-python/matplotlib[tk,${PYTHON_USEDEP}] |
106 |
+# dev-python/pandas[${PYTHON_USEDEP}] |
107 |
+# dev-python/pillow[${PYTHON_USEDEP}] |
108 |
+# dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] |
109 |
+# dev-python/pytest-mock[${PYTHON_USEDEP}] |
110 |
+# dev-python/pytest-ordering[${PYTHON_USEDEP}] |
111 |
+# dev-python/pytest-qt[${PYTHON_USEDEP}] |
112 |
+# dev-python/pytest-xvfb[${PYTHON_USEDEP}] |
113 |
+# dev-python/pyyaml[${PYTHON_USEDEP}] |
114 |
+# dev-python/scipy[${PYTHON_USEDEP}] |
115 |
+# dev-python/sympy[${PYTHON_USEDEP}] |
116 |
+# )" |
117 |
+ |
118 |
+# Based on the courtesy of Arfrever |
119 |
+# This patch removes a call to update-desktop-database during build |
120 |
+# This fails because access is denied to this command during build |
121 |
+PATCHES=( |
122 |
+ "${FILESDIR}/${PN}-5.0.0-build.patch" |
123 |
+ "${FILESDIR}/${PN}-5.2.0-doc-theme-renamed.patch" |
124 |
+ "${FILESDIR}/${PN}-5.4.0-unpin-qdarkstyle.patch" |
125 |
+) |
126 |
+ |
127 |
+DOCS=( |
128 |
+ "AUTHORS.txt" |
129 |
+ "Announcements.md" |
130 |
+ "CHANGELOG.md" |
131 |
+ "CODE_OF_CONDUCT.md" |
132 |
+ "CONTRIBUTING.md" |
133 |
+ "NOTICE.txt" |
134 |
+ "README.md" |
135 |
+ "RELEASE.md" |
136 |
+) |
137 |
+ |
138 |
+distutils_enable_tests pytest |
139 |
+distutils_enable_sphinx docs/doc \ |
140 |
+ dev-python/sphinx-panels \ |
141 |
+ dev-python/pydata-sphinx-theme \ |
142 |
+ dev-python/sphinx-multiversion |
143 |
+ |
144 |
+python_prepare_all() { |
145 |
+ # move docs into workdir |
146 |
+ mv ../spyder-docs-${DOCS_PV}* docs || die |
147 |
+ |
148 |
+ # these dependencies are packaged separately: |
149 |
+ # dev-python/spyder-kernels, |
150 |
+ # dev-python/python-lsp-server, |
151 |
+ # dev-python/qdarkstyle |
152 |
+ rm -r external-deps/* || die |
153 |
+ # runs against things packaged in external-deps dir |
154 |
+ rm conftest.py || die |
155 |
+ |
156 |
+ # Do not depend on pyqt5<5.16, this dependency is carried by QtPy[pyqt5] |
157 |
+ # Do not depend on pyqtwebengine<5.16, this dependency is carried by QtPy[webengine] |
158 |
+ # Do not depend on parso and jedi, this is dependency is carried in python-lsp-server |
159 |
+ # Do not depend on python-lsp-server, this dependency is carried in pyls-spyder |
160 |
+ # Do not depend on ipython, this dependency is carried in spyder-kernels |
161 |
+ # The explicit version requirements only make things more complicated, if e.g. |
162 |
+ # pyls-spyder gains compatibility with a newer version of python-lsp-server |
163 |
+ # in a new release it will take time for this information to propagate into |
164 |
+ # the next spyder release. So just remove the dependency and let the other |
165 |
+ # ebuilds handle the version requirements to speed things up and prevent |
166 |
+ # issues such as Bug 803269. |
167 |
+ sed -i \ |
168 |
+ -e "/'pyqt5[ 0-9<=>.,]*',/d" \ |
169 |
+ -e "/'pyqtwebengine[ 0-9<=>.,]*',/d" \ |
170 |
+ -e "/'python-lsp-server\[all\][ 0-9<=>.,]*',/d" \ |
171 |
+ -e "/'parso[ 0-9<=>.,]*',/d" \ |
172 |
+ -e "/'jedi[ 0-9<=>.,]*',/d" \ |
173 |
+ -e "/'pylint[ 0-9<=>.,]*',/d" \ |
174 |
+ -e "/'ipython[ 0-9<=>.,]*',/d" \ |
175 |
+ setup.py || die |
176 |
+ sed -i \ |
177 |
+ -e "/^PYLS_REQVER/c\PYLS_REQVER = '>=0.0.1'" \ |
178 |
+ -e "/^PYLSP_REQVER/c\PYLSP_REQVER = '>=0.0.1'" \ |
179 |
+ -e "/^PARSO_REQVER/c\PARSO_REQVER = '>=0.0.1'" \ |
180 |
+ -e "/^JEDI_REQVER/c\JEDI_REQVER = '>=0.0.1'" \ |
181 |
+ -e "/^PYLINT_REQVER/c\PYLINT_REQVER = '>=0.0.1'" \ |
182 |
+ -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ |
183 |
+ spyder/dependencies.py || die |
184 |
+ |
185 |
+ # do not check deps, fails because we removed dependencies above |
186 |
+ sed -i -e 's:test_dependencies_for_spyder_setup_install_requires_in_sync:_&:' \ |
187 |
+ spyder/tests/test_dependencies_in_sync.py || die |
188 |
+ |
189 |
+ # can't check for update, need network |
190 |
+ rm spyder/workers/tests/test_update.py || die |
191 |
+ |
192 |
+ # skip online test |
193 |
+ rm spyder/widgets/github/tests/test_github_backend.py || die |
194 |
+ |
195 |
+ distutils-r1_python_prepare_all |
196 |
+} |
197 |
+ |
198 |
+# Calling pytest directly makes the tests freeze after completing even if successful |
199 |
+# Exit code is nonzero even upon success, so can't add || die here test results |
200 |
+# should be checked for success manually |
201 |
+python_test() { |
202 |
+ "${EPYTHON}" runtests.py |
203 |
+} |
204 |
+ |
205 |
+pkg_postinst() { |
206 |
+ xdg_pkg_postinst |
207 |
+ |
208 |
+ optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib |
209 |
+ optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas |
210 |
+ optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy |
211 |
+ optfeature "Symbolic mathematics in the IPython console" dev-python/sympy |
212 |
+ optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy |
213 |
+ optfeature "Run Cython files in the IPython console" dev-python/cython |
214 |
+ optfeature "The hdf5/h5py plugin" dev-python/h5py |
215 |
+ optfeature "The line profiler plugin" dev-python/spyder-line-profiler |
216 |
+ optfeature "Vim key bindings" dev-python/spyder-vim |
217 |
+ optfeature "Unittest support" dev-python/spyder-unittest |
218 |
+ optfeature "System terminal inside spyder" dev-python/spyder-terminal |
219 |
+ optfeature "Jupyter notebook support" dev-python/spyder-notebook |
220 |
+ # spyder-memory-profiler is not compatible with spyder-5.2+ yet |
221 |
+ # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler |
222 |
+ # spyder-reports not yet updated to >=spyder-4.0.0 |
223 |
+ # optfeature "Markdown reports using Pweave" dev-python/spyder-reports |
224 |
+ # Plugins with no release yet: |
225 |
+ # optfeature "Manage virtual environments and packages" dev-python/spyder-env-manager |
226 |
+ # optfeature "VCS (e.g. git) integration" dev-python/spyder-vcs |
227 |
+} |