diff --git a/ipython-skip-noX-tests.patch b/ipython-skip-noX-tests.patch deleted file mode 100644 index 6b8f719..0000000 --- a/ipython-skip-noX-tests.patch +++ /dev/null @@ -1,35 +0,0 @@ -diff --git a/IPython/lib/tests/test_irunner_pylab_magic.py b/IPython/lib/tests/test_irunner_pylab_magic.py -index eb3f352..59aefa4 100644 ---- a/IPython/lib/tests/test_irunner_pylab_magic.py -+++ b/IPython/lib/tests/test_irunner_pylab_magic.py -@@ -15,6 +15,14 @@ import re - from IPython.lib import irunner - from IPython.testing import decorators - -+def pylab_not_importable(): -+ """Test if importing pylab fails with RuntimeError (true when having no display)""" -+ try: -+ import pylab -+ return False -+ except RuntimeError: -+ return True -+ - # Testing code begins - class RunnerTestCase(unittest.TestCase): - -@@ -57,6 +65,7 @@ class RunnerTestCase(unittest.TestCase): - self.assert_(mismatch==0,'Number of mismatched lines: %s' % - mismatch) - -+ @decorators.skipif(pylab_not_importable, "Likely a run without X.") - @decorators.skipif_not_matplotlib - def test_pylab_import_all_enabled(self): - "Verify that plot is available when pylab_import_all = True" -@@ -82,6 +91,7 @@ Out\[6\]: True - runner = irunner.IPythonRunner(out=self.out) - self._test_runner(runner,source,output) - -+ @decorators.skipif(pylab_not_importable, "Likely a run without X.") - @decorators.skipif_not_matplotlib - def test_pylab_import_all_disabled(self): - "Verify that plot is not available when pylab_import_all = False" diff --git a/ipython.spec b/ipython.spec index 39ea669..b4fa563 100644 --- a/ipython.spec +++ b/ipython.spec @@ -15,8 +15,8 @@ %endif Name: ipython -Version: 0.12 -Release: 3%{?dist} +Version: 0.13 +Release: 1%{?dist} Summary: An enhanced interactive Python shell Group: Development/Libraries @@ -26,8 +26,6 @@ Group: Development/Libraries License: (BSD and MIT and Python) and GPLv2+ URL: http://ipython.org/ Source0: http://archive.ipython.org/release/%{version}/%{name}-%{version}.tar.gz -# applied upstream https://github.com/ipython/ipython/pull/1246 -Patch0: ipython-skip-noX-tests.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -38,9 +36,7 @@ BuildRequires: python-simplegeneric %if %{with run_testsuite} # for checking/testing BuildRequires: python-nose -BuildRequires: python-mglob BuildRequires: python-simplegeneric -BuildRequires: pyparsing # "Tools and libraries available at test time:" BuildRequires: python-zmq BuildRequires: python-zmq-tests @@ -63,19 +59,18 @@ Requires: python-matplotlib Requires: pexpect Requires: python-mglob Requires: python-simplegeneric -Requires: pyparsing # add python3 packages %if 0%{?with_python3} +BuildRequires: python3-devel # for checking/testing BuildRequires: python3-nose BuildRequires: python3-mglob BuildRequires: python3-simplegeneric -#BuildRequires: python3-pyparsing # "Tools and libraries available at test time:" BuildRequires: python3-zmq BuildRequires: python3-zmq-tests -#BuildRequires: python3-tornado +BuildRequires: python3-tornado #BuildRequires: python3-pexpect #BuildRequires: python3-matplotlib #BuildRequires: python3-pymongo @@ -192,7 +187,6 @@ This package contains the gui of %{name}, which requires PyQt. %prep %setup -q -%patch0 -p1 # delete bundling libs pushd IPython/external @@ -203,19 +197,12 @@ rm argparse/_argparse.py rm decorators/_decorators.py # other packages exist in fedora -rm mglob/_mglob.py rm simplegeneric/_simplegeneric.py -rm pyparsing/_pyparsing.py %if ! 0%{?with_python3} # bundle this on python3 in experimental version for now rm pexpect/_pexpect.py %endif -# probably from here http://code.activestate.com/recipes/163604-guid/ -# python has a own uuid module -# this is only used in deathrow, delete without replacement!! -rm guid/_guid.py - # rejected in a PEP, probably no upstream #rm Itpl/_Itpl.py @@ -322,7 +309,6 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \ %{python_sitelib}/IPython/lib/ %{python_sitelib}/IPython/nbformat/ %{python_sitelib}/IPython/parallel/ -%{python_sitelib}/IPython/quarantine/ %{python_sitelib}/IPython/scripts/ %{python_sitelib}/IPython/utils/ %{python_sitelib}/IPython/zmq/ @@ -332,8 +318,6 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \ %exclude %{python_sitelib}/IPython/*/tests/ %exclude %{python_sitelib}/IPython/*/*/tests -%{python_sitelib}/IPython/.git_commit_info.ini - %files tests %defattr(-,root,root,-) @@ -396,7 +380,6 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \ %{python3_sitelib}/IPython/lib/ %{python3_sitelib}/IPython/nbformat/ %{python3_sitelib}/IPython/parallel/ -%{python3_sitelib}/IPython/quarantine/ %{python3_sitelib}/IPython/scripts/ %{python3_sitelib}/IPython/utils/ %{python3_sitelib}/IPython/zmq/ @@ -430,6 +413,11 @@ PYTHONPATH=%{buildroot}%{python_sitelib} \ %endif # with_python3 %changelog +* Sat Jun 30 2012 Thomas Spura - 0.13-1 +- update to new version +- R on mglob/pyparsing is obsolete +- remove patch, as it's upstream + * Fri Jan 27 2012 Thomas Spura - 0.12-3 - skip no X tests - continue with python3 support