Menu

#343 Please support spyder 3.x

unassigned
waiting
nobody
None
bug
2016-10-24
2016-09-25
No

Hello

the new spyder project 3.x series renamed the spyderlib modules into spyder.

could you support this please.

Cheers

Frederic

Discussion

  • Carlos Pascual

    Carlos Pascual - 2016-09-26

    Here is a grep for occurrences in Taurus:

    Only a couple of imports (and they are in secondary parts of the code). The most tedious will be to update the mocks:

    :~/src/taurus(develop)$ grep -r spyder . |grep -v '\./build' |grep -v '\./dist/'|grep -v \.pyc                                                                                                                                       
    Binary file ./doc/mock.zip matches                                                                                                                                                                                                                 
    ./doc/buildmock.py:                    'guidata', 'guiqwt', 'spyderlib', 'IPython', 'ply']                                                                                                                                                         
    ./doc/buildmock.py:               'spyderlib.scientific_startup',                                                                                                                                                                                  
    ./doc/buildmock.py:               'spyderlib.spyder',                                                                                                                                                                                              
    ./doc/buildmock.py:               'spyderlib.widgets.externalshell.start_ipython_kernel']                                                                                                                                                          
    ./setup.py:    'spyder (>=2.2)',  # [Taurus-Editor] --> or maybe move it to sardana                                                                                                                                                                
    ./setup.py:    # 'Taurus-Editor': ['spyder>=2.2'],  # [Taurus-Editor] --> or maybe move it to sardana                                                                                                                                              
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:    import spyderlib                                                                                                                                                                                  
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:    v = spyderlib.__version__.split('.', 2)[:2]
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:        raise Exception("TaurusEditor needs spyderlib >= 2.1")
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:    raise Exception("TaurusEditor needs spyderlib >= 2.1")
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:from spyderlib.utils.qthelpers import create_toolbutton
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:from spyderlib.widgets.findreplace import FindReplace
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:from spyderlib.widgets.editortools import OutlineExplorerWidget
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:from spyderlib.widgets.editor import EditorMainWindow, EditorSplitter
    ./lib/taurus/qt/qtgui/editor/tauruseditor.py:from spyderlib.plugins.editor import Editor
    ./lib/taurus/qt/qtgui/util/taurusropepatch.py:"""Rope patch for better performances. Based on spyderlib.rope_patch"""
    ./lib/taurus/qt/qtgui/util/taurusropepatch.py:    from spyderlib.utils.dochelpers import getargs
    ./lib/taurus/core/taurushelper.py:def __get_spyderlib_version():
    ./lib/taurus/core/taurushelper.py:        import spyderlib
    ./lib/taurus/core/taurushelper.py:        return spyderlib.__version__
    ./lib/taurus/core/taurushelper.py:def __get_spyderlib_version_number():
    ./lib/taurus/core/taurushelper.py:    spyderlibver_str = __get_spyderlib_version()
    ./lib/taurus/core/taurushelper.py:    if spyderlibver_str is None:
    ./lib/taurus/core/taurushelper.py:    return __translate_version_str2int(spyderlibver_str)
    ./lib/taurus/core/taurushelper.py:        "spyderlib": ("2.0.0", "2.0.0"),
    ./lib/taurus/core/taurushelper.py:    m = "Checking for spyderlib >=%s..." % r["spyderlib"][0]
    ./lib/taurus/core/taurushelper.py:    minspyderlib, recspyderlib = map(
    ./lib/taurus/core/taurushelper.py:        __translate_version_str2int, r["spyderlib"])
    ./lib/taurus/core/taurushelper.py:    currspyderlib, currspyderlibStr = __get_spyderlib_version_number(
    ./lib/taurus/core/taurushelper.py:    ), __get_spyderlib_version()
    ./lib/taurus/core/taurushelper.py:    if currspyderlib is None:
    ./lib/taurus/core/taurushelper.py:    elif currspyderlib < minspyderlib:
    ./lib/taurus/core/taurushelper.py:        yield 1, "{msg} {WARN} (Found {fnd}. Recommended >={rec})".format(msg=m, fnd=currspyderlibStr, rec=r['spyderlib'][1], **MSG)
    ./lib/taurus/core/taurushelper.py:        yield 0, "{msg} {OK} (Found {fnd})".format(msg=m, fnd=currspyderlibStr, **MSG)
    ./lib/taurus.egg-info/PKG-INFO:Requires: spyder (>=2.2)
    ./LICENSE.txt:(http://code.google.com/p/spyderlib/)and are licensed under the MIT License
    
     
  • Carlos Pascual

    Carlos Pascual - 2016-10-24
     

    Last edit: Carlos Pascual 2016-11-14