[spyder] 04/09: add the python3 version of spyder

Frédéric-Emmanuel Picca picca at moszumanska.debian.org
Thu Dec 26 21:16:02 UTC 2013


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

picca pushed a commit to branch experimental
in repository spyder.

commit e1b64d313923637918933eaaf5f02c367dbca9ef
Author: Picca Frédéric-Emmanuel <picca at debian.org>
Date:   Thu Dec 26 19:27:32 2013 +0100

    add the python3 version of spyder
---
 debian/changelog                     |  7 +++++
 debian/control                       | 59 +++++++++++++++++++++++++++++++++---
 debian/python-spyderlib.install      |  2 +-
 debian/python3-spyderlib.bug-control |  1 +
 debian/python3-spyderlib.install     |  1 +
 debian/rules                         | 32 +++++++++++++++----
 debian/spyder3.1                     |  1 +
 debian/spyder3.bug-control           |  1 +
 debian/spyder3.install               |  1 +
 debian/spyder3.manpages              |  1 +
 debian/spyder3.menu                  |  2 ++
 11 files changed, 97 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index eedbd91..3f05298 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+spyder (2.3.0~beta1+dfsg-1) experimental; urgency=low
+
+  * Imported Upstream version 2.3.0~beta1+dfsg
+  * Add the python3 version of spyder
+
+ -- Picca Frédéric-Emmanuel <picca at debian.org>  Thu, 24 Oct 2013 09:05:26 +0200
+
 spyder (2.2.5+dfsg-1) unstable; urgency=low
 
   * fix the copyright file with more upstream information
diff --git a/debian/control b/debian/control
index 7e0c5e8..2b215ee 100644
--- a/debian/control
+++ b/debian/control
@@ -6,14 +6,16 @@ Uploaders: Ludovic Aubry <laubrycomm at free.fr>,
 Section: science
 Priority: extra
 Build-Depends: debhelper (>= 8),
-               python-all
+               python-all,
+               python3-all
 Build-Depends-Indep: python-sphinx,
                      xsltproc
 Standards-Version: 3.9.4
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/spyder.git
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/spyder.git
 Homepage: http://code.google.com/p/spyderlib/
-X-Python-Version: >= 2.6
+X-Python-Version: >= 2.3
+X-Python3-Version: >= 3.3
 
 Package: spyder
 Architecture: all
@@ -21,10 +23,12 @@ Section: devel
 Depends: ${misc:Depends},
          ${python:Depends},
          python-spyderlib (= ${binary:Version})
-Description: python IDE for scientists
+Description: python IDE for scientists (Python 2)
  Spyder (previously known as Pydee) is a free open-source Python
  development environment providing MATLAB-like features in a simple
  and light-weighted software
+ .
+ This is the Python 2 version of the package.
 
 Package: python-spyderlib
 Architecture: all
@@ -51,7 +55,7 @@ Breaks: ${python:Breaks},
         spyder (<< 2.0.12-1)
 Provides: ${python:Provides}
 Replaces: spyder (<< 2.0.12-1)
-Description: python IDE for scientists
+Description: python IDE for scientists (Python 2)
  Originally written to design Spyder (the Scientific PYthon
  Development EnviRonment), the spyderlib Python library provides
  ready-to-use pure-Python widgets: source code editor with syntax
@@ -59,4 +63,51 @@ Description: python IDE for scientists
  editor, dictionary editor, Python console, etc. It's based on the Qt
  Python binding module PyQt4 (and is compatible with PySide since
  v2.2).
+ .
+ This is the Python 2 version of the package.
 
+Package: spyder3
+Architecture: all
+Section: devel
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python3-spyderlib (= ${binary:Version})
+Description: python IDE for scientists (Python 3)
+ Spyder (previously known as Pydee) is a free open-source Python
+ development environment providing MATLAB-like features in a simple
+ and light-weighted software
+ .
+ This is the Python 3 version of the package.
+
+Package: python3-spyderlib
+Architecture: all
+Section: python
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         ${sphinxdoc:Depends},
+         libjs-jquery,
+         libjs-mathjax,
+         python3-pyqt4
+Recommends: ipython-qtconsole,
+            python3-pep8,
+            pyflakes (>= 0.5.0),
+            pylint,
+            python3-matplotlib,
+            python3-numpy,
+            python3-psutil (>= 0.3.0),
+            python3-rope,
+            python3-scipy,
+            python3-sphinx
+Suggests: tortoisehg,
+          gitk
+Provides: ${python:Provides}
+Description: python IDE for scientists (Python 3)
+ Originally written to design Spyder (the Scientific PYthon
+ Development EnviRonment), the spyderlib Python library provides
+ ready-to-use pure-Python widgets: source code editor with syntax
+ highlighting and code introspection/analysis features, NumPy array
+ editor, dictionary editor, Python console, etc. It's based on the Qt
+ Python binding module PyQt4 (and is compatible with PySide since
+ v2.2).
+ .
+ This is the Python 3 version of the package.
\ No newline at end of file
diff --git a/debian/python-spyderlib.install b/debian/python-spyderlib.install
index 0d5487b..9e364b5 100644
--- a/debian/python-spyderlib.install
+++ b/debian/python-spyderlib.install
@@ -1 +1 @@
-usr/lib
\ No newline at end of file
+usr/lib/python2*
\ No newline at end of file
diff --git a/debian/python3-spyderlib.bug-control b/debian/python3-spyderlib.bug-control
new file mode 100644
index 0000000..b19d691
--- /dev/null
+++ b/debian/python3-spyderlib.bug-control
@@ -0,0 +1 @@
+Report-with: python3-qt4
diff --git a/debian/python3-spyderlib.install b/debian/python3-spyderlib.install
new file mode 100644
index 0000000..389365a
--- /dev/null
+++ b/debian/python3-spyderlib.install
@@ -0,0 +1 @@
+usr/lib/python3
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 86e95a9..9bfa471 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,10 +4,15 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+PYTHON2=$(shell pyversions -vr)
+PYTHON3=$(shell py3versions -vr)
 DB2MAN = /usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
 XP     = xsltproc -''-nonet -''-param man.charmap.use.subset "0"
 
-# for backport on stable without bpo
+# Prevent setuptools/distribute from accessing the internet.
+export http_proxy = http://127.0.0.1:9
+
+# for backport on old-stable without bpo
 WITH_SPHINXDOC = $(shell if [ -x /usr/bin/dh_sphinxdoc ]; then echo "--with sphinxdoc"; fi)
 
 debian/spyder.1: debian/manpage.xml
@@ -16,9 +21,24 @@ debian/spyder.1: debian/manpage.xml
 installman: spyder.1
 	dh installman
 
-override_dh_clean:
-	rm -rf build/sphinx
-	dh_clean
-
 %:
-	dh  $@ --with python2 $(WITH_SPHINXDOC)
+	dh  $@ --with python2,python3 $(WITH_SPHINXDOC)
+
+build-python%:
+	python$* setup.py build
+
+override_dh_auto_build: $(PYTHON3:%=build-python%)
+	dh_auto_build
+
+install-python%:
+	python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+	# install spyder3
+	mv $(CURDIR)/debian/tmp/usr/bin/spyder $(CURDIR)/debian/tmp/usr/bin/spyder3
+
+override_dh_auto_install: $(PYTHON3:%=install-python%)
+	dh_auto_install
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf build
+	rm -rf *.egg-info
diff --git a/debian/spyder3.1 b/debian/spyder3.1
new file mode 120000
index 0000000..d266d3b
--- /dev/null
+++ b/debian/spyder3.1
@@ -0,0 +1 @@
+spyder.1
\ No newline at end of file
diff --git a/debian/spyder3.bug-control b/debian/spyder3.bug-control
new file mode 100644
index 0000000..b88150c
--- /dev/null
+++ b/debian/spyder3.bug-control
@@ -0,0 +1 @@
+Report-with: python3-spyderlib python3-qt4
diff --git a/debian/spyder3.install b/debian/spyder3.install
new file mode 100644
index 0000000..5dbc81a
--- /dev/null
+++ b/debian/spyder3.install
@@ -0,0 +1 @@
+usr/bin/spyder3
\ No newline at end of file
diff --git a/debian/spyder3.manpages b/debian/spyder3.manpages
new file mode 100644
index 0000000..4331cf6
--- /dev/null
+++ b/debian/spyder3.manpages
@@ -0,0 +1 @@
+debian/spyder3.1
diff --git a/debian/spyder3.menu b/debian/spyder3.menu
new file mode 100644
index 0000000..584092c
--- /dev/null
+++ b/debian/spyder3.menu
@@ -0,0 +1,2 @@
+?package(spyder3):needs="X11" section="Applications/Programming"\
+  title="spyder3" command="/usr/bin/spyder3"

-- 
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