orion pushed to ipython (master). "Update to 3.1.0 (..more)"

notifications at fedoraproject.org notifications at fedoraproject.org
Sun Apr 26 01:28:05 UTC 2015


>From f404de9788c506002c540b45a75a8acfe5e10aab Mon Sep 17 00:00:00 2001
From: Orion Poplawski <orion at cora.nwra.com>
Date: Fri, 27 Feb 2015 20:44:32 -0700
Subject: Update to 3.1.0

- Add BR/R on mistune
- Drop BR/R on jsonpointer
- Drop fabric

diff --git a/.gitignore b/.gitignore
index 1ef8d3b..885f0ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,5 @@ ipython-0.10.tar.gz
 /ipython-2.3.0.tar.gz
 /ipython-2.4.0.tar.gz
 /ipython-2.4.1.tar.gz
+/ipython-3.0.0.tar.gz
+/ipython-3.1.0.tar.gz
diff --git a/ipython-2.1.0-fontawesome4.patch b/ipython-2.1.0-fontawesome4.patch
deleted file mode 100644
index 6e785e1..0000000
--- a/ipython-2.1.0-fontawesome4.patch
+++ /dev/null
@@ -1,144 +0,0 @@
-commit 716862fc302c447d756e1c2075c5136e6c9c60b0
-Author: Thomas Spura <thomas.spura at gmail.com>
-Date:   Sun Jul 6 13:11:20 2014 +0200
-
-    Port to fontawesome4
-
-diff --git a/IPython/html/static/notebook/js/maintoolbar.js b/IPython/html/static/notebook/js/maintoolbar.js
-index 01af262..c957bfe 100644
---- a/IPython/html/static/notebook/js/maintoolbar.js
-+++ b/IPython/html/static/notebook/js/maintoolbar.js
-@@ -27,7 +27,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'save_b',
-                     label : 'Save and Checkpoint',
--                    icon : 'icon-save',
-+                    icon : 'fa fa-save',
-                     callback : function () {
-                         IPython.notebook.save_checkpoint();
-                         }
-@@ -38,7 +38,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'insert_below_b',
-                     label : 'Insert Cell Below',
--                    icon : 'icon-plus-sign',
-+                    icon : 'fa fa-plus',
-                     callback : function () {
-                         IPython.notebook.insert_cell_below('code');
-                         IPython.notebook.select_next();
-@@ -51,7 +51,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'cut_b',
-                     label : 'Cut Cell',
--                    icon : 'icon-cut',
-+                    icon : 'fa fa-cut',
-                     callback : function () {
-                         IPython.notebook.cut_cell();
-                         }
-@@ -59,7 +59,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'copy_b',
-                     label : 'Copy Cell',
--                    icon : 'icon-copy',
-+                    icon : 'fa fa-copy',
-                     callback : function () {
-                         IPython.notebook.copy_cell();
-                         }
-@@ -67,7 +67,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'paste_b',
-                     label : 'Paste Cell Below',
--                    icon : 'icon-paste',
-+                    icon : 'fa fa-paste',
-                     callback : function () {
-                         IPython.notebook.paste_cell_below();
-                         }
-@@ -78,7 +78,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'move_up_b',
-                     label : 'Move Cell Up',
--                    icon : 'icon-arrow-up',
-+                    icon : 'fa fa-arrow-up',
-                     callback : function () {
-                         IPython.notebook.move_cell_up();
-                         }
-@@ -86,7 +86,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'move_down_b',
-                     label : 'Move Cell Down',
--                    icon : 'icon-arrow-down',
-+                    icon : 'fa fa-arrow-down',
-                     callback : function () {
-                         IPython.notebook.move_cell_down();
-                         }
-@@ -98,7 +98,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'run_b',
-                     label : 'Run Cell',
--                    icon : 'icon-play',
-+                    icon : 'fa fa-play',
-                     callback : function () {
-                         // emulate default shift-enter behavior
-                         IPython.notebook.execute_cell_and_select_below();
-@@ -107,7 +107,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'interrupt_b',
-                     label : 'Interrupt',
--                    icon : 'icon-stop',
-+                    icon : 'fa fa-stop',
-                     callback : function () {
-                         IPython.notebook.session.interrupt_kernel();
-                         }
-@@ -115,7 +115,7 @@ var IPython = (function (IPython) {
-                 {
-                     id : 'repeat_b',
-                     label : 'Restart Kernel',
--                    icon : 'icon-repeat',
-+                    icon : 'fa fa-repeat',
-                     callback : function () {
-                         IPython.notebook.restart_kernel();
-                         }
-diff --git a/IPython/html/static/notebook/less/notificationarea.less b/IPython/html/static/notebook/less/notificationarea.less
-index 5b3fd52..00073c0 100644
---- a/IPython/html/static/notebook/less/notificationarea.less
-+++ b/IPython/html/static/notebook/less/notificationarea.less
-@@ -28,19 +28,19 @@
- }
- 
- .edit_mode_icon:before {
--     .icon(@pencil);
-+     content: @fa-var-pencil;
- }
- 
- .command_mode_icon:before {
--     .icon(' ');
-+     content: ' ';
- }
- 
- .kernel_idle_icon:before {
--     .icon(@circle-blank);
-+     content: @fa-var-circle-o;
- }
- 
- .kernel_busy_icon:before {
--     .icon(@circle);
-+     content: @fa-var-circle;
- }
- 
- 
-diff --git a/IPython/html/static/tree/less/tree.less b/IPython/html/static/tree/less/tree.less
-index 1827f97..a480d67 100644
---- a/IPython/html/static/tree/less/tree.less
-+++ b/IPython/html/static/tree/less/tree.less
-@@ -141,9 +141,9 @@ input.engine_num_input {
- }
- 
- .folder_icon:before {
--    .icon(@folder-close-alt)
-+    content: @fa-var-folder-o
- }
- 
- .notebook_icon:before {
--    .icon(@book)
-+    content: @fa-var-book
- }
diff --git a/ipython.spec b/ipython.spec
index 4db9a4d..df9a109 100644
--- a/ipython.spec
+++ b/ipython.spec
@@ -16,7 +16,7 @@
 %endif
 
 Name:           ipython
-Version:        2.4.1
+Version:        3.1.0
 Release:        1%{?dist}
 Summary:        An enhanced interactive Python shell
 
@@ -29,9 +29,6 @@ URL:            http://ipython.org/
 Source0:        https://pypi.python.org/packages/source/i/ipython/ipython-%{version}.tar.gz
 # Add _jsdir to default search path
 Patch0:         ipython-2.1.0-_jsdir-search-path.patch
-# Port to fontawesome 4
-# Sent upstream: https://github.com/ipython/ipython/pull/6084
-Patch1:         ipython-2.1.0-fontawesome4.patch
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
@@ -52,7 +49,7 @@ BuildRequires:  python-matplotlib
 BuildRequires:  python-mock
 BuildRequires:  pymongo
 BuildRequires:  PyQt4
-BuildRequires:  python-tornado >= 3.1.0
+BuildRequires:  python-tornado >= 4.0
 BuildRequires:  python-zmq
 BuildRequires:  python-zmq-tests
 # for frontend
@@ -64,7 +61,7 @@ BuildRequires:  python3-nose
 BuildRequires:  python3-matplotlib
 BuildRequires:  python3-pymongo
 BuildRequires:  python3-PyQt4
-BuildRequires:  python3-tornado >= 3.1.0
+BuildRequires:  python3-tornado >= 4.0
 BuildRequires:  python3-zmq
 BuildRequires:  python3-zmq-tests
 # for frontend
@@ -122,14 +119,14 @@ Requires:       python-zmq
 # bundled python packages
 BuildRequires:  python-decorator
 BuildRequires:  python-jsonschema
-BuildRequires:  python-jsonpointer
 BuildRequires:  python-path
 BuildRequires:  pexpect
 BuildRequires:  python-simplegeneric
 Requires:       pexpect
 Requires:       python-decorator
+BuildRequires:  python-mistune >= 0.3.1
+Requires:       python-mistune >= 0.3.1
 Requires:       python-jsonschema
-Requires:       python-jsonpointer
 Requires:       python-path
 Requires:       python-simplegeneric
 
@@ -157,7 +154,9 @@ Summary:        An enhanced interactive Python notebook
 Requires:       python-ipython-console = %{version}-%{release}
 Requires:       python-jinja2
 Requires:       python-matplotlib
-Requires:       python-tornado >= 3.1.0
+BuildRequires:  python-mistune >= 0.5
+Requires:       python-mistune >= 0.5
+Requires:       python-tornado >= 4.0
 Provides:       ipython-notebook = %{version}-%{release}
 BuildRequires:  mathjax
 Requires:       mathjax
@@ -183,7 +182,6 @@ Requires:       js-marked
 
 # BR of helpers for unbundling
 BuildRequires:  nodejs-less
-BuildRequires:  fabric
 
 
 # Temporal bundling allowed in:
@@ -271,13 +269,13 @@ Requires:       python3-zmq
 # bundled python packages
 BuildRequires:  python3-decorator
 BuildRequires:  python3-jsonschema
-BuildRequires:  python3-jsonpointer
 BuildRequires:  python3-path
 BuildRequires:  python3-pexpect
 BuildRequires:  python3-simplegeneric
 Requires:       python3-decorator
-Requires:       python3-jsonpointer
 Requires:       python3-jsonschema
+BuildRequires:  python3-mistune >= 0.3.1
+Requires:       python3-mistune >= 0.3.1
 Requires:       python3-path
 Requires:       python3-pexpect
 Requires:       python3-simplegeneric
@@ -307,7 +305,9 @@ Summary:        An enhanced interactive Python notebook
 Requires:       python3-ipython-console = %{version}-%{release}
 Requires:       python3-jinja2
 Requires:       python3-matplotlib
-Requires:       python3-tornado >= 3.1.0
+BuildRequires:  python3-mistune >= 0.5
+Requires:       python3-mistune >= 0.5
+Requires:       python3-tornado >= 4.0
 BuildRequires:  mathjax
 Requires:       mathjax
 
@@ -393,11 +393,6 @@ This package contains the gui of %{name}, which requires PyQt.
 %patch0 -p1 -b .jsdir
 sed -i "s;_jsdir;%{_jsdir};g" \
     IPython/html/notebookapp.py
-%patch1 -p1 -b .fontawesome4
-
-# Accept less > 1.5.0
-sed -i "s/max_less_version = '1.5.0'/max_less_version = '2.5.0'/g" IPython/html/fabfile.py
-
 
 # delete bundling libs
 pushd IPython/external
@@ -409,8 +404,6 @@ rm decorator/_decorator.py
 # use decorators of numpy
 rm decorators/_decorators.py
 
-rm jsonschema/_jsonschema.py
-rm jsonpointer/_jsonpointer.py
 rm pexpect/_pexpect.py
 
 rm path/_path.py
@@ -438,13 +431,6 @@ pushd IPython/html/static/components \
         rm -r ${folder} \
         ln -s %{nodejs_sitelib}/${folder} \
     done \
-# Work around highlight packaging (ipython requires it in build/ subfolder...) \
-# Unbundle JS stuff WITHIN build subfolder (ipython requires it there...) \
-    for folder in highlight.js; do \
-        rm -r $folder \
-        mkdir -p $folder \
-        ln -s %{_jsdir}/$folder/ $folder/build \
-    done \
  \
     for folder in marked; do \
         rm -r $folder \
@@ -459,10 +445,6 @@ popd
 %do_global_symlinking
 #asdf
 
-pushd IPython/html
-    fab css
-popd
-
 %if 0%{?with_python3}
 rm -rf %{py3dir}
 cp -a . %{py3dir}
@@ -533,7 +515,7 @@ rm -rf %{buildroot}
 export PYTHONSTARTUP=""
 %if 0%{?with_python3}
 pushd %{py3dir}
-    mkdir run_tests
+    mkdir -p run_tests
     pushd run_tests
     PYTHONPATH=%{buildroot}%{python3_sitelib} \
         PATH="%{buildroot}%{_bindir}:$PATH" \
@@ -544,7 +526,7 @@ pushd %{py3dir}
 popd
 %endif
 
-mkdir run_tests
+mkdir -p run_tests
 pushd run_tests
     PYTHONPATH=%{buildroot}%{python_sitelib} \
         PATH="%{buildroot}%{_bindir}:$PATH" \
@@ -631,6 +613,7 @@ popd
 
 
 %files -n python-ipython-gui
+%{python_sitelib}/IPython/kernel/resources/
 %{python_sitelib}/IPython/kernel/zmq/gui
 %{python_sitelib}/IPython/qt/
 
@@ -713,11 +696,18 @@ popd
 
 
 %files -n python3-ipython-gui
+%{python3_sitelib}/IPython/kernel/resources/
 %{python3_sitelib}/IPython/kernel/zmq/gui
 %{python3_sitelib}/IPython/qt/
 %endif # with_python3
 
 %changelog
+* Sat Apr 25 2015 Orion Poplawski <orion at cora.nwra.com> - 3.1.0-1
+- Update to 3.1.0
+- Add BR/R on mistune
+- Drop BR/R on jsonpointer
+- Drop fabric
+
 * Thu Feb 26 2015 Orion Poplawski <orion at cora.nwra.com> - 2.4.1-1
 - update to 2.4.1
 
diff --git a/sources b/sources
index 9a16bc2..085ff12 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-70149981d6515d77ecb3d7507de2d7d9  ipython-2.4.1.tar.gz
+a749d90c16068687b0ec45a27e72ef8f  ipython-3.1.0.tar.gz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ipython.git/commit/?h=master&id=f404de9788c506002c540b45a75a8acfe5e10aab


More information about the scm-commits mailing list