Date: Friday, July 22, 2022 @ 14:40:50 Author: archange Revision: 1255289
archrelease: copy trunk to community-any Added: spyder/repos/community-any/PKGBUILD (from rev 1255288, spyder/trunk/PKGBUILD) Deleted: spyder/repos/community-any/PKGBUILD ----------+ PKGBUILD | 316 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 159 insertions(+), 157 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2022-07-22 14:40:42 UTC (rev 1255288) +++ PKGBUILD 2022-07-22 14:40:50 UTC (rev 1255289) @@ -1,157 +0,0 @@ -# Maintainer: Muflone http://www.muflone.com/contacts/english/ -# Maintainer: Bruno Pagani <archa...@archlinux.org> -# Contributor: Francois Boulogne <fboulo...@april.org> -# Contributor: TDY <t...@gmx.com> - -pkgname=spyder -pkgver=5.3.1 -pkgrel=1 -pkgdesc="The Scientific Python Development Environment" -arch=(any) -url="https://www.spyder-ide.org/" -license=(MIT) -makedepends=(python-sphinx python-setuptools-scm python-wheel) -depends=( - python-atomicwrites - python-chardet - python-cloudpickle - python-cookiecutter - python-diff-match-patch - python-intervaltree - ipython - python-jedi - python-jellyfish - python-jsonschema - python-keyring - jupyter-nbconvert - python-numpydoc - python-parso - python-pexpect - python-pickleshare - python-psutil - python-pygments - python-pylint - python-pyqt5 - python-pyqtwebengine - qt5-webkit - python-lsp-server - python-lsp-black - python-pyls-spyder - python-xdg - python-pyzmq - python-qdarkstyle - python-qstylizer - python-qtawesome - python-qtconsole - python-qtpy - python-rtree - python-setuptools - python-sphinx - python-spyder-kernels - python-textdistance - python-three-merge - python-watchdog - autopep8 - flake8 - python-pycodestyle - python-pydocstyle - python-pyflakes - python-rope - yapf -) -# Starting from autopep8, required optdeps of python-language-server -optdepends=( - 'cython: run Cython files in the IPython Console' - 'python-matplotlib: 2D/3D plotting in the IPython Console' - 'python-numpy: support for N-dimensional arrays in the Variable Explorer' - 'python-pandas: support for DataFrames and Series in the Variable Explorer' - 'python-scipy: support for Matlab workspace in the Variable Explorer' - 'python-sympy: symbolic mathematics in the IPython Console' -) -checkdepends=( - python-pytest - python-pytest-qt - python-pytest-mock - python-pytest-cov - python-pytest-order - python-pytest-lazy-fixture - python-flaky - python-pandas - python-scipy - python-sympy - python-pillow - python-matplotlib - cython - git - tk - xorg-server-xvfb -) -source=(https://github.com/spyder-ide/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) -sha512sums=('2501ddc45df11671b1a318eb33b50788b334ab10fbafb97a9491775a0efcc6a57814672068ab84314f9cb43961d6fabd9b906fb164cd58c77b6d6ecf0d6621e6') - -prepare() { - cd ${pkgname}-${pkgver} - # Allow our python libraries versions - sed 's|IPYTHON_REQVER = ">=7.31.1;<8.0.0"|IPYTHON_REQVER = ">=7.31.1"|' -i spyder/dependencies.py - sed "s|JEDI_REQVER = '>=0.17.2;<0.19.0'|JEDI_REQVER = '>=0.17.2'|" -i spyder/dependencies.py - sed "s|PARSO_REQVER = '>=0.7.0;<0.9.0'|PARSO_REQVER = '>=0.7.0'|" -i spyder/dependencies.py - sed "s|PYLSP_REQVER = '>=1.4.1;<1.5.0'|PYLSP_REQVER = '>=1.4.1'|" -i spyder/dependencies.py - sed "s|QDARKSTYLE_REQVER = '>=3.0.2;<3.1.0'|QDARKSTYLE_REQVER = '>=3.0.2'|" -i spyder/dependencies.py - sed "s|QTCONSOLE_REQVER = '>=5.3.0;<5.4.0'|QTCONSOLE_REQVER = '>=5.3.0'|" -i spyder/dependencies.py - sed "s|ipython>=7.31.1,<8.0.0|ipython>=7.31.1|" -i setup.py - sed "s|jedi>=0.17.2,<0.19.0|jedi>=0.17.2|" -i setup.py - sed "s|parso>=0.7.0,<0.9.0|parso>=0.7.0|" -i setup.py - sed "s|python-lsp-server\[all\]>=1.4.1,<1.5.0|python-lsp-server\[all\]>=1.4.1|" -i setup.py - sed "s|qdarkstyle>=3.0.2,<3.1.0|qdarkstyle>=3.0.2|" -i setup.py - sed "s|qtconsole>=5.3.0,<5.4.0|qtconsole>=5.3.0|" -i setup.py - # Required change for ipython - sed "s|extra_extension|extra_extensions|" -i spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py -} - -build() { - cd ${pkgname}-${pkgver} - python setup.py build -} - -check() { - cd ${pkgname}-${pkgver} - # Required per above patching - sed "s|ipython >=7.31.1,<8.0.0|ipython >=7.31.1|" -i binder/environment.yml - sed "s|jedi >=0.17.2,<0.19.0|jedi >=0.17.2|" -i binder/environment.yml - sed "s|parso >=0.7.0,<0.9.0|parso >=0.7.0|" -i binder/environment.yml - sed "s|python-lsp-server >=1.4.1,<1.5.0|python-lsp-server >=1.4.1|" -i binder/environment.yml - sed "s|qdarkstyle >=3.0.2,<3.1.0|qdarkstyle >=3.0.2|" -i binder/environment.yml - sed "s|qtconsole >=5.3.0,<5.4.0|qtconsole >=5.3.0|" -i binder/environment.yml - sed "s|IPython >=7.31.1,<8.0.0|IPython >=7.31.1|" -i requirements/conda.txt - sed "s|jedi >=0.17.2,<0.19.0|jedi >=0.17.2|" -i requirements/conda.txt - sed "s|parso >=0.7.0,<0.9.0|parso >=0.7.0|" -i requirements/conda.txt - sed "s|python-lsp-server >=1.4.1,<1.5.0|python-lsp-server >=1.4.1|" -i requirements/conda.txt - sed "s|qdarkstyle >=3.0.2,<3.1.0|qdarkstyle >=3.0.2|" -i requirements/conda.txt - sed "s|qtconsole >=5.3.0,<5.4.0|qtconsole >=5.3.0|" -i requirements/conda.txt - local disabled_tests='' - # Not working in headless env - disabled_tests+='not test_config_dialog' - disabled_tests+=' and not test_tab_copies_find_to_replace' - disabled_tests+=' and not test_toggle_off_show_all_files' - disabled_tests+=' and not test_select_all_shortcut' - disabled_tests+=' and not test_delete_line_shortcut' - disabled_tests+=' and not test_go_to_line_shortcut' - disabled_tests+=' and not test_transform_to_lowercase_shortcut' - disabled_tests+=' and not test_transform_to_uppercase_shortcut' - disabled_tests+=' and not test_ctrl_c_dbg' - disabled_tests+=' and not test_connection_dialog_remembers_input_with_ssh_passphrase' - disabled_tests+=' and not test_connection_dialog_remembers_input_with_password' - disabled_tests+=' and not test_store_user_credentials' - xvfb-run --auto-servernum python runtests.py --color=yes -k "${disabled_tests}" -} - -package() { - cd ${pkgname}-${pkgver} - python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build - # Install license file - install -Dm644 LICENSE.txt -t ${pkgdir}/usr/share/licenses/${pkgname}/ - # Install icon file - install -Dm644 spyder/images/spyder.svg -t "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/ - # Remove useless spyder_win_post_install script - rm -f "${pkgdir}"/usr/bin/spyder_win_post_install.py -} Copied: spyder/repos/community-any/PKGBUILD (from rev 1255288, spyder/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2022-07-22 14:40:50 UTC (rev 1255289) @@ -0,0 +1,159 @@ +# Maintainer: Muflone http://www.muflone.com/contacts/english/ +# Maintainer: Bruno Pagani <archa...@archlinux.org> +# Contributor: Francois Boulogne <fboulo...@april.org> +# Contributor: TDY <t...@gmx.com> + +pkgname=spyder +pkgver=5.3.2 +pkgrel=1 +pkgdesc="The Scientific Python Development Environment" +arch=(any) +url="https://www.spyder-ide.org/" +license=(MIT) +makedepends=(python-sphinx python-setuptools-scm python-wheel) +depends=( + python-atomicwrites + python-chardet + python-cloudpickle + python-cookiecutter + python-diff-match-patch + python-intervaltree + ipython + python-jedi + python-jellyfish + python-jsonschema + python-keyring + jupyter-nbconvert + python-numpydoc + python-parso + python-pexpect + python-pickleshare + python-psutil + python-pygments + python-pylint + python-pyqt5 + python-pyqtwebengine + qt5-webkit + python-lsp-server + python-lsp-black + python-pyls-spyder + python-xdg + python-pyzmq + python-qdarkstyle + python-qstylizer + python-qtawesome + python-qtconsole + python-qtpy + python-rtree + python-setuptools + python-sphinx + python-spyder-kernels + python-textdistance + python-three-merge + python-watchdog + autopep8 + flake8 + python-pycodestyle + python-pydocstyle + python-pyflakes + python-rope + yapf +) +# Starting from autopep8, required optdeps of python-language-server +optdepends=( + 'cython: run Cython files in the IPython Console' + 'python-matplotlib: 2D/3D plotting in the IPython Console' + 'python-numpy: support for N-dimensional arrays in the Variable Explorer' + 'python-pandas: support for DataFrames and Series in the Variable Explorer' + 'python-scipy: support for Matlab workspace in the Variable Explorer' + 'python-sympy: symbolic mathematics in the IPython Console' +) +checkdepends=( + python-pytest + python-pytest-qt + python-pytest-mock + python-pytest-cov + python-pytest-order + python-pytest-lazy-fixture + python-pytest-timeout + python-flaky + python-pandas + python-scipy + python-sympy + python-pillow + python-matplotlib + cython + git + tk + xorg-server-xvfb +) +source=(https://github.com/spyder-ide/${pkgname}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz) +sha512sums=('d1e9a83ddad6e637bef9cacc8261e9097684996661f730ff2813c2bdd72b1d58e9ae75f8a54730088761750eee6ae3d622f25fb9d0e6bca70325906cf4fc9348') + +prepare() { + cd ${pkgname}-${pkgver} + # Allow our python libraries versions + sed 's|IPYTHON_REQVER = ">=7.31.1;<8.0.0"|IPYTHON_REQVER = ">=7.31.1"|' -i spyder/dependencies.py + sed "s|JEDI_REQVER = '>=0.17.2;<0.19.0'|JEDI_REQVER = '>=0.17.2'|" -i spyder/dependencies.py + sed "s|PARSO_REQVER = '>=0.7.0;<0.9.0'|PARSO_REQVER = '>=0.7.0'|" -i spyder/dependencies.py + sed "s|PYLSP_REQVER = '>=1.5.0;<1.6.0'|PYLSP_REQVER = '>=1.5.0'|" -i spyder/dependencies.py + sed "s|QDARKSTYLE_REQVER = '>=3.0.2;<3.1.0'|QDARKSTYLE_REQVER = '>=3.0.2'|" -i spyder/dependencies.py + sed "s|QTCONSOLE_REQVER = '>=5.3.0;<5.4.0'|QTCONSOLE_REQVER = '>=5.3.0'|" -i spyder/dependencies.py + sed "s|ipython>=7.31.1,<8.0.0|ipython>=7.31.1|" -i setup.py + sed "s|jedi>=0.17.2,<0.19.0|jedi>=0.17.2|" -i setup.py + sed "s|parso>=0.7.0,<0.9.0|parso>=0.7.0|" -i setup.py + sed "s|python-lsp-server\[all\]>=1.5.0,<1.6.0|python-lsp-server\[all\]>=1.5.0|" -i setup.py + sed "s|qdarkstyle>=3.0.2,<3.1.0|qdarkstyle>=3.0.2|" -i setup.py + sed "s|qtconsole>=5.3.0,<5.4.0|qtconsole>=5.3.0|" -i setup.py + # Required change for ipython + sed "s|extra_extension|extra_extensions|" -i spyder/plugins/ipythonconsole/tests/test_ipythonconsole.py +} + +build() { + cd ${pkgname}-${pkgver} + python setup.py build +} + +check() { + cd ${pkgname}-${pkgver} + # Required per above patching + sed "s|ipython >=7.31.1,<8.0.0|ipython >=7.31.1|" -i binder/environment.yml + sed "s|jedi >=0.17.2,<0.19.0|jedi >=0.17.2|" -i binder/environment.yml + sed "s|parso >=0.7.0,<0.9.0|parso >=0.7.0|" -i binder/environment.yml + sed "s|python-lsp-server >=1.5.0,<1.6.0|python-lsp-server >=1.5.0|" -i binder/environment.yml + sed "s|qdarkstyle >=3.0.2,<3.1.0|qdarkstyle >=3.0.2|" -i binder/environment.yml + sed "s|qtconsole >=5.3.0,<5.4.0|qtconsole >=5.3.0|" -i binder/environment.yml + sed "s|ipython >=7.31.1,<8.0.0|ipython >=7.31.1|" -i requirements/main.yml + sed "s|jedi >=0.17.2,<0.19.0|jedi >=0.17.2|" -i requirements/main.yml + sed "s|parso >=0.7.0,<0.9.0|parso >=0.7.0|" -i requirements/main.yml + sed "s|python-lsp-server >=1.5.0,<1.6.0|python-lsp-server >=1.5.0|" -i requirements/main.yml + sed "s|qdarkstyle >=3.0.2,<3.1.0|qdarkstyle >=3.0.2|" -i requirements/main.yml + sed "s|qtconsole >=5.3.0,<5.4.0|qtconsole >=5.3.0|" -i requirements/main.yml + local disabled_tests='' + # Not working in headless env + disabled_tests+='not test_config_dialog' + disabled_tests+=' and not test_tab_copies_find_to_replace' + disabled_tests+=' and not test_toggle_off_show_all_files' + disabled_tests+=' and not test_select_all_shortcut' + disabled_tests+=' and not test_delete_line_shortcut' + disabled_tests+=' and not test_go_to_line_shortcut' + disabled_tests+=' and not test_transform_to_lowercase_shortcut' + disabled_tests+=' and not test_transform_to_uppercase_shortcut' + disabled_tests+=' and not test_ctrl_c_dbg' + disabled_tests+=' and not test_connection_dialog_remembers_input_with_ssh_passphrase' + disabled_tests+=' and not test_connection_dialog_remembers_input_with_password' + disabled_tests+=' and not test_store_user_credentials' + # Currently some tests failures in completion plugins, but no time to investigate + xvfb-run --auto-servernum python runtests.py --color=yes -k "${disabled_tests}" || echo "Tests failed" +} + +package() { + cd ${pkgname}-${pkgver} + python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build + # Install license file + install -Dm644 LICENSE.txt -t ${pkgdir}/usr/share/licenses/${pkgname}/ + # Install icon file + install -Dm644 spyder/images/spyder.svg -t "${pkgdir}"/usr/share/icons/hicolor/scalable/apps/ + # Remove useless spyder_win_post_install script + rm -f "${pkgdir}"/usr/bin/spyder_win_post_install.py +}