[Python-modules-commits] [python-qtconsole] 02/02: initial packaging

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Sat Jun 11 15:38:53 UTC 2016


This is an automated email from the git hooks/post-receive script.

picca pushed a commit to branch master
in repository python-qtconsole.

commit dba09fdbe77362b26722e251a314fca702e5d318
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Sat Jun 11 17:33:43 2016 +0200

    initial packaging
---
 debian/.git-dpm                          |  3 ++
 debian/TODO.org                          | 35 +++++++++++++++
 debian/changelog                         |  5 +++
 debian/compat                            |  1 +
 debian/control                           | 77 ++++++++++++++++++++++++++++++++
 debian/copyright                         | 38 ++++++++++++++++
 debian/patches/0001-use-setuptools.patch | 22 +++++++++
 debian/patches/series                    |  1 +
 debian/rules                             | 21 +++++++++
 debian/source/format                     |  1 +
 debian/watch                             |  4 ++
 11 files changed, 208 insertions(+)

diff --git a/debian/.git-dpm b/debian/.git-dpm
new file mode 100644
index 0000000..746da2c
--- /dev/null
+++ b/debian/.git-dpm
@@ -0,0 +1,3 @@
+debianTag="debian/%e%v"
+patchedTag="patches/%e%v"
+upstreamTag="upstream/%e%u"
\ No newline at end of file
diff --git a/debian/TODO.org b/debian/TODO.org
new file mode 100644
index 0000000..a4d15d0
--- /dev/null
+++ b/debian/TODO.org
@@ -0,0 +1,35 @@
+* Revers dependencies
+
+ipython-qtconsole
+Reverse Depends:
+  opensesame
+  vistrails
+  spykeviewer
+  python-spyderlib
+  python-sardana
+  ipython
+
+ipython3-qtconsole
+Reverse Depends:
+  glueviz
+  python3-spyderlib
+  ipython3
+
+* qt support
+
+| package     |    version | qt5 | Qt4 #API2 | Qt4 #API1 |
+|-------------+------------+-----+-----------+-----------|
+| opensesame  | 0.27.4-2.1 | [[https://github.com/smathot/OpenSesame/issues/304][bug]] | wip       | ok        |
+| vistrails   |      2.2-1 | ko  | ko        | ok        |
+| spykeviewer |    0.4.4-1 | ko  | ko        | ok        |
+
+* qtconsole provide jupyter-qtconsole
+  - [ ] for python3 what is the right scheme
+    jupyter-qtconsole3 or jupyter3-qtconsole
+
+    the problem is that jupyter-core provide only jupyter and not jupyter3
+    so for now if I start
+    jupyter qtconsole it start a Python2 kernel
+
+    with jupyter-qtconsole3 -> jupyter qtconsole3 -> Python3
+    with jupyter3-qtconsole -> jupyter ????
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8c10ddd
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-qtconsole (4.2.1-1) unstable; urgency=low
+
+  * Initial release (closes: #826456)
+
+ -- Picca Frédéric-Emmanuel <picca at debian.org>  Sun, 22 May 2016 17:31:38 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..650a275
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,77 @@
+Source: python-qtconsole
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Picca Frédéric-Emmanuel <picca at debian.org>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-ipykernel,
+               python-jupyter-client,
+               python-nose,
+               python-pygments,
+               python-pyqt5,
+               python-pyqt5.qtsvg,
+               python-setuptools,
+               python-traitlets,
+               python3-all,
+               python3-ipykernel,
+               python3-jupyter-client,
+               python3-nose,
+               python3-pygments,
+               python3-pyqt5,
+               python3-pyqt5.qtsvg,
+               python3-setuptools,
+               python3-traitlets
+Standards-Version: 3.9.8
+Homepage: http://jupyter.org
+Vcs-Browser: https://anonscm.debian.org/cgit/python-modules/packages/python-qtconsole.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-qtconsole.git
+
+Package: ipython-qtconsole
+Architecture: all
+Section: oldlibs
+Priority: extra
+Depends: ${misc:Depends}, python-qtconsole
+Description: transitional dummy package for python-qtconsole
+ This is a transitional package to ease upgrades to the
+ python-qtconsole package. It can be safely removed.
+
+Package: python-qtconsole
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Description: enhanced interactive Python shell - Qt console (Python 2)
+ IPython can be used as a replacement for the standard Python shell,
+ or it can be used as a complete working environment for scientific
+ computing (like Matlab or Mathematica) when paired with the standard
+ Python scientific and numerical tools. It supports dynamic object
+ introspections, numbered input/output prompts, a macro system,
+ session logging, session restoring, complete system shell access,
+ verbose and colored traceback reports, auto-parentheses, auto-quoting,
+ and is embeddable in other Python programs.
+ .
+ This package contains the qtconsole library for the Python 2 interpreter.
+
+Package: ipython3-qtconsole
+Architecture: all
+Section: oldlibs
+Priority: extra
+Depends: ${misc:Depends}, python3-qtconsole
+Description: transitional dummy package for python3-qtconsole
+ This is a transitional package to ease upgrades to the
+ python3-qtconsole package. It can be safely removed.
+
+Package: python3-qtconsole
+Architecture: all
+Depends: ${misc:Depends}, ${python3:Depends}
+Description: enhanced interactive Python shell - Qt console (Python 3)
+ IPython can be used as a replacement for the standard Python shell,
+ or it can be used as a complete working environment for scientific
+ computing (like Matlab or Mathematica) when paired with the standard
+ Python scientific and numerical tools. It supports dynamic object
+ introspections, numbered input/output prompts, a macro system,
+ session logging, session restoring, complete system shell access,
+ verbose and colored traceback reports, auto-parentheses, auto-quoting,
+ and is embeddable in other Python programs.
+ .
+ This package contains the qtconsole library for the Python 3 interpreter.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2e77d82
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: qtconsole
+
+Files: *
+Copyright: Copyright (c) 2001-2015, IPython Development Team
+           Copyright (c) 2015-, Jupyter Development Team
+
+Files: debian/*
+Copyright: 2016 Picca Frédéric-Emmanuel <picca at debian.org>
+License: BSD-3-clause
+
+License: BSD-3-clause
+ All rights reserved.
+ .
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ Redistributions in binary form must reproduce the above copyright notice, this
+ list of conditions and the following disclaimer in the documentation and/or
+ other materials provided with the distribution.
+ .
+ Neither the name of the IPython Development Team nor the names of its
+ contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+ .
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/patches/0001-use-setuptools.patch b/debian/patches/0001-use-setuptools.patch
new file mode 100644
index 0000000..b8cd15f
--- /dev/null
+++ b/debian/patches/0001-use-setuptools.patch
@@ -0,0 +1,22 @@
+From: =?utf-8?q?Picca_Fr=C3=A9d=C3=A9ric-Emmanuel?= <picca at debian.org>
+Date: Sun, 5 Jun 2016 18:45:13 +0200
+Subject: use setuptools
+
+---
+ setup.py | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 39b04be..74846e9 100644
+--- a/setup.py
++++ b/setup.py
+@@ -76,8 +76,7 @@ setup_args = dict(
+     ],
+ )
+ 
+-if 'develop' in sys.argv or any(a.startswith('bdist') for a in sys.argv):
+-    import setuptools
++import setuptools
+ 
+ setuptools_args = {}
+ install_requires = setuptools_args['install_requires'] = [
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a9b6558
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-use-setuptools.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2b24331
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,21 @@
+#!/usr/bin/make -f
+
+export PYBUILD_NAME=qtconsole
+export PYBUILD_AFTER_INSTALL_python3=\
+	mv {destdir}/usr/bin/jupyter-qtconsole {destdir}/usr/bin/jupyter3-qtconsole
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_install:
+	dh_install
+	## install the .desktop files
+	# python2
+	dh_install -p python-qtconsole \
+                   examples/jupyter-qtconsole.desktop \
+		   usr/share/applications
+	# python3
+	mkdir -p debian/python3-qtconsole/usr/share/applications/
+	sed -e "s/jupyter/jupyter3/" -e "s/Jupyter/Jupyter3/" \
+	    debian/python-qtconsole/usr/share/applications/jupyter-qtconsole.desktop > \
+	    debian/python3-qtconsole/usr/share/applications/jupyter3-qtconsole.desktop
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..955903d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+# please also check http://pypi.debian.net/qtconsole/watch
+version=3
+opts=uversionmangle=s/(rc|a|b|c)/~$1/ \
+http://pypi.debian.net/qtconsole/qtconsole-(.+)\.(?:zip|tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
\ No newline at end of file

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-qtconsole.git



More information about the Python-modules-commits mailing list