1 |
commit: 17ad4777095633cf580e12e90ca792f5810a7006 |
2 |
Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 17:30:20 2022 +0000 |
4 |
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 17:31:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17ad4777 |
7 |
|
8 |
dev-python/spyder: add 5.3.3 |
9 |
|
10 |
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org> |
11 |
|
12 |
dev-python/spyder/Manifest | 2 + |
13 |
dev-python/spyder/spyder-5.3.3.ebuild | 193 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 195 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest |
17 |
index 3f0105fb53ec..af2d5a5acaa3 100644 |
18 |
--- a/dev-python/spyder/Manifest |
19 |
+++ b/dev-python/spyder/Manifest |
20 |
@@ -1,4 +1,6 @@ |
21 |
DIST spyder-5.3.1.tar.gz 24415110 BLAKE2B 368179c6ba6d355ca56fe3eb3ed8b24be3e986f1f2d0284f0f5739bdecb21225bce10802883b54dd888da54515bd8477adf6c0d3e38a3c549bb10407534254b0 SHA512 2501ddc45df11671b1a318eb33b50788b334ab10fbafb97a9491775a0efcc6a57814672068ab84314f9cb43961d6fabd9b906fb164cd58c77b6d6ecf0d6621e6 |
22 |
DIST spyder-5.3.2.gh.tar.gz 24441566 BLAKE2B dae46baf1a2673ee7449d1060302a726963424c946c9a0188ab85401c9a457fe818039ce3217ccd94ee3976b3e1a4dbb4379945862dee039ebd01ca41077846f SHA512 d1e9a83ddad6e637bef9cacc8261e9097684996661f730ff2813c2bdd72b1d58e9ae75f8a54730088761750eee6ae3d622f25fb9d0e6bca70325906cf4fc9348 |
23 |
+DIST spyder-5.3.3.gh.tar.gz 24443628 BLAKE2B 767b3e1d59ce650d2df0d229d94eef53bc4c7b52f5d40fd62748efeb3a756a773110aa17442403a1b37777dd39fc367164ad54cd8f767d4311caa8d3e8bf05da SHA512 7d521f8367953849233538cbfd74f1fd98da87e69dbed8076718e81cd09ae66aca84523c4ecdf0e8aeb60644791754df19f09dd244ce11e3f7decc97bb050e02 |
24 |
+DIST spyder-docs-9156f446a9225446a2a752ecb669cc3db30094a8.gh.tar.gz 90029977 BLAKE2B 7254da77f6d9dd24d9feb8af684d064bb92400acf1561f8a2b9423c63984c22fb3ab384174f87525c3cdb0612590fb97010e9cd1a21ae1e36ffc6d6f9babe973 SHA512 1a9609baea12059fad1e65b84c1db98e15cb3d65e1c60660a1f1ebeab5723b118d6e995a4e4219391d8aafb640da20e2a4984746e9c66893dd0cef2ea3f082f9 |
25 |
DIST spyder-docs-d43d6cd46b6eb7675ec690b0dff573ca03f2e301.gh.tar.gz 90037375 BLAKE2B 2faf8d2d07b10aec750534c73ebcfc9146533db4223908ecabafb214d7e0a85416aaaf4359f95768572bbd8806f13bd707124f9585299527af5bd5bc735293d4 SHA512 00f12af5298f5b90eaf9a4ea8706b5bb29445ca344b5117801dbac54508eefa29c807e0d4f36524fb5d8b6208204533dc657da63849cadaf13f4aa3652612cb1 |
26 |
DIST spyder-docs-d43d6cd46b6eb7675ec690b0dff573ca03f2e301.tar.gz 90037375 BLAKE2B 2faf8d2d07b10aec750534c73ebcfc9146533db4223908ecabafb214d7e0a85416aaaf4359f95768572bbd8806f13bd707124f9585299527af5bd5bc735293d4 SHA512 00f12af5298f5b90eaf9a4ea8706b5bb29445ca344b5117801dbac54508eefa29c807e0d4f36524fb5d8b6208204533dc657da63849cadaf13f4aa3652612cb1 |
27 |
|
28 |
diff --git a/dev-python/spyder/spyder-5.3.3.ebuild b/dev-python/spyder/spyder-5.3.3.ebuild |
29 |
new file mode 100644 |
30 |
index 000000000000..09784e580309 |
31 |
--- /dev/null |
32 |
+++ b/dev-python/spyder/spyder-5.3.3.ebuild |
33 |
@@ -0,0 +1,193 @@ |
34 |
+# Copyright 1999-2022 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=8 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{8..10} ) |
40 |
+DISTUTILS_USE_PEP517=setuptools |
41 |
+ |
42 |
+inherit optfeature xdg distutils-r1 |
43 |
+ |
44 |
+# Commit of documentation to fetch |
45 |
+DOCS_PV="9156f446a9225446a2a752ecb669cc3db30094a8" |
46 |
+ |
47 |
+DESCRIPTION="The Scientific Python Development Environment" |
48 |
+HOMEPAGE=" |
49 |
+ https://www.spyder-ide.org/ |
50 |
+ https://github.com/spyder-ide/spyder/ |
51 |
+ https://pypi.org/project/spyder/ |
52 |
+" |
53 |
+SRC_URI=" |
54 |
+ https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz |
55 |
+ https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz |
56 |
+" |
57 |
+ |
58 |
+LICENSE="MIT" |
59 |
+SLOT="0" |
60 |
+KEYWORDS="~amd64 ~x86" |
61 |
+ |
62 |
+# The test suite often hangs or does not work. RESTRICTing because IMO it is |
63 |
+# not worth the several hours I would have to spend every single version bump |
64 |
+# checking which tests do and do not work. |
65 |
+RESTRICT="test" |
66 |
+ |
67 |
+RDEPEND=" |
68 |
+ >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] |
69 |
+ >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] |
70 |
+ >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] |
71 |
+ >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] |
72 |
+ >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] |
73 |
+ >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] |
74 |
+ >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] |
75 |
+ >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] |
76 |
+ >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] |
77 |
+ >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] |
78 |
+ >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] |
79 |
+ >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] |
80 |
+ >=dev-python/psutil-5.3[${PYTHON_USEDEP}] |
81 |
+ >=dev-python/pygments-2.0[${PYTHON_USEDEP}] |
82 |
+ >=dev-python/python-lsp-black-1.2.0[${PYTHON_USEDEP}] |
83 |
+ >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] |
84 |
+ >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] |
85 |
+ >=dev-python/pyzmq-22.1.0[${PYTHON_USEDEP}] |
86 |
+ >=dev-python/qdarkstyle-3.0.2[${PYTHON_USEDEP}] |
87 |
+ <dev-python/qdarkstyle-3.1[${PYTHON_USEDEP}] |
88 |
+ >=dev-python/qstylizer-0.1.10[${PYTHON_USEDEP}] |
89 |
+ >=dev-python/qtawesome-1.0.2[${PYTHON_USEDEP}] |
90 |
+ >=dev-python/qtconsole-5.3.2[${PYTHON_USEDEP}] |
91 |
+ <dev-python/qtconsole-5.4.0[${PYTHON_USEDEP}] |
92 |
+ >=dev-python/QtPy-2.1.0[${PYTHON_USEDEP},svg,webengine] |
93 |
+ >=sci-libs/rtree-0.9.7[${PYTHON_USEDEP}] |
94 |
+ >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] |
95 |
+ >=dev-python/spyder-kernels-2.3.3[${PYTHON_USEDEP}] |
96 |
+ <dev-python/spyder-kernels-2.4.0[${PYTHON_USEDEP}] |
97 |
+ >=dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] |
98 |
+ >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] |
99 |
+ >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] |
100 |
+" |
101 |
+ |
102 |
+BDEPEND=" |
103 |
+ test? ( |
104 |
+ dev-python/cython[${PYTHON_USEDEP}] |
105 |
+ dev-python/flaky[${PYTHON_USEDEP}] |
106 |
+ dev-python/matplotlib[tk,${PYTHON_USEDEP}] |
107 |
+ dev-python/pandas[${PYTHON_USEDEP}] |
108 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
109 |
+ dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] |
110 |
+ dev-python/pytest-mock[${PYTHON_USEDEP}] |
111 |
+ dev-python/pytest-ordering[${PYTHON_USEDEP}] |
112 |
+ dev-python/pytest-qt[${PYTHON_USEDEP}] |
113 |
+ dev-python/pytest-xvfb[${PYTHON_USEDEP}] |
114 |
+ dev-python/pyyaml[${PYTHON_USEDEP}] |
115 |
+ dev-python/scipy[${PYTHON_USEDEP}] |
116 |
+ dev-python/sympy[${PYTHON_USEDEP}] |
117 |
+ )" |
118 |
+ |
119 |
+# Based on the courtesy of Arfrever |
120 |
+# This patch removes a call to update-desktop-database during build |
121 |
+# This fails because access is denied to this command during build |
122 |
+PATCHES=( |
123 |
+ "${FILESDIR}/${PN}-5.0.0-build.patch" |
124 |
+ "${FILESDIR}/${PN}-5.2.0-doc-theme-renamed.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 "The memory profiler plugin" dev-python/spyder-memory-profiler |
217 |
+ # spyder-autopep8 does not have a release (yet) |
218 |
+ # and are not compatible with >=spyder-4.0.0 at the moment |
219 |
+ # optfeature "The autopep8 plugin" dev-python/spyder-autopep8 |
220 |
+ # optfeature "Vim key bindings" dev-python/spyder-vim |
221 |
+ optfeature "Unittest support" dev-python/spyder-unittest |
222 |
+ # optfeature "Jupyter notebook support" dev-python/spyder-notebook |
223 |
+ optfeature "System terminal inside spyder" dev-python/spyder-terminal |
224 |
+ # spyder-reports not yet updated to >=spyder-4.0.0 |
225 |
+ # optfeature "Markdown reports using Pweave" dev-python/spyder-reports |
226 |
+} |