[python-ltfatpy] 01/02: Initial debianisation
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Thu Apr 20 13:36:33 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-ltfatpy.
commit 160bc2b94c28273d94d48afcfcb0efab2e74bd3b
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Mon Apr 17 10:09:34 2017 +0100
Initial debianisation
---
debian/changelog | 5 ++
debian/compat | 1 +
debian/control | 76 +++++++++++++++++++
debian/copyright | 130 ++++++++++++++++++++++++++++++++
debian/gbp.conf | 7 ++
debian/patches/Fix-Unicode-errors.patch | 22 ++++++
debian/patches/Install-the-tests.patch | 45 +++++++++++
debian/patches/No-coverage.patch | 27 +++++++
debian/patches/series | 3 +
debian/rules | 20 +++++
debian/source/format | 1 +
debian/source/local-options | 1 +
debian/tests/control | 17 +++++
debian/watch | 3 +
14 files changed, 358 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..8a94836
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+python-ltfatpy (1.0.8-1) UNRELEASED; urgency=low
+
+ * Initial release. (Closes: #860526)
+
+ -- Ghislain Antony Vaillant <ghisvail at gmail.com> Sun, 16 Apr 2017 21:10:28 +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..370874f
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,76 @@
+Source: python-ltfatpy
+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: cmake,
+ cython,
+ cython-dbg,
+ debhelper (>= 10),
+ dh-python,
+ dpkg-dev (>= 1.17.14),
+ libfftw3-dev,
+ liblapack-dev | liblapack.so,
+ python3-all-dbg,
+ python3-all-dev,
+ python3-matplotlib <!nocheck>,
+ python3-matplotlib-dbg <!nocheck>,
+ python3-numpy <!nocheck>,
+ python3-numpy-dbg <!nocheck>,
+ python3-pytest <!nocheck>,
+ python3-scipy <!nocheck>,
+ python3-scipy-dbg <!nocheck>,
+ python3-setuptools,
+ python3-six (>= 1.10) <!nocheck>,
+ python3-tk <!nocheck>,
+ python3-tk-dbg <!nocheck>,
+ xauth <!nocheck>,
+ xvfb <!nocheck>
+Standards-Version: 3.9.8
+Vcs-Browser: https://anonscm.debian.org/git/debian-science/packages/python-ltfatpy.git
+Vcs-Git: https://anonscm.debian.org/git/debian-science/packages/python-ltfatpy.git
+Homepage: https://gitlab.lif.univ-mrs.fr/dev/ltfatpy/
+X-Python3-Version: >= 3.4
+
+Package: python3-ltfatpy
+Architecture: any
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends},
+ python3-scipy
+Description: Large Time-Frequency Toolbox (LTFAT) in Python
+ The ltfatpy package is a partial Python port of the Large Time/Frequency
+ Analysis Toolbox (LTFAT), a MATLAB®/Octave toolbox for working with
+ time-frequency analysis and synthesis.
+ .
+ It is intended both as an educational and a computational tool.
+ .
+ The package provides a large number of linear transforms including Gabor
+ transforms along with routines for constructing windows (filter prototypes)
+ and routines for manipulating coefficients.
+ .
+ This package provides the modules for Python 3.
+
+Package: python3-ltfatpy-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: ${misc:Depends},
+ ${python3:Depends},
+ ${shlibs:Depends},
+ python3-ltfatpy (= ${binary:Version}),
+ python3-matplotlib-dbg,
+ python3-numpy-dbg,
+ python3-scipy-dbg
+Description: debug extensions for ltfatpy
+ The ltfatpy package is a partial Python port of the Large Time/Frequency
+ Analysis Toolbox (LTFAT), a MATLAB®/Octave toolbox for working with
+ time-frequency analysis and synthesis.
+ .
+ It is intended both as an educational and a computational tool.
+ .
+ The package provides a large number of linear transforms including Gabor
+ transforms along with routines for constructing windows (filter prototypes)
+ and routines for manipulating coefficients.
+ .
+ This package provides the debug extensions for Python 3.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f2cf0cd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,130 @@
+Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ltfatpy
+Upstream-Contact: Denis Arrivault <denis.arrivault at lif.univ-mrs.fr>
+ Florent Jaillet <florent.jaillet at lif.univ-mrs.fr>
+Source: https://gitlab.lif.univ-mrs.fr/dev/ltfatpy/
+
+Files: *
+Copyright: 2016 LabEx Archimède <http://labex-archimede.univ-amu.fr/>
+ 2016 Laboratoire d'Informatique Fondamentale <http://www.lif.univ-mrs.fr/>
+ 2016 Institut de Mathématiques de Marseille <http://www.i2m.univ-amu.fr/>
+ 2016 Université d'Aix-Marseille <http://www.univ-amu.fr/>
+License: GPL-3+
+
+Files: debian/*
+Copyright: 2017 Ghislain Antony Vaillant <ghisvail at gmail.com>
+License: GPL-3+
+
+Files: ltfat_C_kernel/*
+Copyright: 2005-2016 Peter L. Soendergaard <peter at sonderport.dk>
+License: GPL-3+
+
+Files: ltfat_C_kernel/thirdparty/cblas.h
+Copyright: 1992-2016 The University of Tennessee and The University of Tennessee Research Foundation
+ 2000-2016 The University of California Berkeley
+ 2006-2016 The University of Colorado Denver
+License: BSD-3-Clause
+
+Files: ltfat_C_kernel/thirdparty/f77-fcn.h
+Copyright: 1996-1997 John W. Eaton
+License: GPL-2+
+
+Files: ltfat_C_kernel/thirdparty/fftw3.h
+Copyright: 2003, 2006 Matteo Frigo
+ 2003, 2006 Massachusetts Institute of Technology
+License: BSD-2-Clause
+
+Files: ltfat_C_kernel/thirdparty/portaudio.h
+Copyright: 1999-2002 Ross Bencina and Phil Burk
+License: Expat
+
+License: BSD-2-Clause
+ BSD 2-Clause License
+ .
+ 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.
+ .
+ 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.
+
+License: BSD-3-Clause
+ BSD 3-Clause License
+ .
+ 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.
+
+License: Expat
+ The MIT License
+ .
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights to
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+ of the Software, and to permit persons to whom the Software is furnished to do
+ so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in all
+ copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
+License: GPL-2+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 dated June, 1991, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of version 2 of the GNU General
+ Public License can be found in '/usr/share/common-licenses/GPL-2'.
+
+License: GPL-3+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 3 dated June, 2007, or (at
+ your option) any later version.
+ .
+ On Debian systems, the complete text of version 3 of the GNU General
+ Public License can be found in '/usr/share/common-licenses/GPL-3'.
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/patches/Fix-Unicode-errors.patch b/debian/patches/Fix-Unicode-errors.patch
new file mode 100644
index 0000000..f66105d
--- /dev/null
+++ b/debian/patches/Fix-Unicode-errors.patch
@@ -0,0 +1,22 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Sun, 16 Apr 2017 22:07:53 +0100
+Subject: Fix Unicode errors
+
+---
+ setup.py | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index ba394b7..478f87d 100755
+--- a/setup.py
++++ b/setup.py
+@@ -212,7 +212,8 @@ class m_build_ext(build_ext):
+ ##########################
+ def read(*paths):
+ """Build a file path from *paths* and return the contents."""
+- with open(os.path.join(*paths), 'r') as f:
++ from io import open
++ with open(os.path.join(*paths), 'r', encoding='utf-8') as f:
+ return f.read()
+
+
diff --git a/debian/patches/Install-the-tests.patch b/debian/patches/Install-the-tests.patch
new file mode 100644
index 0000000..5668f18
--- /dev/null
+++ b/debian/patches/Install-the-tests.patch
@@ -0,0 +1,45 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Mon, 17 Apr 2017 13:28:41 +0100
+Subject: Install the tests
+
+---
+ setup.py | 18 ++++++------------
+ 1 file changed, 6 insertions(+), 12 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index 478f87d..88df0a1 100755
+--- a/setup.py
++++ b/setup.py
+@@ -64,14 +64,9 @@ import distutils.spawn as ds
+ import distutils.dir_util as dd
+
+ # Always prefer setuptools over distutils
+-try:
+- from setuptools import setup, Extension
+- from setuptools.command.clean import clean
+- from setuptools.command.sdist import sdist
+-except ImportError:
+- from distutils.core import setup, Extension
+- from distutils.command.clean import clean
+- from distutils.command.sdist import sdist
++from setuptools import setup, find_packages, Extension
++from distutils.command.clean import clean
++from distutils.command.sdist import sdist
+
+ # Test if Cython is installed
+ USE_CYTHON = True
+@@ -319,11 +314,10 @@ def setup_package():
+ long_description=(read('README.rst') + '\n\n' +
+ read('HISTORY.rst') + '\n\n' +
+ read('AUTHORS.rst')),
+- packages=["ltfatpy", "ltfatpy.comp", "ltfatpy.fourier",
+- "ltfatpy.gabor", "ltfatpy.signals", "ltfatpy.sigproc",
+- "ltfatpy.tools"],
++ packages=find_packages(),
+ package_data={'ltfatpy.signals': ['*.wav'],
+- 'ltfatpy.comp': ['*.pxd']},
++ 'ltfatpy.comp': ['*.pxd'],
++ 'ltfatpy.tests.datasets': ['*.mat']},
+ url="https://gitlab.lif.univ-mrs.fr/dev/ltfatpy",
+ license='GNU GPL V3',
+ author='Denis Arrivault and Florent Jaillet',
diff --git a/debian/patches/No-coverage.patch b/debian/patches/No-coverage.patch
new file mode 100644
index 0000000..2b37f87
--- /dev/null
+++ b/debian/patches/No-coverage.patch
@@ -0,0 +1,27 @@
+From: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Date: Wed, 19 Apr 2017 19:44:08 +0100
+Subject: No coverage
+
+---
+ setup.cfg | 8 +-------
+ 1 file changed, 1 insertion(+), 7 deletions(-)
+
+diff --git a/setup.cfg b/setup.cfg
+index 9af616e..a679ec6 100644
+--- a/setup.cfg
++++ b/setup.cfg
+@@ -11,12 +11,6 @@ cover-html-dir=../htmlcov
+ # Specifies a minimal pytest version required for running tests.
+ minversion = 2.6
+ # Specifies the options
+-addopts = --resultlog=pytests_results.txt -k "not _old" --cov-report term-missing --cov=ltfatpy
++addopts = --resultlog=pytests_results.txt -k "not _old"
+ # Set the directory basename patterns to avoid when recursing for test discovery.
+ norecursedirs = .git bin build cmake-modules ltfat_C_kernel sandboxes .settings
+-
+-[coverage run]
+-source=./ltfatpy
+-omit = ./ltfatpy/tests/*
+-[coverage html]
+-directory=../htmlcov
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..69f56fe
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,3 @@
+No-coverage.patch
+Fix-Unicode-errors.patch
+Install-the-tests.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..bbe26a7
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,20 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE = 1
+
+export DEB_BUILD_MAINT_OPTIONS = hardening=+all
+
+export PYBUILD_NAME = ltfatpy
+
+%:
+ dh $@ --with python3 --buildsystem=pybuild
+
+override_dh_auto_test:
+ifeq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+ xvfb-run -a dh_auto_test
+endif
+
+override_dh_strip:
+ dh_strip --package=python3-$(PYBUILD_NAME) \
+ --dbg-package=python3-$(PYBUILD_NAME)-dbg
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..fe7dc79
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,17 @@
+Test-Command: set -e
+ ; for py in $(py3versions -r 2>/dev/null)
+ ; do cd "$AUTOPKGTEST_TMP"
+ ; echo "Testing with $py:"
+ ; xvfb-run -a $py -m pytest -v --pyargs ltfatpy
+ ; echo "Testing with $py-dbg:"
+ ; xvfb-run -a $py-dbg -m pytest -v --pyargs ltfatpy
+ ; done
+Depends: python3-all,
+ python3-all-dbg,
+ python3-ltfatpy,
+ python3-ltfatpy-dbg,
+ python3-pytest,
+ python3-tk,
+ python3-tk-dbg,
+ xauth,
+ xvfb
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..1c080a3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=4
+opts=filenamemangle=s/.*\.tar\.gz\?ref=v?@ANY_VERSION@/ltfatpy-$1\.tar\.gz/ \
+https://gitlab.lif.univ-mrs.fr/dev/ltfatpy/tags?sort=updated_desc .*archive\.tar\.gz\?ref=v?@ANY_VERSION@
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-ltfatpy.git
More information about the debian-science-commits
mailing list