debian/0000775000000000000000000000000012316537355007202 5ustar debian/pyliblo-utils.manpages0000664000000000000000000000012212206454123013507 0ustar debian/tmp/usr/share/man/man1/send_osc.1 debian/tmp/usr/share/man/man1/dump_osc.1 debian/source/0000775000000000000000000000000012206454123010467 5ustar debian/source/format0000664000000000000000000000001412206454123011675 0ustar 3.0 (quilt) debian/python-liblo-docs.doc-base0000664000000000000000000000032212206454123014131 0ustar Document: python-liblo Title: Pyliblo Manual Author: Abstract: wrapper around liblo Section: Sound Format: HTML Index: /usr/share/doc/python-liblo-docs/API.html Files: /usr/share/doc/python-liblo-docs/*.html debian/copyright0000664000000000000000000000422312206454123011123 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Pyliblo Upstream-Contact: Dominic Sacré Source: http://das.nasophon.de/pyliblo/ Copyright: 2007-2011 Dominic Sacré Files: * Copyright: 2007-2011 Dominic Sacré License: LGPL-2.1+ Files: scripts/dump_osc.py scripts/send_osc.py Copyright: 2007-2011 Dominic Sacré License: GPL-2+ Files: debian/* Copyright: 2010-2011 Alessio Treglia 2009-2013 Jaromír Mikeš License: LGPL-2.1+ License: LGPL-2.1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. Comment: You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. 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, either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: You should have received a copy of the GNU General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2'. debian/python3-liblo.install0000664000000000000000000000003612206454123013261 0ustar usr/lib/python3*/*-packages/* debian/python-liblo-docs.docs0000664000000000000000000000003712206454123013407 0ustar doc/API.html doc/examples.html debian/changelog0000664000000000000000000000616312316537355011062 0ustar pyliblo (0.9.1-4build2) trusty; urgency=medium * No change rebuild to drop python3.3 compiled extension. -- Dimitri John Ledkov Tue, 01 Apr 2014 14:28:13 +0100 pyliblo (0.9.1-4build1) trusty; urgency=medium * Rebuild for python3.4 as a supported python version. -- Matthias Klose Sat, 04 Jan 2014 19:32:19 +0000 pyliblo (0.9.1-4) unstable; urgency=low * Team upload. * debian/rules: Do not run test suite on sparc as liblo fails to work with 64 bit integers there. See #721617 for details. -- Sebastian Ramacher Mon, 14 Oct 2013 20:48:33 +0200 pyliblo (0.9.1-3) unstable; urgency=low [ Alessio Treglia ] * Add autopkgtest support. * Use canonical Vcs URL. * Bump Standards. [ Jaromír Mikeš ] * Tune gitignore file to handle rather dir * Set dh/compat 9 * Don't sign tags. * Introducing python3-liblo package (Closes: #705044) * Tune rules file to build python3 too. * Tune install files * Introducing python-liblo-docs package * Tune installing docs to python-liblo-docs package * Update copyright file * Removed deprecated xb-python-version. * Removed deprecated python-breaks. * Removed python-provides. * Build with cython. * Run python tests during build. thanks to Sebastian Ramacher [ Sebastian Ramacher ] * debian/tests/{control,python3-liblo}: Add DEP-8 test for python3-liblo * debian/{rules,clean}: Clean build, pyc files and src/liblo.c. -- Jaromír Mikeš Fri, 30 Aug 2013 22:09:30 +0200 pyliblo (0.9.1-2) unstable; urgency=low * Upload to unstable. * Relax build-dependency on python-all-dev to make it build in sid. -- Alessio Treglia Wed, 09 Feb 2011 12:43:24 +0100 pyliblo (0.9.1-1) experimental; urgency=low * New upstream release: - Changed send functions to raise an IOError if sending failed (probaby most useful with TCP connections). - Lots of code cleanup and deobfuscation. - Included unit tests in release tarball. * Update debian/copyright. * Switch to dh_python2. * Add python 2.7 support. -- Alessio Treglia Tue, 01 Feb 2011 00:35:54 +0100 pyliblo (0.9.0-1) experimental; urgency=low * Imported Upstream version 0.9.0 * Drop DM-Upload-Allowed: yes, unnecessary. * Bump minimum required version of liblo. -- Alessio Treglia Mon, 25 Oct 2010 18:39:24 +0200 pyliblo (0.8.1-3) unstable; urgency=low * debian/rules: - Don't build&install by hand; this avoids the explicit dependency on python2.5. * Update my email address. * Bump Standards. -- Alessio Treglia Mon, 04 Oct 2010 11:41:05 +0200 pyliblo (0.8.1-2) unstable; urgency=low [ Jaromír Mikeš ] * Improved description (Closes: #583153) [ Alessio Treglia ] * Compile the extensions for all supported python versions. -- Alessio Treglia Sat, 29 May 2010 03:15:11 +0200 pyliblo (0.8.1-1) unstable; urgency=low * Initial release (Closes: #554879) -- Jaromír Mikeš Tue, 20 Apr 2010 17:13:39 +0200 debian/gbp.conf0000664000000000000000000000003612206454123010605 0ustar [DEFAULT] pristine-tar = True debian/control0000664000000000000000000000567312316537355010620 0ustar Source: pyliblo Section: devel Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Multimedia Maintainers Uploaders: Free Ekanayaka , Jaromír Mikeš , Alessio Treglia Build-Depends: debhelper (>= 9), liblo-dev (>= 0.26~repack), python-all-dev, cython, cython3, python3-all-dev Standards-Version: 3.9.4 X-Python-Version: >= 2.5 X-Python3-Version: >= 3.2 XS-Testsuite: autopkgtest Vcs-Git: git://anonscm.debian.org/pkg-multimedia/pyliblo.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/pyliblo.git Homepage: http://das.nasophon.de/pyliblo/ Package: python-liblo Section: python Architecture: any Depends: ${misc:Depends}, ${python:Depends}, ${shlibs:Depends} Suggests: pyliblo-utils, python-liblo-docs Description: Python (Python 2) bindings for liblo, the lightweight OSC library pyliblo, provides Python (Python 2) bindings for liblo, which is an implementation of the Open Sound Control specification and facilitates communication between various music applications. . Open Sound Control (OSC) is a protocol for communication among computers, sound synthesizers, and other multimedia devices that is optimized for modern networking technology. Package: python3-liblo Section: python Architecture: any Depends: ${misc:Depends}, ${python3:Depends}, ${shlibs:Depends} Suggests: pyliblo-utils, python-liblo-docs Description: Python (Python 3) bindings for liblo, the lightweight OSC library pyliblo, provides Python (Python 3) bindings for liblo, which is an implementation of the Open Sound Control specification and facilitates communication between various music applications. . Open Sound Control (OSC) is a protocol for communication among computers, sound synthesizers, and other multimedia devices that is optimized for modern networking technology. Package: pyliblo-utils Section: utils Architecture: all Depends: python-liblo, ${misc:Depends}, ${python:Depends} Suggests: python-liblo-docs Description: Command line utilities for sending and receiving OSC messages This package contains the send_osc and dump_osc utilities, which can be used to send OSC messages from a command line, and to print all incoming messages. . Open Sound Control (OSC) is a protocol for communication among computers, sound synthesizers, and other multimedia devices that is optimized for modern networking technology. Package: python-liblo-docs Architecture: all Section: doc Depends: ${misc:Depends} Breaks: python-liblo (<< 0.9.1-3) Replaces: python-libo (<< 0.9.1-3) Description: Python bindings for liblo, the lightweight OSC library pyliblo, provides Python bindings for liblo, which is an implementation of the Open Sound Control specification and facilitates communication between various music applications. . This is the common documentation package. debian/pyliblo-utils.install0000664000000000000000000000004412206454123013365 0ustar /usr/bin/dump_osc /usr/bin/send_osc debian/rules0000775000000000000000000000176612227036046010264 0ustar #!/usr/bin/make -f PYTHON2=$(shell pyversions -vr) PYTHON3=$(shell py3versions -vr) %: dh $@ --with python2,python3 override_dh_auto_clean: dh_auto_clean rm -rf build build-python%: python$* setup.py build --with-cython override_dh_auto_build: $(PYTHON3:%=build-python%) dh_auto_build install-python%: python$* setup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb override_dh_auto_install: $(PYTHON3:%=install-python%) dh_auto_install ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) DEB_HOST_ARCH=$(shell dpkg-architecture -qDEB_HOST_ARCH) # do not run test suite on sparc since liblo has problems with 64 bit integers # on sparc (see #721617) ifeq (,$(filter sparc,$(DEB_HOST_ARCH))) pythonpath = $$(ls -d $(CURDIR)/build/lib.*-$(1)) test-python%: PYTHONPATH=$(call pythonpath,$*) \ python$* -m unittest discover -s test/ -p '*.py' -v override_dh_auto_test: $(PYTHON2:%=test-python%) $(PYTHON3:%=test-python%) endif endif override_dh_installchangelogs: dh_installchangelogs NEWS debian/watch0000664000000000000000000000012512206454123010216 0ustar version=3 http://das.nasophon.de/download/pyliblo-([\d]+\.[\d]+(?:\.[\d]+|)).tar.gz debian/clean0000664000000000000000000000005612210166363010176 0ustar src/liblo.c test/__pycache__/*.pyc test/*.pyc debian/patches/0000775000000000000000000000000012210175360010614 5ustar debian/patches/01-overflow.patch0000664000000000000000000000223212210162350013710 0ustar Description: Fix python tests. Author: Sebastian Ramacher Forwarded: no diff --git a/src/liblo.pyx b/src/liblo.pyx index 5ead6c4..e5215f4 100644 --- a/src/liblo.pyx +++ b/src/liblo.pyx @@ -25,6 +25,7 @@ from liblo cimport * import inspect as _inspect import weakref as _weakref +from libc.stdint cimport int32_t, int64_t class _weakref_method: """ @@ -777,10 +778,11 @@ cdef class Message: lo_message_add_true(self._message) elif value is False: lo_message_add_false(self._message) - elif isinstance(value, int): - lo_message_add_int32(self._message, int(value)) - elif isinstance(value, long): - lo_message_add_int64(self._message, long(value)) + elif isinstance(value, (int, long)): + try: + lo_message_add_int32(self._message, value) + except OverflowError: + lo_message_add_int64(self._message, value) elif isinstance(value, float): lo_message_add_float(self._message, float(value)) elif isinstance(value, (bytes, unicode)): debian/patches/series0000664000000000000000000000002212210175355012027 0ustar 01-overflow.patch debian/python-liblo.install0000664000000000000000000000003612206454123013176 0ustar usr/lib/python2*/*-packages/* debian/compat0000664000000000000000000000000212206454123010365 0ustar 9 debian/tests/0000775000000000000000000000000012210166037010330 5ustar debian/tests/python3-liblo0000775000000000000000000000030212210166037012754 0ustar #!/bin/sh set -eu WORKDIR=$(mktemp -d) cp -r test "$WORKDIR/" cd "$WORKDIR/" for python in $(py3versions -i); do PYTHONWARNINGS=d $python -m unittest discover -s test/ -p '*.py' -v 2>&1 done debian/tests/control0000664000000000000000000000012712210165065011733 0ustar Tests: python-liblo Depends: python-liblo Tests: python3-liblo Depends: python3-liblo debian/tests/python-liblo0000775000000000000000000000030212207217650012675 0ustar #!/bin/sh set -eu WORKDIR=$(mktemp -d) cp -r test "$WORKDIR/" cd "$WORKDIR/" for python in $(pyversions -i); do PYTHONWARNINGS=d $python -m unittest discover -s test/ -p '*.py' -v 2>&1 done