[Python-modules-commits] [python-sparse] 02/03: Initial debianisation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Mon May 8 22:53:24 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-sparse.
commit ed6ce1c33d2767a1a13ae4073e4e484af9358b60
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Mon May 8 22:51:27 2017 +0100
Initial debianisation
---
debian/changelog | 5 +++++
debian/compat | 1 +
debian/control | 43 +++++++++++++++++++++++++++++++++++++++++++
debian/copyright | 38 ++++++++++++++++++++++++++++++++++++++
debian/gbp.conf | 7 +++++++
debian/rules | 14 ++++++++++++++
debian/source/format | 1 +
debian/source/local-options | 1 +
debian/tests/control | 10 ++++++++++
debian/watch | 3 +++
10 files changed, 123 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..c96c47d
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-sparse (0.1.0-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #862142)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com> Mon, 08 May 2017 23:28:40 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..dfee257
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,43 @@
+Source: python-sparse
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Section: python
+Priority: optional
+Build-Depends: debhelper (>= 10),
+ dh-python,
+ dpkg-dev (>= 1.17.14),
+ python3-all,
+ python3-numpy <!nocheck>,
+ python3-pytest <!nocheck>,
+ python3-scipy <!nocheck>,
+ python3-setuptools
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/python-modules/packages/python-sparse.git
+Vcs-Git: https://anonscm.debian.org/git/python-modules/packages/python-sparse.git
+Homepage: https://github.com/mrocklin/sparse
+X-Python3-Version: >= 3.2
+
+Package: python3-sparse
+Architecture: all
+Depends: ${misc:Depends},
+ ${python3:Depends}
+Description: multidimensional sparse arrays for Python
+ This package implements sparse multidimensional arrays on top of NumPy
+ and scipy.sparse. It generalizes the scipy.sparse.coo_matrix layout but
+ extends beyond just rows and columns to an arbitrary number of
+ dimensions. The original motivation is for machine learning algorithms,
+ but it is intended for somewhat general use.
+ .
+ It supports:
+ .
+ - NumPy ufuncs (where zeros are preserved)
+ - Arithmetic with scalars (where zeros are preserved)
+ - Reductions (sum, max)
+ - Reshape
+ - Transpose
+ - Tensordot
+ - Slicing with integers, lists, and slices (with no step value)
+ - Concatenation and stacking
+ - Addition with other sparse arrays of the same shape
+ .
+ This package provides the modules for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a4d1752
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sparse
+Upstream-Contact: Matthew Rocklin <mrocklin at gmail.com>
+Source: https://pypi.python.org/pypi/sparse
+
+Files: *
+Copyright: 2017 Continuum Analytics, Inc. and contributors
+License: BSD-3-Clause
+
+Files: debian/*
+Copyright: 2017 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:
+ .
+ * 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 copyright holder 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..f53906f
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,7 @@
+[DEFAULT]
+upstream-branch = upstream
+debian-branch = master
+upstream-tag = upstream/%(version)s
+debian-tag = debian/%(version)s
+sign-tags = True
+pristine-tar = True
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..740df9f
--- /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 = sparse
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+export PYBUILD_DISABLE = test
+else
+export PYBUILD_TEST_ARGS = {dir}/sparse/tests
+endif
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
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/source/local-options b/debian/source/local-options
new file mode 100644
index 0000000..b2b7b88
--- /dev/null
+++ b/debian/source/local-options
@@ -0,0 +1 @@
+extend-diff-ignore="^[^/]+\.egg-info/"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..d1bcd13
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,10 @@
+Test-Command: set -e
+ ; cp -r sparse/tests "$AUTOPKGTEST_TMP"
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; $py -m pytest -v
+ ; done
+Depends: python3-all,
+ python3-pytest,
+ python3-sparse
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..7a4cefb
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.+\/v?(\d\S+)\.tar\.gz/sparse-$1\.tar\.gz/ \
+https://github.com/mrocklin/sparse/tags .*/v?(\d\S+)\.tar\.gz
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-sparse.git
More information about the Python-modules-commits
mailing list