[python-arrayfire] 249/250: Initial debianization.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:53 UTC 2016


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

ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.

commit c5163a18b15d0ee49e974842fb0ef79792fad305
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Mon Mar 28 23:48:24 2016 +0100

    Initial debianization.
---
 debian/changelog                     |  5 +++
 debian/clean                         |  1 +
 debian/compat                        |  1 +
 debian/control                       | 73 ++++++++++++++++++++++++++++++++++++
 debian/copyright                     | 37 ++++++++++++++++++
 debian/gbp.conf                      |  6 +++
 debian/python-arrayfire-doc.examples |  1 +
 debian/rules                         | 14 +++++++
 debian/source/format                 |  1 +
 debian/tests/control                 | 12 ++++++
 debian/tests/examples                |  9 +++++
 debian/tests/python2                 | 12 ++++++
 debian/tests/python3                 | 12 ++++++
 debian/watch                         |  3 ++
 14 files changed, 187 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7cb7df0
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-arrayfire (3.3.20160328-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #799001)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com>  Mon, 28 Mar 2016 23:39:13 +0100
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..3feb78a
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+*.egg-info/
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..a8f73dd
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,73 @@
+Source: python-arrayfire
+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,
+               libarrayfire-unified3 (>= 3.3.0+dfsg1-1~),
+               python-all,
+               python-setuptools,
+               python3-all,
+               python3-setuptools
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/python-arrayfire.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-arrayfire.git
+Homepage: http://arrayfire.com/
+X-Python-Version: >= 2.6
+X-Python3-Version: >= 3.2
+
+Package: python-arrayfire
+Architecture: all
+Depends: ${misc:Depends},
+         ${python:Depends},
+         libarrayfire-unified3 (>= 3.3.0+dfsg1-1~)
+Suggests: python-arrayfire-doc
+Description: Python wrappers for the ArrayFire library (Python 2)
+ ArrayFire is a high performance software library for parallel computing
+ with an easy-to-use API. Its array based function set makes parallel
+ programming simple.
+ .
+ ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it
+ platform independent and highly portable.
+ .
+ A few lines of code in ArrayFire can replace dozens of lines of parallel
+ computing code, saving you valuable time and lowering development costs.
+ .
+ This package provides wrappers to ArrayFire for the Python 2 interpreter.
+
+Package: python3-arrayfire
+Architecture: all
+Depends: ${misc:Depends},
+         ${python3:Depends},
+         libarrayfire-unified3 (>= 3.3.0+dfsg1-1~)
+Suggests: python-arrayfire-doc
+Description: Python wrappers for the ArrayFire library (Python 3)
+ ArrayFire is a high performance software library for parallel computing
+ with an easy-to-use API. Its array based function set makes parallel
+ programming simple.
+ .
+ ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it
+ platform independent and highly portable.
+ .
+ A few lines of code in ArrayFire can replace dozens of lines of parallel
+ computing code, saving you valuable time and lowering development costs.
+ .
+ This package provides wrappers to ArrayFire for the Python 3 interpreter.
+
+Package: python-arrayfire-doc
+Architecture: all
+Section: doc
+Depends: ${misc:Depends}
+Description: examples for the ArrayFire Python wrappers
+ ArrayFire is a high performance software library for parallel computing
+ with an easy-to-use API. Its array based function set makes parallel
+ programming simple.
+ .
+ ArrayFire's multiple backends (CUDA, OpenCL and native CPU) make it
+ platform independent and highly portable.
+ .
+ A few lines of code in ArrayFire can replace dozens of lines of parallel
+ computing code, saving you valuable time and lowering development costs.
+ .
+ This package provides examples for the ArrayFire Python wrappers.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..4b22078
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: arrayfire-python
+Source: https://github.com/arrayfire/arrayfire-python
+
+Files: *
+Copyright: 2015-2016 ArrayFire
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2016 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: BSD-3-Clause
+
+License: BSD-3-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.
+ .
+ 3. Neither the name of the copyright holders 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 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..bff6c42
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,6 @@
+[DEFAULT]
+upstream-branch = master
+debian-branch = debian/master
+upstream-tag = %(version)s
+debian-tag = debian/%(version)s
+pristine-tar = True
diff --git a/debian/python-arrayfire-doc.examples b/debian/python-arrayfire-doc.examples
new file mode 100644
index 0000000..e39721e
--- /dev/null
+++ b/debian/python-arrayfire-doc.examples
@@ -0,0 +1 @@
+examples/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..519593a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+export PYBUILD_NAME=arrayfire
+
+%:
+	dh $@ --with python2,python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="{interpreter} tests/__main__.py" \
+	dh_auto_test
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..f486052
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,12 @@
+Tests: python2
+Depends: python-all,
+         python-arrayfire
+
+Tests: python3
+Depends: python3-all,
+         python3-arrayfire
+
+Tests: examples
+Depends: python-arrayfire,
+         python-arrayfire-doc,
+         python3-arrayfire
diff --git a/debian/tests/examples b/debian/tests/examples
new file mode 100755
index 0000000..671262b
--- /dev/null
+++ b/debian/tests/examples
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -efu
+
+cd "$ADTTMP"
+EXAMPLE="/usr/share/doc/python-arrayfire-doc/examples/getting_started/intro.py"
+echo "=== python2 ==="
+python "$EXAMPLE" 2>&1
+echo "=== python3 ==="
+python3 "$EXAMPLE" 2>&1
diff --git a/debian/tests/python2 b/debian/tests/python2
new file mode 100755
index 0000000..6275f8a
--- /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 tests/__main__.py 2>&1
+done
diff --git a/debian/tests/python3 b/debian/tests/python3
new file mode 100755
index 0000000..f194587
--- /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 tests/__main__.py 2>&1
+done
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..312628a
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/arrayfire-python-$1\.tar\.gz/ \
+https://github.com/arrayfire/arrayfire-python/tags .*/v?(\d\S*)\.tar\.gz

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



More information about the debian-science-commits mailing list