debian/0000755000000000000000000000000012144512174007167 5ustar debian/python-audioread.examples0000644000000000000000000000001211671675505014210 0ustar decode.py debian/source/0000755000000000000000000000000012144512120010456 5ustar debian/source/format0000644000000000000000000000001411671653762011712 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000237412144512105011041 0ustar audioread (1.0.1-1) unstable; urgency=low [ Simon Chopin ] * New upstream release * Update copyright years * Add X-Python-Version headers * Add a Python 3 package + Patch gstdec.py to use the print() function * Bump Standards-Version to 3.9.4: + Build-depend on debhelper >= 8.1 to get build-arch and build-indep targets [ Jakub Wilk ] * Use canonical URIs for Vcs-* fields. -- Simon Chopin Tue, 14 May 2013 21:45:09 +0200 audioread (0.6-1) unstable; urgency=low * New upstream release -- Simon Chopin Fri, 01 Jun 2012 14:06:51 +0200 audioread (0.5-1) unstable; urgency=low * New upstream release * Bump Standards-Version to 3.9.3 * Use the Copyrigh Format 1.0 URL in the d/copyright Format: field -- Simon Chopin Sun, 08 Apr 2012 23:25:12 +0200 audioread (0.3-1) unstable; urgency=low * New upstream release * Patch: avconv.patch make audioread use the avconv executable instead of the deprecated ffmpeg. -- Simon Chopin Fri, 03 Feb 2012 21:17:48 +0200 audioread (0.2-1) unstable; urgency=low * Initial release (Closes: #651935) -- Simon Chopin Sat, 24 Dec 2011 17:42:20 +0200 debian/python-audioread.docs0000644000000000000000000000001312144414426013310 0ustar README.rst debian/control0000644000000000000000000000263212144414426010576 0ustar Source: audioread Section: python Priority: optional Maintainer: Debian Python Modules Team Uploaders: Simon Chopin Build-Depends: debhelper (>= 8.1), python-all (>= 2.6.6-3~), python3-all Standards-Version: 3.9.4 X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Homepage: https://github.com/sampsyo/audioread Vcs-Svn: svn://anonscm.debian.org/python-modules/packages/audioread/trunk/ Vcs-Browser: http://anonscm.debian.org/viewvc/python-modules/packages/audioread/trunk/ Package: python-audioread Architecture: all Depends: ${misc:Depends}, ${python:Depends} Recommends: python-gst0.10 | libav-tools, python-pymad Description: Backend-agnostic audio decoding Python package Decode audio files using whichever backend is available. The library currently supports: . * GStreamer via gst-python. * MAD via the pymad bindings. * FFmpeg via the avconv command-line interface. * The standard library wave and aifc modules (for WAV and AIFF files). Package: python3-audioread Architecture: all Depends: ${misc:Depends}, ${python3:Depends}, libav-tools Description: Backend-agnostic audio decoding Python 3 package Decode audio files using whichever backend is available. The library for Python 3 currently supports: . * FFmpeg via the avconv command-line interface. * The standard library wave and aifc modules (for WAV and AIFF files). debian/copyright0000644000000000000000000000253712126000205011114 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: audioread Source: https://github.com/sampsyo/autoread Files: * Copyright: 2011-2013 Adrian Sampson License: Expat Files: debian/* Copyright: 2011-2013 Simon Chopin License: Expat License: Expat 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. debian/rules0000755000000000000000000000052212144415657010256 0ustar #!/usr/bin/make -f %: dh $@ --with python2,python3 override_dh_auto_install: dh_auto_install python3 setup.py install --skip-build --no-compile \ --root debian/tmp \ --install-layout=deb override_dh_auto_build: dh_auto_build python3 setup.py build; override_dh_auto_clean: dh_auto_clean python3 setup.py clean -a debian/watch0000644000000000000000000000012512144414547010223 0ustar version=3 https://pypi.python.org/packages/source/a/audioread/audioread-(.+).tar.gz debian/patches/0000755000000000000000000000000012144512120010605 5ustar debian/patches/series0000644000000000000000000000004012144414426012026 0ustar avconv.patch use_print_function debian/patches/use_print_function0000644000000000000000000000163112144414426014460 0ustar From: Simon Chopin Date: Tue, 14 May 2013 12:46:50 +0200 Subject: [PATCH] Use the print() function instead of the print keyword Forwarded: https://github.com/sampsyo/audioread/pull/7 --- audioread/gstdec.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/audioread/gstdec.py b/audioread/gstdec.py index 78285db..fa8078f 100644 --- a/audioread/gstdec.py +++ b/audioread/gstdec.py @@ -366,8 +366,8 @@ if __name__ == '__main__': for path in sys.argv[1:]: path = os.path.abspath(os.path.expanduser(path)) with GstAudioFile(path) as f: - print f.channels - print f.samplerate - print f.duration + print(f.channels) + print(f.samplerate) + print(f.duration) for s in f: - print len(s), ord(s[0]) + print(len(s), ord(s[0])) -- 1.7.10.4 debian/patches/avconv.patch0000644000000000000000000000121611705576220013137 0ustar Description: Use the avconv executable instead of ffmpeg In Debian, ffmpeg has been deprecated in favor of the avconv executable since the switch to libav upstream. Forwarded: not-needed Author: Simon Chopin Last-Update: 2012-01-18 --- a/audioread/ffdec.py +++ b/audioread/ffdec.py @@ -35,7 +35,7 @@ def __init__(self, filename): try: self.proc = subprocess.Popen( - ['ffmpeg', '-i', filename, '-f', 's16le', '-'], + ['avconv', '-i', filename, '-f', 's16le', '-'], stdout=subprocess.PIPE, stderr=subprocess.PIPE ) except OSError: debian/python3-audioread.install0000644000000000000000000000002112144414426014110 0ustar usr/lib/python3* debian/compat0000644000000000000000000000000211671653762010402 0ustar 8 debian/python3-audioread.docs0000644000000000000000000000001312144414426013373 0ustar README.rst debian/python-audioread.install0000644000000000000000000000002212144414426014026 0ustar usr/lib/python2.*