[python-hdf5storage] 02/03: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Tue Feb 16 18:19:19 UTC 2016


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

ghisvail-guest pushed a commit to branch master
in repository python-hdf5storage.

commit 2a9e69fa8fb709ec8c2a0b8c2a54637bc9dd0824
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Tue Feb 16 14:01:15 2016 +0000

    Initial debianization.
---
 debian/changelog                        |  5 +++
 debian/clean                            |  2 +
 debian/compat                           |  1 +
 debian/control                          | 71 +++++++++++++++++++++++++++++++++
 debian/copyright                        | 34 ++++++++++++++++
 debian/gbp.conf                         |  9 +++++
 debian/patches/Use-system-mathjax.patch | 22 ++++++++++
 debian/patches/series                   |  1 +
 debian/python-hdf5storage-doc.doc-base  | 10 +++++
 debian/python-hdf5storage-doc.docs      |  1 +
 debian/python-hdf5storage-doc.links     |  1 +
 debian/rules                            | 18 +++++++++
 debian/source/format                    |  1 +
 debian/tests/control                    |  9 +++++
 debian/tests/python2                    | 12 ++++++
 debian/tests/python3                    | 12 ++++++
 16 files changed, 209 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1324575
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-hdf5storage (0.1.12-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #814908)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Tue, 16 Feb 2016 12:57:23 +0000
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..4dc800a
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+*egg-info/
+build/html
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..15ebbc6
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,71 @@
+Source: python-hdf5storage
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 9),
+               dh-python,
+               python-all,
+               python-h5py,
+               python-numpy,
+               python-numpydoc,
+               python-nose,
+               python-setuptools,
+               python-scipy,
+               python-sphinx,
+               python3-all,
+               python3-h5py,
+               python3-numpy,
+               python3-nose,
+               python3-setuptools,
+               python3-scipy
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-hdf5storage.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-hdf5storage.git
+Homepage: https://github.com/frejanordsiek/hdf5storage
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-hdf5storage
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends},
+         python-h5py,
+         python-numpy
+Suggests: python-hdf5storage-doc
+Description: high-level utilities to read from and write to HDF5 (Python 2)
+ This package provides high level utilities to read/write a variety of Python
+ types to/from HDF5 (Heirarchal Data Format) formatted files. This package also
+ provides support for MATLAB MAT v7.3 formatted files, which are just HDF5 files
+ with a different extension and some extra meta-data.
+ .
+ This package provides hdf5storage for the Python 2 interpreter.
+
+Package: python3-hdf5storage
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         python3-h5py,
+         python3-numpy
+Suggests: python-hdf5storage-doc
+Description: high-level utilities to read from and write to HDF5 (Python 3)
+ This package provides high level utilities to read/write a variety of Python
+ types to/from HDF5 (Heirarchal Data Format) formatted files. This package also
+ provides support for MATLAB MAT v7.3 formatted files, which are just HDF5 files
+ with a different extension and some extra meta-data.
+ .
+ This package provides hdf5storage for the Python 3 interpreter.
+
+Package: python-hdf5storage-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends},
+         ${sphinxdoc:Depends},
+         libjs-mathjax
+Description: documentation for hdf5storage
+ This package provides high level utilities to read/write a variety of Python
+ types to/from HDF5 (Heirarchal Data Format) formatted files. This package also
+ provides support for MATLAB MAT v7.3 formatted files, which are just HDF5 files
+ with a different extension and some extra meta-data.
+ .
+ This package provides the documentation for hdf5storage.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..749f9aa
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: hdf5storage
+Upstream-Contact: Freja Nordsiek <fnordsie at gmail.com>
+Source: https://github.com/frejanordsiek/hdf5storage
+
+Files: *
+Copyright: 2013-2016 Freja Nordsiek <fnordsie at gmail.com>
+License: BSD-2-clause
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: BSD-2-clause
+
+License: BSD-2-clause
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions are met:
+ .
+ 1. Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+ .
+ 2. 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.
+ .
+ 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 HOLDER 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/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..e4b2a8c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,9 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
+
+[pq]
+patch-numbers = False
diff --git a/debian/patches/Use-system-mathjax.patch b/debian/patches/Use-system-mathjax.patch
new file mode 100644
index 0000000..eecca98
--- /dev/null
+++ b/debian/patches/Use-system-mathjax.patch
@@ -0,0 +1,22 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Tue, 16 Feb 2016 16:10:19 +0000
+Subject: Use system mathjax.
+
+---
+ doc/source/conf.py | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/doc/source/conf.py b/doc/source/conf.py
+index 8b86484..b889366 100644
+--- a/doc/source/conf.py
++++ b/doc/source/conf.py
+@@ -38,6 +38,9 @@ extensions = ['sphinx.ext.autodoc',
+ 	      'sphinx.ext.autosummary',
+ 	      'numpydoc']
+ 
++# Override required in order to use Debian's system mathjax
++mathjax_path = 'MathJax.js'
++
+ # Add any paths that contain templates here, relative to this directory.
+ templates_path = ['_templates']
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ee6b69d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+Use-system-mathjax.patch
diff --git a/debian/python-hdf5storage-doc.doc-base b/debian/python-hdf5storage-doc.doc-base
new file mode 100644
index 0000000..e7a6323
--- /dev/null
+++ b/debian/python-hdf5storage-doc.doc-base
@@ -0,0 +1,10 @@
+Document: python-hdf5storage-doc
+Title: hdf5storage documentation
+Author: Freja Nordsiek
+Abstract: This is the reference documentation of the hdf5storage Python
+ package.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/python-hdf5storage-doc/html/index.html
+Files: /usr/share/doc/python-hdf5storage-doc/html/*.html
diff --git a/debian/python-hdf5storage-doc.docs b/debian/python-hdf5storage-doc.docs
new file mode 100644
index 0000000..6d28621
--- /dev/null
+++ b/debian/python-hdf5storage-doc.docs
@@ -0,0 +1 @@
+build/html
diff --git a/debian/python-hdf5storage-doc.links b/debian/python-hdf5storage-doc.links
new file mode 100644
index 0000000..3f98753
--- /dev/null
+++ b/debian/python-hdf5storage-doc.links
@@ -0,0 +1 @@
+usr/share/javascript/mathjax/MathJax.js usr/share/doc/python-hdf5storage-doc/html/_static/MathJax.js
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..412e67f
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=hdf5storage
+#export PYBUILD_DISABLE=test
+export PYBUILD_TEST_ARGS=-I test_matlab_compatibility
+
+%:
+	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
+
+override_dh_auto_build:
+	dh_auto_build
+	PYTHONPATH=. http_proxy='127.0.0.1:9' sphinx-build -N -b html doc/source build/html
+
+override_dh_sphinxdoc:
+	dh_sphinxdoc --exclude=MathJax.js
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/tests/control b/debian/tests/control
new file mode 100644
index 0000000..cee0911
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,9 @@
+Tests: python2
+Depends: python-all,
+         python-hdf5storage,
+         python-scipy
+
+Tests: python3
+Depends: python3-all,
+         python3-hdf5storage,
+         python3-scipy
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..d9cfab7
--- /dev/null
+++ b/debian/tests/python2
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(pyversions -r 2>/dev/null)"
+
+cp -a ./tests "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py -m nose -I test_matlab_compatibility 2>&1
+done
diff --git a/debian/tests/python3 b/debian/tests/python3
new file mode 100755
index 0000000..f35ec5c
--- /dev/null
+++ b/debian/tests/python3
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -efu
+
+pys="$(py3versions -r 2>/dev/null)"
+
+cp -a ./tests "$ADTTMP"
+cd "$ADTTMP"
+
+for py in $pys; do
+	echo "=== $py ==="
+	$py -m nose -I test_matlab_compatibility 2>&1
+done

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



More information about the debian-science-commits mailing list