[spyder] 01/01: Imported Upstream version 2.3.9+dfsg1
Frédéric-Emmanuel Picca
picca at moszumanska.debian.org
Sun Aug 21 17:33:28 UTC 2016
This is an automated email from the git hooks/post-receive script.
picca pushed a commit to annotated tag upstream/2.3.9+dfsg1
in repository spyder.
commit d5e0216a2ffff72a9a64b6bee8a5252f8b8d33d1
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date: Sun May 1 09:06:07 2016 +0200
Imported Upstream version 2.3.9+dfsg1
---
PKG-INFO | 4 +-
setup.cfg | 2 +-
spyder.egg-info/PKG-INFO | 4 +-
spyderlib/__init__.py | 2 +-
spyderlib/locale/es/LC_MESSAGES/spyderlib.mo | Bin 97535 -> 97535 bytes
spyderlib/locale/es/LC_MESSAGES/spyderlib.po | 22 +++++-----
spyderlib/locale/fr/LC_MESSAGES/spyderlib.mo | Bin 99259 -> 99259 bytes
spyderlib/locale/fr/LC_MESSAGES/spyderlib.po | 22 +++++-----
spyderlib/locale/spyderlib.pot | 22 +++++-----
spyderlib/rope_patch.py | 9 ++--
spyderlib/widgets/dicteditorutils.py | 18 ++++----
spyderlib/widgets/externalshell/sitecustomize.py | 47 ++++++++++++++-------
spyderlib/widgets/internalshell.py | 5 +++
.../locale/es/LC_MESSAGES/p_breakpoints.mo | Bin 772 -> 772 bytes
spyderplugins/locale/es/LC_MESSAGES/p_profiler.mo | Bin 794 -> 794 bytes
spyderplugins/locale/es/LC_MESSAGES/p_pylint.mo | Bin 1137 -> 1137 bytes
.../locale/fr/LC_MESSAGES/p_breakpoints.mo | Bin 762 -> 762 bytes
spyderplugins/locale/fr/LC_MESSAGES/p_profiler.mo | Bin 2342 -> 2342 bytes
spyderplugins/locale/fr/LC_MESSAGES/p_pylint.mo | Bin 2594 -> 2594 bytes
19 files changed, 88 insertions(+), 69 deletions(-)
diff --git a/PKG-INFO b/PKG-INFO
index daf0484..0b813a1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: spyder
-Version: 2.3.8
+Version: 2.3.9
Summary: Scientific PYthon Development EnviRonment
Home-page: https://github.com/spyder-ide/spyder
Author: Pierre Raybaut
Author-email: UNKNOWN
License: MIT
-Download-URL: https://github.com/spyder-ide/spyder/files/spyder-2.3.8.zip
+Download-URL: https://github.com/spyder-ide/spyder/files/spyder-2.3.9.zip
Description: Spyder is an interactive Python development environment providing
MATLAB-like features in a simple and light-weighted software.
It also provides ready-to-use pure-Python widgets to your PyQt4 or
diff --git a/setup.cfg b/setup.cfg
index 00bb0ae..861a9f5 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,5 @@
[egg_info]
+tag_build =
tag_date = 0
tag_svn_revision = 0
-tag_build =
diff --git a/spyder.egg-info/PKG-INFO b/spyder.egg-info/PKG-INFO
index daf0484..0b813a1 100644
--- a/spyder.egg-info/PKG-INFO
+++ b/spyder.egg-info/PKG-INFO
@@ -1,12 +1,12 @@
Metadata-Version: 1.1
Name: spyder
-Version: 2.3.8
+Version: 2.3.9
Summary: Scientific PYthon Development EnviRonment
Home-page: https://github.com/spyder-ide/spyder
Author: Pierre Raybaut
Author-email: UNKNOWN
License: MIT
-Download-URL: https://github.com/spyder-ide/spyder/files/spyder-2.3.8.zip
+Download-URL: https://github.com/spyder-ide/spyder/files/spyder-2.3.9.zip
Description: Spyder is an interactive Python development environment providing
MATLAB-like features in a simple and light-weighted software.
It also provides ready-to-use pure-Python widgets to your PyQt4 or
diff --git a/spyderlib/__init__.py b/spyderlib/__init__.py
index 1bd5023..25fce2d 100644
--- a/spyderlib/__init__.py
+++ b/spyderlib/__init__.py
@@ -28,7 +28,7 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
"""
-__version__ = '2.3.8'
+__version__ = '2.3.9'
__license__ = __doc__
__project_url__ = 'https://github.com/spyder-ide/spyder'
__forum_url__ = 'http://groups.google.com/group/spyderlib'
diff --git a/spyderlib/locale/es/LC_MESSAGES/spyderlib.mo b/spyderlib/locale/es/LC_MESSAGES/spyderlib.mo
index 66efe83..f1cc467 100644
Binary files a/spyderlib/locale/es/LC_MESSAGES/spyderlib.mo and b/spyderlib/locale/es/LC_MESSAGES/spyderlib.mo differ
diff --git a/spyderlib/locale/es/LC_MESSAGES/spyderlib.po b/spyderlib/locale/es/LC_MESSAGES/spyderlib.po
index 9446efd..1675be4 100644
--- a/spyderlib/locale/es/LC_MESSAGES/spyderlib.po
+++ b/spyderlib/locale/es/LC_MESSAGES/spyderlib.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: 2.1\n"
-"POT-Creation-Date: 2015-11-24 20:56+COT\n"
+"POT-Creation-Date: 2016-04-26 17:57+COT\n"
"PO-Revision-Date: 2015-08-24 15:13-0500\n"
"Last-Translator: Carlos Cordoba <ccordoba12 at gmail.com>\n"
"Language-Team: Python\n"
@@ -4362,43 +4362,43 @@ msgstr ""
"<b>No fue posible pasar al siguiente paso</b><br><br>Por favor revise sus "
"daros.<br><br>Mensaje de error:<br>%s"
-#: spyderlib/widgets/internalshell.py:252
+#: spyderlib/widgets/internalshell.py:257
msgid "Help..."
msgstr "Ayuda..."
-#: spyderlib/widgets/internalshell.py:259
+#: spyderlib/widgets/internalshell.py:264
msgid "Help"
msgstr "Ayuda"
-#: spyderlib/widgets/internalshell.py:268
+#: spyderlib/widgets/internalshell.py:273
msgid "Shell special commands:"
msgstr "Comandos especiales:"
-#: spyderlib/widgets/internalshell.py:269
+#: spyderlib/widgets/internalshell.py:274
msgid "Internal editor:"
msgstr "Editor interno:"
-#: spyderlib/widgets/internalshell.py:270
+#: spyderlib/widgets/internalshell.py:275
msgid "External editor:"
msgstr "Editor externo:"
-#: spyderlib/widgets/internalshell.py:271
+#: spyderlib/widgets/internalshell.py:276
msgid "Run script:"
msgstr "Ejecutar un archivo:"
-#: spyderlib/widgets/internalshell.py:272
+#: spyderlib/widgets/internalshell.py:277
msgid "Remove references:"
msgstr "Eliminar referencias:"
-#: spyderlib/widgets/internalshell.py:273
+#: spyderlib/widgets/internalshell.py:278
msgid "System commands:"
msgstr "Comandos del sistema:"
-#: spyderlib/widgets/internalshell.py:274
+#: spyderlib/widgets/internalshell.py:279
msgid "Python help:"
msgstr "Ayuda de Python:"
-#: spyderlib/widgets/internalshell.py:275
+#: spyderlib/widgets/internalshell.py:280
msgid "GUI-based editor:"
msgstr "Editor gráfico:"
diff --git a/spyderlib/locale/fr/LC_MESSAGES/spyderlib.mo b/spyderlib/locale/fr/LC_MESSAGES/spyderlib.mo
index 703ba58..b80f94e 100644
Binary files a/spyderlib/locale/fr/LC_MESSAGES/spyderlib.mo and b/spyderlib/locale/fr/LC_MESSAGES/spyderlib.mo differ
diff --git a/spyderlib/locale/fr/LC_MESSAGES/spyderlib.po b/spyderlib/locale/fr/LC_MESSAGES/spyderlib.po
index 405bd54..f9e0f51 100644
--- a/spyderlib/locale/fr/LC_MESSAGES/spyderlib.po
+++ b/spyderlib/locale/fr/LC_MESSAGES/spyderlib.po
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: 2.1\n"
-"POT-Creation-Date: 2015-11-24 20:56+COT\n"
+"POT-Creation-Date: 2016-04-26 17:57+COT\n"
"PO-Revision-Date: 2015-03-16 22:59-0500\n"
"Last-Translator: Sylvain Corlay <sylvain.corlay at gmail.com>\n"
"Language-Team: Python\n"
@@ -4344,43 +4344,43 @@ msgstr ""
"<b>Impossible de passer à l'étape suivante</b><br><br>Merci de vérifier "
"votre saisie.<br><br>Message d'erreur :<br>%s"
-#: spyderlib/widgets/internalshell.py:252
+#: spyderlib/widgets/internalshell.py:257
msgid "Help..."
msgstr "Aide..."
-#: spyderlib/widgets/internalshell.py:259
+#: spyderlib/widgets/internalshell.py:264
msgid "Help"
msgstr "Aide"
-#: spyderlib/widgets/internalshell.py:268
+#: spyderlib/widgets/internalshell.py:273
msgid "Shell special commands:"
msgstr "Commandes spéciales de la console :"
-#: spyderlib/widgets/internalshell.py:269
+#: spyderlib/widgets/internalshell.py:274
msgid "Internal editor:"
msgstr "Éditeur interne :"
-#: spyderlib/widgets/internalshell.py:270
+#: spyderlib/widgets/internalshell.py:275
msgid "External editor:"
msgstr "Éditeur externe :"
-#: spyderlib/widgets/internalshell.py:271
+#: spyderlib/widgets/internalshell.py:276
msgid "Run script:"
msgstr "Exécuter un script :"
-#: spyderlib/widgets/internalshell.py:272
+#: spyderlib/widgets/internalshell.py:277
msgid "Remove references:"
msgstr "Supprimer des références :"
-#: spyderlib/widgets/internalshell.py:273
+#: spyderlib/widgets/internalshell.py:278
msgid "System commands:"
msgstr "Commandes systèmes :"
-#: spyderlib/widgets/internalshell.py:274
+#: spyderlib/widgets/internalshell.py:279
msgid "Python help:"
msgstr "Aide Python :"
-#: spyderlib/widgets/internalshell.py:275
+#: spyderlib/widgets/internalshell.py:280
msgid "GUI-based editor:"
msgstr "Éditeur graphique :"
diff --git a/spyderlib/locale/spyderlib.pot b/spyderlib/locale/spyderlib.pot
index 78b490f..e8a4d1f 100755
--- a/spyderlib/locale/spyderlib.pot
+++ b/spyderlib/locale/spyderlib.pot
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
-"POT-Creation-Date: 2015-11-24 20:56+COT\n"
+"POT-Creation-Date: 2016-04-26 17:57+COT\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL at ADDRESS>\n"
"Language-Team: LANGUAGE <LL at li.org>\n"
@@ -3883,43 +3883,43 @@ msgstr ""
msgid "<b>Unable to proceed to next step</b><br><br>Please check your entries.<br><br>Error message:<br>%s"
msgstr ""
-#: spyderlib/widgets/internalshell.py:252
+#: spyderlib/widgets/internalshell.py:257
msgid "Help..."
msgstr ""
-#: spyderlib/widgets/internalshell.py:259
+#: spyderlib/widgets/internalshell.py:264
msgid "Help"
msgstr ""
-#: spyderlib/widgets/internalshell.py:268
+#: spyderlib/widgets/internalshell.py:273
msgid "Shell special commands:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:269
+#: spyderlib/widgets/internalshell.py:274
msgid "Internal editor:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:270
+#: spyderlib/widgets/internalshell.py:275
msgid "External editor:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:271
+#: spyderlib/widgets/internalshell.py:276
msgid "Run script:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:272
+#: spyderlib/widgets/internalshell.py:277
msgid "Remove references:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:273
+#: spyderlib/widgets/internalshell.py:278
msgid "System commands:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:274
+#: spyderlib/widgets/internalshell.py:279
msgid "Python help:"
msgstr ""
-#: spyderlib/widgets/internalshell.py:275
+#: spyderlib/widgets/internalshell.py:280
msgid "GUI-based editor:"
msgstr ""
diff --git a/spyderlib/rope_patch.py b/spyderlib/rope_patch.py
index ec56dfa..4984377 100644
--- a/spyderlib/rope_patch.py
+++ b/spyderlib/rope_patch.py
@@ -29,12 +29,13 @@ Patching rope:
def apply():
"""Monkey patching rope
-
+
See [1], [2], [3], [4] and [5] in module docstring."""
- import rope
- if rope.VERSION not in ('0.10.2', '0.9.4-1', '0.9.4', '0.9.3', '0.9.2'):
+ from spyderlib.utils.programs import is_module_installed
+ if is_module_installed('rope', '<0.9.2'):
+ import rope
raise ImportError("rope %s can't be patched" % rope.VERSION)
-
+
# [1] Patching project.Project for compatibility with py2exe/cx_Freeze
# distributions
from spyderlib.baseconfig import is_py2exe_or_cx_Freeze
diff --git a/spyderlib/widgets/dicteditorutils.py b/spyderlib/widgets/dicteditorutils.py
index 716b28c..10b0c3d 100644
--- a/spyderlib/widgets/dicteditorutils.py
+++ b/spyderlib/widgets/dicteditorutils.py
@@ -175,16 +175,14 @@ def value_to_display(value, truncate=False, trunc_len=80, minmax=False):
if isinstance(value, recarray):
fields = value.names
display = 'Field names: ' + ', '.join(fields)
- elif minmax and isinstance(value, (ndarray, MaskedArray)):
- if value.size == 0:
+ elif isinstance(value, (ndarray, MaskedArray)):
+ if minmax:
+ try:
+ display = 'Min: %r\nMax: %r' % (value.min(), value.max())
+ except (TypeError, ValueError):
+ display = repr(value)
+ else:
display = repr(value)
- try:
- display = 'Min: %r\nMax: %r' % (value.min(), value.max())
- except TypeError:
- pass
- except ValueError:
- # Happens when one of the array cell contains a sequence
- pass
elif isinstance(value, (list, tuple, dict, set)):
display = CollectionsRepr.repr(value)
elif isinstance(value, Image):
@@ -212,7 +210,7 @@ def value_to_display(value, truncate=False, trunc_len=80, minmax=False):
try:
display = to_text_string(value, 'utf8')
except:
- pass
+ display = value
elif is_text_string(value):
display = value
else:
diff --git a/spyderlib/widgets/externalshell/sitecustomize.py b/spyderlib/widgets/externalshell/sitecustomize.py
index 6f49c1d..bfc4996 100644
--- a/spyderlib/widgets/externalshell/sitecustomize.py
+++ b/spyderlib/widgets/externalshell/sitecustomize.py
@@ -85,7 +85,8 @@ except ImportError:
basestring = (str,)
def execfile(filename, namespace):
# Open a source file correctly, whatever its encoding is
- exec(compile(open(filename, 'rb').read(), filename, 'exec'), namespace)
+ with open(filename, 'rb') as f:
+ exec(compile(f.read(), filename, 'exec'), namespace)
#==============================================================================
@@ -397,21 +398,35 @@ if os.environ.get("IPYTHON_KERNEL", "").lower() == "true":
kwargs['exit'] = False
TestProgram.__init__(self, *args, **kwargs)
unittest.main = IPyTesProgram
-
- # Pandas monkey-patches
- try:
- # Make Pandas recognize our IPython consoles as proper qtconsoles
- # Fixes Issue 2015
- def in_qtconsole():
- return True
- import pandas as pd
- pd.core.common.in_qtconsole = in_qtconsole
-
- # Set Pandas output encoding
- pd.options.display.encoding = 'utf-8'
- except (ImportError, AttributeError):
- pass
-
+
+
+#==============================================================================
+# Pandas adjustments
+#==============================================================================
+try:
+ # Make Pandas recognize our IPython consoles as proper qtconsoles
+ # Fixes Issue 2015
+ def in_qtconsole():
+ return True
+ import pandas as pd
+ pd.core.common.in_qtconsole = in_qtconsole
+
+ # Set Pandas output encoding
+ pd.options.display.encoding = 'utf-8'
+
+ # Filter warning that appears only on Windows and Spyder for
+ # DataFrames with np.nan values in Pandas 0.17-
+ # Example:
+ # import pandas as pd, numpy as np
+ # pd.Series([np.nan,np.nan,np.nan],index=[1,2,3])
+ # Fixes Issue 2991
+ import warnings
+ warnings.filterwarnings(action='ignore', category=RuntimeWarning,
+ module='pandas.core.format',
+ message=".*invalid value encountered in.*")
+except (ImportError, AttributeError):
+ pass
+
#==============================================================================
# Pdb adjustments
diff --git a/spyderlib/widgets/internalshell.py b/spyderlib/widgets/internalshell.py
index 2b23a17..ce8c9a7 100644
--- a/spyderlib/widgets/internalshell.py
+++ b/spyderlib/widgets/internalshell.py
@@ -75,6 +75,11 @@ class SysOutput(QObject):
def flush(self):
pass
+ # This is needed to fix Issue 2984
+ @property
+ def closed(self):
+ return False
+
class WidgetProxyData(object):
pass
diff --git a/spyderplugins/locale/es/LC_MESSAGES/p_breakpoints.mo b/spyderplugins/locale/es/LC_MESSAGES/p_breakpoints.mo
index c4c9a53..917ae24 100644
Binary files a/spyderplugins/locale/es/LC_MESSAGES/p_breakpoints.mo and b/spyderplugins/locale/es/LC_MESSAGES/p_breakpoints.mo differ
diff --git a/spyderplugins/locale/es/LC_MESSAGES/p_profiler.mo b/spyderplugins/locale/es/LC_MESSAGES/p_profiler.mo
index 155f930..a4d1806 100644
Binary files a/spyderplugins/locale/es/LC_MESSAGES/p_profiler.mo and b/spyderplugins/locale/es/LC_MESSAGES/p_profiler.mo differ
diff --git a/spyderplugins/locale/es/LC_MESSAGES/p_pylint.mo b/spyderplugins/locale/es/LC_MESSAGES/p_pylint.mo
index 483dfd5..299fa5e 100644
Binary files a/spyderplugins/locale/es/LC_MESSAGES/p_pylint.mo and b/spyderplugins/locale/es/LC_MESSAGES/p_pylint.mo differ
diff --git a/spyderplugins/locale/fr/LC_MESSAGES/p_breakpoints.mo b/spyderplugins/locale/fr/LC_MESSAGES/p_breakpoints.mo
index 484129d..47242d7 100644
Binary files a/spyderplugins/locale/fr/LC_MESSAGES/p_breakpoints.mo and b/spyderplugins/locale/fr/LC_MESSAGES/p_breakpoints.mo differ
diff --git a/spyderplugins/locale/fr/LC_MESSAGES/p_profiler.mo b/spyderplugins/locale/fr/LC_MESSAGES/p_profiler.mo
index 5b2dd66..1b2253a 100644
Binary files a/spyderplugins/locale/fr/LC_MESSAGES/p_profiler.mo and b/spyderplugins/locale/fr/LC_MESSAGES/p_profiler.mo differ
diff --git a/spyderplugins/locale/fr/LC_MESSAGES/p_pylint.mo b/spyderplugins/locale/fr/LC_MESSAGES/p_pylint.mo
index 811b31f..7336da6 100644
Binary files a/spyderplugins/locale/fr/LC_MESSAGES/p_pylint.mo and b/spyderplugins/locale/fr/LC_MESSAGES/p_pylint.mo differ
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/spyder.git
More information about the debian-science-commits
mailing list