Hello community,

here is the log from the commit of package python3-jupyter_console for 
openSUSE:Factory checked in at 2015-10-14 16:45:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-jupyter_console (Old)
 and      /work/SRC/openSUSE:Factory/.python3-jupyter_console.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python3-jupyter_console"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python3-jupyter_console/python3-jupyter_console.changes
  2015-10-12 10:01:48.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.python3-jupyter_console.new/python3-jupyter_console.changes
     2015-10-14 16:45:16.000000000 +0200
@@ -1,0 +2,6 @@
+Mon Oct 12 13:46:17 UTC 2015 - toddrme2...@gmail.com
+
+- Update to 4.0.3
+  * fix jupyter console --generate-config
+
+-------------------------------------------------------------------

Old:
----
  jupyter_console-4.0.2.tar.gz

New:
----
  jupyter_console-4.0.3.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python3-jupyter_console.spec ++++++
--- /var/tmp/diff_new_pack.2GwNs8/_old  2015-10-14 16:45:17.000000000 +0200
+++ /var/tmp/diff_new_pack.2GwNs8/_new  2015-10-14 16:45:17.000000000 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           python3-jupyter_console
-Version:        4.0.2
+Version:        4.0.3
 Release:        0
 Summary:        Jupyter terminal console
 License:        BSD-3-Clause
@@ -99,9 +99,7 @@
 fi
 
 %check
-pushd jupyter_console
-PYTHONPATH=%{buildroot}%{python3_sitelib} nosetests
-popd
+nosetests jupyter_console
 
 %files
 %defattr(-,root,root,-)

++++++ jupyter_console-4.0.2.tar.gz -> jupyter_console-4.0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_console-4.0.2/PKG-INFO 
new/jupyter_console-4.0.3/PKG-INFO
--- old/jupyter_console-4.0.2/PKG-INFO  2015-09-01 18:37:06.000000000 +0200
+++ new/jupyter_console-4.0.3/PKG-INFO  2015-10-07 13:37:49.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: jupyter_console
-Version: 4.0.2
+Version: 4.0.3
 Summary: Jupyter terminal console
 Home-page: https://jupyter.org
 Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_console-4.0.2/docs/changelog.rst 
new/jupyter_console-4.0.3/docs/changelog.rst
--- old/jupyter_console-4.0.2/docs/changelog.rst        1970-01-01 
01:00:00.000000000 +0100
+++ new/jupyter_console-4.0.3/docs/changelog.rst        2015-10-07 
13:07:11.000000000 +0200
@@ -0,0 +1,22 @@
+Changes in Jupyter console
+==========================
+
+A summary of changes in Jupyter console releases.
+
+4.0
+---
+
+4.0.3
+~~~~~
+
+-  fix ``jupyter console --generate-config``
+
+4.0.2
+~~~~~
+
+-  setuptools fixes for Windows
+
+4.0.0
+~~~~~
+
+First release as a standalone package.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_console-4.0.2/docs/conf.py 
new/jupyter_console-4.0.3/docs/conf.py
--- old/jupyter_console-4.0.2/docs/conf.py      2015-07-16 00:56:24.000000000 
+0200
+++ new/jupyter_console-4.0.3/docs/conf.py      2015-10-07 13:11:01.000000000 
+0200
@@ -63,10 +63,16 @@
 # |version| and |release|, also used in various other places throughout the
 # built documents.
 #
+
+version_ns = {}
+version_py = os.path.join('..', 'jupyter_console', '_version.py')
+with open(version_py) as f:
+    exec(compile(f.read(), version_py, 'exec'), version_ns)
+
 # The short X.Y version.
-version = '4.0'
+version = '%i.%i' % version_ns['version_info'][:2]
 # The full version, including alpha/beta/rc tags.
-release = '4.0'
+release = version_ns['__version__']
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_console-4.0.2/docs/index.rst 
new/jupyter_console-4.0.3/docs/index.rst
--- old/jupyter_console-4.0.2/docs/index.rst    2015-07-16 00:56:24.000000000 
+0200
+++ new/jupyter_console-4.0.3/docs/index.rst    2015-10-07 13:06:10.000000000 
+0200
@@ -37,4 +37,5 @@
    :maxdepth: 2
 
    config_options
+   changelog
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_console-4.0.2/jupyter_console/_version.py 
new/jupyter_console-4.0.3/jupyter_console/_version.py
--- old/jupyter_console-4.0.2/jupyter_console/_version.py       2015-09-01 
18:30:58.000000000 +0200
+++ new/jupyter_console-4.0.3/jupyter_console/_version.py       2015-10-07 
13:35:59.000000000 +0200
@@ -1,2 +1,2 @@
-version_info = (4, 0, 2)
+version_info = (4, 0, 3)
 __version__ = '.'.join(map(str, version_info))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/jupyter_console-4.0.2/jupyter_console/app.py 
new/jupyter_console-4.0.3/jupyter_console/app.py
--- old/jupyter_console-4.0.2/jupyter_console/app.py    2015-07-16 
00:56:24.000000000 +0200
+++ new/jupyter_console-4.0.3/jupyter_console/app.py    2015-10-07 
13:02:41.000000000 +0200
@@ -16,9 +16,9 @@
 )
 from IPython.utils.warn import error
 
-from jupyter_core.application import JupyterApp
+from jupyter_core.application import JupyterApp, base_aliases, base_flags, 
NoStart
 from jupyter_client.consoleapp import (
-        JupyterConsoleApp, app_aliases, app_flags, aliases, flags
+        JupyterConsoleApp, app_aliases, app_flags,
     )
 
 from jupyter_console.interactiveshell import ZMQTerminalInteractiveShell
@@ -38,7 +38,7 @@
 #-----------------------------------------------------------------------------
 
 # copy flags from mixin:
-flags = dict(flags)
+flags = dict(base_flags)
 # start with mixin frontend flags:
 frontend_flags = dict(app_flags)
 # add TerminalIPApp flags:
@@ -49,7 +49,7 @@
 flags.update(frontend_flags)
 
 # copy flags from mixin
-aliases = dict(aliases)
+aliases = dict(base_aliases)
 # start with mixin frontend flags
 frontend_aliases = dict(app_aliases)
 # load updated frontend flags into full dict
@@ -88,6 +88,7 @@
 
     """
     examples = _examples
+    _config_file_name_default = JupyterApp._config_file_name_default
 
     classes = [ZMQTerminalInteractiveShell] + JupyterConsoleApp.classes
     flags = Dict(flags)
@@ -104,6 +105,8 @@
         self.build_kernel_argv(self.extra_args)
 
     def init_shell(self):
+        if self._dispatching:
+            raise NoStart()
         JupyterConsoleApp.initialize(self)
         # relay sigint to kernel
         signal.signal(signal.SIGINT, self.handle_sigint)
@@ -135,11 +138,21 @@
             # raise the KeyboardInterrupt if we aren't waiting for execution,
             # so that the interact loop advances, and prompt is redrawn, etc.
             raise KeyboardInterrupt
-            
+    
+    def initialize(self, argv=None):
+        try:
+            super(ZMQTerminalIPythonApp, self).initialize(argv)
+        except NoStart:
+            pass
 
     def init_code(self):
         # no-op in the frontend, code gets run in the backend
         pass
+    
+    def start(self):
+        # JupyterApp.start dispatches on NoStart
+        JupyterApp.start(self)
+        super(ZMQTerminalIPythonApp, self).start()
 
 
 main = launch_new_instance = ZMQTerminalIPythonApp.launch_instance
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/jupyter_console-4.0.2/jupyter_console/tests/test_console.py 
new/jupyter_console-4.0.3/jupyter_console/tests/test_console.py
--- old/jupyter_console-4.0.2/jupyter_console/tests/test_console.py     
2015-09-01 18:22:58.000000000 +0200
+++ new/jupyter_console-4.0.3/jupyter_console/tests/test_console.py     
2015-10-07 13:02:41.000000000 +0200
@@ -3,7 +3,11 @@
 # Copyright (c) Jupyter Development Team.
 # Distributed under the terms of the Modified BSD License.
 
+import os
+import shutil
 import sys
+import tempfile
+from subprocess import check_output
 
 from nose import SkipTest
 
@@ -62,3 +66,15 @@
     t = 60
     idx = p.expect([r'In \[\d+\]', pexpect.EOF], timeout=t)
     return p, pexpect, t
+
+
+def test_generate_config():
+    """jupyter console --generate-config works"""
+    td = tempfile.mkdtemp()
+    try:
+        check_output([sys.executable, '-m', 'jupyter_console', 
'--generate-config'],
+            env={'JUPYTER_CONFIG_DIR': td},
+        )
+        assert os.path.isfile(os.path.join(td, 'jupyter_console_config.py'))
+    finally:
+        shutil.rmtree(td)


Reply via email to