Hello community, here is the log from the commit of package spyder for openSUSE:Factory checked in at 2017-09-09 20:24:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/spyder (Old) and /work/SRC/openSUSE:Factory/.spyder.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "spyder" Sat Sep 9 20:24:43 2017 rev:27 rq:519552 version:3.2.1 Changes: -------- --- /work/SRC/openSUSE:Factory/spyder/spyder.changes 2017-07-30 11:26:51.001881913 +0200 +++ /work/SRC/openSUSE:Factory/.spyder.new/spyder.changes 2017-09-09 20:24:44.705225835 +0200 @@ -1,0 +2,20 @@ +Mon Aug 28 21:50:20 UTC 2017 - [email protected] + +- Update to version 3.2.1 + * See: https://github.com/spyder-ide/spyder/blob/v3.2.1/CHANGELOG.md +- Update dependencies +- Implement unit test +- Update descriptions +- Remove spyderlib subpackage. spyderlib no longer exists. + Everything that was in spyderlib is now in the spyder namespace. +- Split plugins into their own subpackages. Plugins are each in + their own namespace, and third-party plugins are now possible. + Further, some plugins can pull in dependencies that some users + may not want. +- Update URL to new upstream URL. +- Add additional dependencies. +- Check which dependencies are really needed and which ones are + optional and divide them into Requires and Recommends + appropriately. + +------------------------------------------------------------------- Old: ---- spyder-2.3.8.zip New: ---- spyder-3.2.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ spyder.spec ++++++ --- /var/tmp/diff_new_pack.DqAZN2/_old 2017-09-09 20:24:45.365132819 +0200 +++ /var/tmp/diff_new_pack.DqAZN2/_new 2017-09-09 20:24:45.369132256 +0200 @@ -16,136 +16,274 @@ # +%bcond_with test +%define X_display ":98" Name: spyder -Version: 2.3.8 +Version: 3.2.1 Release: 0 -Url: http://spyderlib.googlecode.com +Url: https://github.com/spyder-ide/spyder Summary: Scientific PYthon Development EnviRonment License: MIT Group: Development/Languages/Python -Source: https://pypi.python.org/packages/source/s/spyder/spyder-%{version}.zip +Source: https://files.pythonhosted.org/packages/source/s/spyder/spyder-%{version}.tar.gz Source1: spyder-rpmlintrc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes -BuildRequires: python-Pygments +BuildRequires: python-rpm-macros +BuildRequires: python-QtAwesome >= 0.4.1 +BuildRequires: python-QtPy >= 1.1.0 +BuildRequires: python-Pygments >= 2.0 BuildRequires: python-Sphinx >= 0.6.0 -BuildRequires: python-devel >= 2.5 -BuildRequires: python-jupyter_ipykernel -BuildRequires: python-jupyter_qtconsole -BuildRequires: python-matplotlib -BuildRequires: python-numpy +BuildRequires: python-chardet >= 2.0.0 +BuildRequires: python-devel +BuildRequires: python-jedi >= 0.9.0 +BuildRequires: python-jupyter_nbconvert +BuildRequires: python-jupyter_qtconsole >= 4.2.0 +BuildRequires: python-numpydoc +BuildRequires: python-pickleshare +BuildRequires: python-pycodestyle +BuildRequires: python-pyflakes +BuildRequires: python-pylint BuildRequires: python-psutil -BuildRequires: python-qt4 >= 4.6 -BuildRequires: python-rope => 0.9.2 -BuildRequires: python-scipy -BuildRequires: unzip +BuildRequires: python-pyzmq +BuildRequires: python-qt5 >= 5.2 +BuildRequires: python-rope >= 0.10.5 +BuildRequires: python-setuptools BuildRequires: update-desktop-files -Requires: python-spyderlib = %{version} -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +%if %{with test} +BuildRequires: python-Cython +BuildRequires: python-Pillow +BuildRequires: python-flaky +BuildRequires: python-matplotlib +BuildRequires: python-mock +BuildRequires: python-pandas +BuildRequires: python-pytest +BuildRequires: python-pytest-cov +BuildRequires: python-pytest-qt +BuildRequires: python-pytest-timeout +BuildRequires: python-pytest-xvfb +BuildRequires: python-scipy +BuildRequires: python-sympy +BuildRequires: xauth +BuildRequires: xorg-x11-server %endif +Requires: python-Pygments >= 2.0 +Requires: python-QtAwesome >= 0.4.1 +Requires: python-QtPy >= 1.1.0 +Requires: python-Sphinx >= 0.6.0 +Requires: python-chardet >= 2.0.0 +Requires: python-jedi >= 0.9.0 +Requires: python-jupyter_nbconvert +Requires: python-jupyter_qtconsole >= 4.2.0 +Requires: python-numpydoc +Requires: python-pickleshare +Requires: python-psutil +Requires: python-pycodestyle +Requires: python-pyflakes +Requires: python-pylint +Requires: python-pyzmq +Requires: python-qt5 >= 5.2 +Requires: python-rope >= 0.10.5 +Recommends: python-Pillow +Recommends: python-matplotlib >= 1.0 +Recommends: python-numpy +Recommends: python-pandas >= 0.13.1 +Recommends: python-scipy +Recommends: python-sympy >= 0.7.3 +Recommends: %{name}-breakpoints +Recommends: %{name}-dicom +Recommends: %{name}-hdf5 +Recommends: %{name}-profiler +Recommends: %{name}-pylint +Provides: python-spyderlib = %{version} +Obsoletes: python-spyderlib < %{version} +BuildArch: noarch %description -A Scientific Python development environment, an alternative to IDLE -with powerful interactive features such as variable explorer (with -GUI-based editors for dictionaries, lists, NumPy arrays, etc.), object -inspector, online help, and a lot more. +spyder is a scientific python development environment and an +alternative to IDLE with interactive features such as variable +explorer (with GUI-based editors for dictionaries, lists, NumPy +arrays, etc.), object inspector and online help. -%package -n python-spyderlib -Summary: Python GUI components +%package breakpoints +Summary: Breakpoint plugin for the Spyder IDE Group: Development/Languages/Python -Requires: python-Sphinx >= 0.6.0 -Requires: python-qt4 >= 4.6 -Recommends: python-Pygments -Recommends: python-flake8 -Recommends: python-jupyter_ipykernel -Recommends: python-jupyter_qtconsole -Recommends: python-matplotlib -Recommends: python-numpy -Recommends: python-pep8 -Recommends: python-psutil -Recommends: python-pyflakes >= 0.5.0 -Recommends: python-pylint -Recommends: python-rope >= 0.9.2 -Recommends: python-scipy +Requires: %{name} = %{version} -%description -n python-spyderlib -The spyderlib module provides powerful console and -editor related widgets to your PyQt4 application. +%description breakpoints +spyder is a scientific python development environment and an +alternative to IDLE. -%package doc -Summary: Documentation for %{name} and python-spyderlib +This package contains the plugin that allows Spyder to control +breakpoints. + +%package dicom +Summary: DICOM I/O plugin for the Spyder IDE +Group: Development/Languages/Python +Requires: %{name} = %{version} +Requires: python-pydicom + +%description dicom +spyder is a scientific python development environment and an +alternative to IDLE. + +This package contains the plugin that allows Spyder to read and write +DICOM files. + +%package hdf5 +Summary: HDF5 I/O plugin for the Spyder IDE +Group: Development/Languages/Python +Requires: %{name} = %{version} +Requires: python-h5py + +%description hdf5 +spyder is a scientific python development environment and an +alternative to IDLE. + +This package contains the plugin that allows Spyder to read and write +HDF5 files. + +%package profiler +Summary: Profiler plugin for the Spyder IDE +Group: Development/Languages/Python +Requires: %{name} = %{version} + +%description profiler +spyder is a scientific python development environment and an +alternative to IDLE. + +This package contains the plugin that allows Spyder to profile +Python code. + +%package pylint +Summary: Pylint plugin for the Spyder IDE Group: Development/Languages/Python Requires: %{name} = %{version} +Requires: python-pylint + +%description pylint +spyder is a scientific python development environment and an +alternative to IDLE. + +This package contains the plugin that allows Spyder to provide +inline pylint code analysis and warnings. + +%package doc +Summary: Documentation for the Spyder IDE +Group: Development/Languages/Python +Recommends: %{name} = %{version} %description doc -Documentation and help files for both %{name} and python-spyderlib +spyder is a scientific python development environment and an +alternative to IDLE. + +Documentation and help files for Spyder and its plugins. %lang_package +%lang_package -n %{name}-breakpoints +%lang_package -n %{name}-profiler +%lang_package -n %{name}-pylint %prep -%setup -q +%setup -q -n spyder-%{version} # Fix wrong-file-end-of-line-encoding RPMLint warning sed -i 's/\r$//' doc/*.rst -sed -i 's/\r$//' spyderlib/userconfig.py +sed -i 's/\r$//' spyder/app/restart.py sed -i 's/\r$//' LICENSE -# Remove shebangs -sed -i '1s/^#!.*//' spyderlib/utils/external/pickleshare.py spyderlib/userconfig.py +# Fix non-executable-script RPMLint warning +sed -i '1{\@^#!/usr/bin/env python@d}' spyder/app/restart.py %build -python setup.py build +%python2_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python2_install + # remove windows stuff rm %{buildroot}%{_bindir}/spyder_win_post_install.py -# create missing directories -mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ + # install the icon +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ pushd %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/ -ln -s %{python_sitelib}/spyderlib/images/spyder.svg %{name}.svg +ln -s %{python2_sitelib}/spyder/images/spyder.svg %{name}.svg popd -%find_lang spyderlib %{name}.lang -%find_lang p_breakpoints %{name}.lang -%find_lang p_profiler %{name}.lang -%find_lang p_pylint %{name}.lang + +# get the language files +%find_lang spyder %{name}.lang +%find_lang breakpoints breakpoints.lang +%find_lang profiler profiler.lang +%find_lang pylint pylint.lang + +# Documentation belongs in %%{_docdir}: +rm -r %{buildroot}%{python2_sitelib}/spyder/doc +rm -f build/lib/spyder/doc/.buildinfo + %suse_update_desktop_file %{name} -%fdupes %{buildroot}%{python_sitelib} -# Documentation belongs into _docdir: -rm -r %{buildroot}%{python_sitelib}/spyderlib/doc -# Build documentation -sphinx-build -b html -d doc/build/doctrees doc doc/build/html -rm doc/build/html/.buildinfo -# Fix shebang -sed -i '1s/^#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' %{buildroot}%{_bindir}/%{name} +%fdupes %{buildroot}%{python2_sitelib} + +%if %{with test} +%check +export DISPLAY=%{X_display} +Xvfb %{X_display} >& Xvfb.log & +trap "kill $! || true" EXIT +sleep 10 +python2 -B -m pytest spyder +%endif %files %defattr(-,root,root,-) +%doc LICENSE README.md %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop +%{python2_sitelib}/spyder/ +%{python2_sitelib}/spyder-%{version}-py*.egg-info +%exclude %{python2_sitelib}/spyder/locale/ %dir %{_datadir}/icons/hicolor/scalable %dir %{_datadir}/icons/hicolor/scalable/apps %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{_datadir}/pixmaps/%{name}.png -%files -n python-spyderlib +%files breakpoints %defattr(-,root,root,-) -%doc LICENSE README.md -%{python_sitelib}/spyderlib/ -%{python_sitelib}/spyderplugins/ -%{python_sitelib}/spyder-%{version}-py*.egg-info -%exclude %{python_sitelib}/spyderlib/locale/ -%exclude %{python_sitelib}/spyderplugins/locale/ +%{python2_sitelib}/spyder_breakpoints/ +%exclude %{python2_sitelib}/spyder_breakpoints/locale/ + +%files dicom +%defattr(-,root,root,-) +%{python2_sitelib}/spyder_io_dcm/ + +%files hdf5 +%defattr(-,root,root,-) +%{python2_sitelib}/spyder_io_hdf5/ + +%files profiler +%defattr(-,root,root,-) +%{python2_sitelib}/spyder_profiler/ +%exclude %{python2_sitelib}/spyder_profiler/locale/ + +%files pylint +%defattr(-,root,root,-) +%{python2_sitelib}/spyder_pylint/ +%exclude %{python2_sitelib}/spyder_pylint/locale/ %files doc %defattr(-,root,root,-) -%doc doc/build/html +%doc build/lib/spyder/doc/ %files lang -f %{name}.lang %defattr(-,root,root) -%{python_sitelib}/spyderlib/locale -%{python_sitelib}/spyderplugins/locale/ +%{python2_sitelib}/spyder/locale/ + +%files breakpoints-lang -f breakpoints.lang +%defattr(-,root,root) +%{python2_sitelib}/spyder_breakpoints/locale/ + +%files profiler-lang -f profiler.lang +%defattr(-,root,root) +%{python2_sitelib}/spyder_profiler/locale/ + +%files pylint-lang -f pylint.lang +%defattr(-,root,root) +%{python2_sitelib}/spyder_pylint/locale/ %changelog
