[python-pyqtgraph] 02/02: Add X-Python-Version to d/c Create new -doc and python3 packages

Gianfranco Costamagna locutusofborg-guest at moszumanska.debian.org
Tue Aug 26 12:30:38 UTC 2014


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

locutusofborg-guest pushed a commit to branch master
in repository python-pyqtgraph.

commit f9a25d66ff6c5ad297f64fa211109029d8bb76ed
Author: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
Date:   Mon Aug 18 08:21:32 2014 +0200

    Add X-Python-Version to d/c
    Create new -doc and python3 packages
---
 debian/changelog                     | 10 +++++++++
 debian/control                       | 43 +++++++++++++++++++++++++++++-------
 debian/python-pyqtgraph-doc.doc-base | 10 +++++++++
 debian/python-pyqtgraph-doc.docs     |  1 +
 debian/python-pyqtgraph.install      |  1 +
 debian/python3-pyqtgraph.install     |  1 +
 debian/rules                         | 17 +++++++++++++-
 7 files changed, 74 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4bc426d..1224a00 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
+python-pyqtgraph (0.9.8-3) unstable; urgency=medium
+
+  * Add X-Python-Version: to control file.
+  * Revert back to python-pyside | python-qt4, instead of requesting
+    them both. (Closes: #757645)
+  * Add a new -doc package.
+  * Add a new python3-pyqtgraph python3 compatible package.
+
+ -- Gianfranco Costamagna <costamagnagianfranco at yahoo.it>  Fri, 15 Aug 2014 12:05:48 +0200
+
 python-pyqtgraph (0.9.8-2) unstable; urgency=medium
 
   * Add some requied runtime dependencies
diff --git a/debian/control b/debian/control
index e3e3cf4..ff93208 100644
--- a/debian/control
+++ b/debian/control
@@ -4,23 +4,50 @@ Uploaders: Gianfranco Costamagna <costamagnagianfranco at yahoo.it>
 Section: python
 Priority: optional
 Standards-Version: 3.9.5
-Build-Depends: debhelper (>= 9), python
+Build-Depends: debhelper (>= 9), python, python3, python-sphinx
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
 Homepage: http://luke.campagnola.me/code/pyqtgraph
 Vcs-Git: git://anonscm.debian.org/debian-science/packages/python-pyqtgraph.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/python-pyqtgraph.git
 
 Package: python-pyqtgraph
 Architecture: all
-Depends: ${python:Depends}, ${misc:Depends},
- python-numpy,
- python-opengl,
- python-pyside,
- python-qt4,
- python-qt4-gl,
- python-scipy,
+Depends: ${python:Depends}, ${misc:Depends}, python-pyside | python-qt4, python-scipy, python-numpy
+Recommends: python-opengl, python-qt4-gl
+Suggests: python-pyqtgraph-doc
 Description: Scientific Graphics and GUI Library for Python
  PyQtGraph is a pure-python graphics and GUI library built on PyQt4 and numpy.
  It is intended for use in mathematics / scientific / engineering applications.
  Despite being written entirely in Python, the library is very fast due to its
  heavy leverage of numpy for number crunching and Qt's GraphicsView framework
  for fast display.
+ .
+ This is the Python 2 version of the package.
+
+Package: python3-pyqtgraph
+Architecture: all
+Depends: ${python3:Depends}, ${misc:Depends}, python3-pyside | python3-pyqt4, python3-scipy, python3-numpy
+Recommends: python3-opengl
+Suggests: python-pyqtgraph-doc
+Description: Scientific Graphics and GUI Library for Python
+ PyQtGraph is a pure-python graphics and GUI library built on PyQt4 and numpy.
+ It is intended for use in mathematics / scientific / engineering applications.
+ Despite being written entirely in Python, the library is very fast due to its
+ heavy leverage of numpy for number crunching and Qt's GraphicsView framework
+ for fast display.
+ .
+ This is the Python 3 version of the package.
+
+Package: python-pyqtgraph-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}, ${sphinxdoc:Depends}
+Description: Scientific Graphics and GUI Library for Python (common documentation)
+ PyQtGraph is a pure-python graphics and GUI library built on PyQt4 and numpy.
+ It is intended for use in mathematics / scientific / engineering applications.
+ Despite being written entirely in Python, the library is very fast due to its
+ heavy leverage of numpy for number crunching and Qt's GraphicsView framework
+ for fast display.
+ .
+ This is the common documentation package.
diff --git a/debian/python-pyqtgraph-doc.doc-base b/debian/python-pyqtgraph-doc.doc-base
new file mode 100644
index 0000000..e4690c5
--- /dev/null
+++ b/debian/python-pyqtgraph-doc.doc-base
@@ -0,0 +1,10 @@
+Document: pyqtgraph
+Title: PyQtGraph Developer Manual
+Author: Luke Campagnola
+Abstract: This manual describes the API of
+ the PyQtGraph Python package.
+Section: Science/Data Analysis
+
+Format: HTML
+Index: /usr/share/doc/python-pyqtgraph-doc/html/index.html
+Files: /usr/share/doc/python-pyqtgraph-doc/html/*
diff --git a/debian/python-pyqtgraph-doc.docs b/debian/python-pyqtgraph-doc.docs
new file mode 100644
index 0000000..8137b04
--- /dev/null
+++ b/debian/python-pyqtgraph-doc.docs
@@ -0,0 +1 @@
+doc/build/html
diff --git a/debian/python-pyqtgraph.install b/debian/python-pyqtgraph.install
new file mode 100644
index 0000000..5c1cb27
--- /dev/null
+++ b/debian/python-pyqtgraph.install
@@ -0,0 +1 @@
+/usr/lib/python2.7/dist-packages
diff --git a/debian/python3-pyqtgraph.install b/debian/python3-pyqtgraph.install
new file mode 100644
index 0000000..a30d907
--- /dev/null
+++ b/debian/python3-pyqtgraph.install
@@ -0,0 +1 @@
+/usr/lib/python3/dist-packages
diff --git a/debian/rules b/debian/rules
index 4647c9c..dbc93e8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,4 +1,19 @@
 #!/usr/bin/make -f
 
 %:
-	dh $@ --with python2
+	dh $@ --with python2,python3,sphinxdoc
+
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf doc/build
+
+override_dh_auto_build:
+	python  setup.py build
+	python3 setup.py build
+	dh_auto_build
+	cd doc && $(MAKE) html
+
+override_dh_install:
+	python  setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+	python3 setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
+	dh_install

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



More information about the debian-science-commits mailing list