Date: Saturday, October 12, 2019 @ 17:46:44 Author: muflone Revision: 515254
archrelease: copy trunk to community-testing-any Added: spyder/repos/community-testing-any/ spyder/repos/community-testing-any/PKGBUILD (from rev 515253, spyder/trunk/PKGBUILD) spyder/repos/community-testing-any/bug_54508_missing_pyqt4_qtwebkit.patch (from rev 515253, spyder/trunk/bug_54508_missing_pyqt4_qtwebkit.patch) spyder/repos/community-testing-any/spyder3_to_spyder.patch (from rev 515253, spyder/trunk/spyder3_to_spyder.patch) ----------------------------------------+ PKGBUILD | 60 +++++++++++++++++++++++++++++++ bug_54508_missing_pyqt4_qtwebkit.patch | 24 ++++++++++++ spyder3_to_spyder.patch | 45 +++++++++++++++++++++++ 3 files changed, 129 insertions(+) Copied: spyder/repos/community-testing-any/PKGBUILD (from rev 515253, spyder/trunk/PKGBUILD) =================================================================== --- community-testing-any/PKGBUILD (rev 0) +++ community-testing-any/PKGBUILD 2019-10-12 17:46:44 UTC (rev 515254) @@ -0,0 +1,60 @@ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ +# Contributor: Francois Boulogne <fboulo...@april.org> +# Contributor: TDY <t...@gmx.com> + +pkgname=spyder +pkgver=3.3.6 +pkgrel=1 +pkgdesc='The Scientific Python Development Environment (Python 3 version)' +arch=('any') +url='https://www.spyder-ide.org/' +license=('MIT') +source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/spyder-ide/${pkgname}/archive/v${pkgver}.tar.gz" + "bug_54508_missing_pyqt4_qtwebkit.patch" + "spyder3_to_spyder.patch") +sha256sums=('aa3e46e30da987a2532854d3ba30143f7876bddb3be1b0d5ced11a7ab7abea83' + '28d4aa8938d809c299ab6bf6b00a2f82677f9a98a9763b7127970881b76276f5' + 'bca64095b2409676c4dd3dddc9e19190f36cfd30494966af1eba3de876c1f2aa') +makedepends=('python-setuptools' 'python-sphinx') +depends=('python-pyqt5' 'qt5-webkit' 'python-qtconsole' 'python-qtpy' 'python-qtawesome' + 'python-pyflakes' 'python-pyzmq' 'python-pygments' 'python-psutil' 'python-pickleshare' + 'jupyter' 'jupyter-nbconvert' + 'python-rope' 'python-jedi' 'python-pylint' 'python-pycodestyle' 'python-sphinx' + 'python-opengl' 'python-spyder-kernels<1.0' 'icu' 'gtk-update-icon-cache' + 'desktop-file-utils') +optdepends=('python-numpy: N-dimensional arrays' + 'python-scipy: signal/image processing' + 'python-h5py: HDF5 support' + 'python-matplotlib: interactive 2D/3D data plotting' + 'python-sympy: symbolic mathematics for the IPython console' + 'python-pandas: view and edit DataFrames and Series in the Variable Explorer') +conflicts=('spyder3') +replaces=('spyder3') + +prepare() { + cd "${pkgname}-${pkgver}" + # Forced QT API to pyqt5 (see https://bugs.archlinux.org/task/54508) + echo "Applying patches bug_54508_missing_pyqt4_qtwebkit.patch" + patch -p1 -i "../bug_54508_missing_pyqt4_qtwebkit.patch" + # Replace spyder3 with spyder + rm "scripts/spyder.desktop" + patch -p1 -i "../spyder3_to_spyder.patch" + mv "scripts/spyder3.desktop" "scripts/spyder.desktop" + mv "scripts/spyder3.appdata.xml" "scripts/spyder.appdata.xml" +} + +build() { + cd "${pkgname}-${pkgver}" + python3 setup.py build +} + +package() { + cd "${pkgname}-${pkgver}" + python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 + # Install license file + install -D -m644 "LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" + # Install icon and desktop file + install -D -m644 "spyder/images/spyder.svg" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/${pkgname}.svg" + # Remove useless spyder_win_post_install script + rm -f "${pkgdir}/usr/bin/spyder_win_post_install.py" +} Copied: spyder/repos/community-testing-any/bug_54508_missing_pyqt4_qtwebkit.patch (from rev 515253, spyder/trunk/bug_54508_missing_pyqt4_qtwebkit.patch) =================================================================== --- community-testing-any/bug_54508_missing_pyqt4_qtwebkit.patch (rev 0) +++ community-testing-any/bug_54508_missing_pyqt4_qtwebkit.patch 2019-10-12 17:46:44 UTC (rev 515254) @@ -0,0 +1,24 @@ +diff -Naur spyder-3.1.4.orig/scripts/spyder spyder-3.1.4/scripts/spyder +--- spyder-3.1.4.orig/scripts/spyder 2017-04-24 02:30:23.000000000 +0200 ++++ spyder-3.1.4/scripts/spyder 2017-07-09 18:47:22.072698407 +0200 +@@ -1,3 +1,8 @@ + #!/usr/bin/env python ++ ++# Forced QT API to pyqt5 (see https://bugs.archlinux.org/task/54508) ++import os ++os.environ['QT_API'] = 'pyqt5' ++ + from spyder.app import start + start.main() +diff -Naur spyder-3.1.4.orig/scripts/spyder3 spyder-3.1.4/scripts/spyder3 +--- spyder-3.1.4.orig/scripts/spyder3 2017-04-24 02:30:23.000000000 +0200 ++++ spyder-3.1.4/scripts/spyder3 2017-07-09 18:47:27.659425267 +0200 +@@ -1,3 +1,8 @@ + #! /usr/bin/python3 ++ ++# Forced QT API to pyqt5 (see https://bugs.archlinux.org/task/54508) ++import os ++os.environ['QT_API'] = 'pyqt5' ++ + from spyder.app import start + start.main() Copied: spyder/repos/community-testing-any/spyder3_to_spyder.patch (from rev 515253, spyder/trunk/spyder3_to_spyder.patch) =================================================================== --- community-testing-any/spyder3_to_spyder.patch (rev 0) +++ community-testing-any/spyder3_to_spyder.patch 2019-10-12 17:46:44 UTC (rev 515254) @@ -0,0 +1,45 @@ +diff -Naur spyder-3.3.6.orig/scripts/spyder3.desktop spyder-3.3.6/scripts/spyder3.desktop +--- spyder-3.3.6.orig/scripts/spyder3.desktop 2019-07-14 12:49:39.000000000 +0200 ++++ spyder-3.3.6/scripts/spyder3.desktop 2019-10-12 19:32:47.496911043 +0200 +@@ -1,12 +1,11 @@ + [Desktop Entry] + Type=Application + Version=1.0 +-Name=Spyder3 +-GenericName=Spyder3 ++Name=Spyder + Comment=The Scientific Python Development Environment - Python 3 +-Icon=spyder3 +-TryExec=spyder3 +-Exec=spyder3 %F ++Icon=spyder ++TryExec=spyder ++Exec=spyder %F + Terminal=false + MimeType=text/x-python; + Categories=Development;Science;IDE;Qt; +diff -Naur spyder-3.3.6.orig/setup.py spyder-3.3.6/setup.py +--- spyder-3.3.6.orig/setup.py 2019-07-14 12:49:39.000000000 +0200 ++++ spyder-3.3.6/setup.py 2019-10-12 19:40:23.339975060 +0200 +@@ -85,9 +85,9 @@ + """Return data_files in a platform dependent manner""" + if sys.platform.startswith('linux'): + if PY3: +- data_files = [('share/applications', ['scripts/spyder3.desktop']), +- ('share/icons', ['img_src/spyder3.png']), +- ('share/metainfo', ['scripts/spyder3.appdata.xml'])] ++ data_files = [('share/applications', ['scripts/spyder.desktop']), ++ ('share/icons', ['img_src/spyder.png']), ++ ('share/metainfo', ['scripts/spyder.appdata.xml'])] + else: + data_files = [('share/applications', ['scripts/spyder.desktop']), + ('share/icons', ['img_src/spyder.png'])] +@@ -134,7 +134,7 @@ + # platforms due to a bug in pip installation process (see Issue 1158) + SCRIPTS = ['%s_win_post_install.py' % NAME] + if PY3 and sys.platform.startswith('linux'): +- SCRIPTS.append('spyder3') ++ SCRIPTS.append('spyder') + else: + SCRIPTS.append('spyder') +