[Python-modules-commits] r24357 - in packages/audioread/trunk/debian (10 files)
laarmen-guest at users.alioth.debian.org
laarmen-guest at users.alioth.debian.org
Tue May 14 10:59:36 UTC 2013
Date: Tuesday, May 14, 2013 @ 10:59:34
Author: laarmen-guest
Revision: 24357
* Add a Python 3 package
+ Patch gstdec.py to use the print() function
Added:
packages/audioread/trunk/debian/patches/use_print_function
packages/audioread/trunk/debian/python-audioread.docs
packages/audioread/trunk/debian/python-audioread.install
packages/audioread/trunk/debian/python3-audioread.docs
packages/audioread/trunk/debian/python3-audioread.install
Modified:
packages/audioread/trunk/debian/changelog
packages/audioread/trunk/debian/control
packages/audioread/trunk/debian/patches/series
packages/audioread/trunk/debian/rules
Deleted:
packages/audioread/trunk/debian/docs
Modified: packages/audioread/trunk/debian/changelog
===================================================================
--- packages/audioread/trunk/debian/changelog 2013-05-14 10:39:24 UTC (rev 24356)
+++ packages/audioread/trunk/debian/changelog 2013-05-14 10:59:34 UTC (rev 24357)
@@ -4,6 +4,8 @@
* 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
Modified: packages/audioread/trunk/debian/control
===================================================================
--- packages/audioread/trunk/debian/control 2013-05-14 10:39:24 UTC (rev 24356)
+++ packages/audioread/trunk/debian/control 2013-05-14 10:59:34 UTC (rev 24357)
@@ -5,10 +5,11 @@
Uploaders: Simon Chopin <chopin.simon at gmail.com>
Build-Depends:
debhelper (>= 8.1),
- python-all (>= 2.6.6-3~)
-Standards-Version: 3.9.3
+ python-all (>= 2.6.6-3~),
+ python3-all
+Standards-Version: 3.9.4
X-Python-Version: >= 2.6
-X-Python3-Version: >= 3.0
+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/
@@ -29,3 +30,16 @@
* 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).
Deleted: packages/audioread/trunk/debian/docs
===================================================================
--- packages/audioread/trunk/debian/docs 2013-05-14 10:39:24 UTC (rev 24356)
+++ packages/audioread/trunk/debian/docs 2013-05-14 10:59:34 UTC (rev 24357)
@@ -1 +0,0 @@
-README.rst
Modified: packages/audioread/trunk/debian/patches/series
===================================================================
--- packages/audioread/trunk/debian/patches/series 2013-05-14 10:39:24 UTC (rev 24356)
+++ packages/audioread/trunk/debian/patches/series 2013-05-14 10:59:34 UTC (rev 24357)
@@ -1 +1,2 @@
avconv.patch
+use_print_function
Added: packages/audioread/trunk/debian/patches/use_print_function
===================================================================
--- packages/audioread/trunk/debian/patches/use_print_function (rev 0)
+++ packages/audioread/trunk/debian/patches/use_print_function 2013-05-14 10:59:34 UTC (rev 24357)
@@ -0,0 +1,29 @@
+From: Simon Chopin <chopin.simon at gmail.com>
+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
+
Added: packages/audioread/trunk/debian/python-audioread.docs
===================================================================
--- packages/audioread/trunk/debian/python-audioread.docs (rev 0)
+++ packages/audioread/trunk/debian/python-audioread.docs 2013-05-14 10:59:34 UTC (rev 24357)
@@ -0,0 +1 @@
+README.rst
Added: packages/audioread/trunk/debian/python-audioread.install
===================================================================
--- packages/audioread/trunk/debian/python-audioread.install (rev 0)
+++ packages/audioread/trunk/debian/python-audioread.install 2013-05-14 10:59:34 UTC (rev 24357)
@@ -0,0 +1 @@
+usr/lib/python2.*
Added: packages/audioread/trunk/debian/python3-audioread.docs
===================================================================
--- packages/audioread/trunk/debian/python3-audioread.docs (rev 0)
+++ packages/audioread/trunk/debian/python3-audioread.docs 2013-05-14 10:59:34 UTC (rev 24357)
@@ -0,0 +1 @@
+README.rst
Added: packages/audioread/trunk/debian/python3-audioread.install
===================================================================
--- packages/audioread/trunk/debian/python3-audioread.install (rev 0)
+++ packages/audioread/trunk/debian/python3-audioread.install 2013-05-14 10:59:34 UTC (rev 24357)
@@ -0,0 +1 @@
+usr/lib/python3*
Modified: packages/audioread/trunk/debian/rules
===================================================================
--- packages/audioread/trunk/debian/rules 2013-05-14 10:39:24 UTC (rev 24356)
+++ packages/audioread/trunk/debian/rules 2013-05-14 10:59:34 UTC (rev 24357)
@@ -1,7 +1,18 @@
#!/usr/bin/make -f
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+ dh $@ --with python2,python3
-%:
- dh $@ --with python2
+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;
+
More information about the Python-modules-commits
mailing list