--- pyserial-2.5.orig/setup.py +++ pyserial-2.5/setup.py @@ -16,6 +16,7 @@ suffix = "" else: suffix = "-py3k" + suffix = "" if sys.version < '2.3': --- pyserial-2.5.orig/debian/changelog +++ pyserial-2.5/debian/changelog @@ -0,0 +1,67 @@ +pyserial (2.5-2.1build1) precise; urgency=low + + * Rebuild to drop python2.6 dependencies. + + -- Matthias Klose Sat, 31 Dec 2011 02:08:25 +0000 + +pyserial (2.5-2.1) unstable; urgency=low + + * Non-maintainer upload. + * Rebuild to add Python 2.7 support + + -- Piotr Ożarowski Sun, 08 May 2011 16:46:04 +0200 + +pyserial (2.5-2) unstable; urgency=low + + * Fix conversion to dh_python2 (Andreas Moog). Closes: #617486. + * Fix typo in serialposix.py (Jack Peterson). Closes: #613462. + + -- Matthias Klose Wed, 16 Mar 2011 04:29:39 +0100 + +pyserial (2.5-1) experimental; urgency=low + + * New upstream version. Closes: #520618. + * Build a python3-serial package. + * Don't use string exception in miniterm.py. Closes: #585328. + * Convert to dh_pycentral. Closes: #616985. + + -- Matthias Klose Tue, 25 Jan 2011 07:59:17 +0100 + +pyserial (2.3-1) unstable; urgency=low + + * New upstream version. + * Update watch file. Closes: #450106. + * Mention the upstream name in the package description. Closes: #459590. + + -- Matthias Klose Tue, 24 Jun 2008 19:14:57 +0200 + +pyserial (2.2-3) unstable; urgency=low + + * Remove reference to python-wxgtk2.4. Closes: #391989. + + -- Matthias Klose Sat, 28 Oct 2006 15:25:59 +0200 + +pyserial (2.2-2) unstable; urgency=low + + * User python-central. Closes: #356992. + + -- Matthias Klose Thu, 8 Jun 2006 02:01:11 +0200 + +pyserial (2.2-1) unstable; urgency=low + + * New upstream version. + * Suggest python-wxgtk2.6 | python-wxgtk2.4. + + -- Matthias Klose Wed, 24 Aug 2005 06:45:22 +0000 + +pyserial (2.1-1) unstable; urgency=medium + + * New upstream version. + + -- Matthias Klose Sun, 29 Aug 2004 14:49:57 +0200 + +pyserial (2.0-1) unstable; urgency=low + + * Initial Release (closes: #227725). + + -- Matthias Klose Sat, 24 Apr 2004 00:15:15 +0200 --- pyserial-2.5.orig/debian/rules +++ pyserial-2.5/debian/rules @@ -0,0 +1,58 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +PY_INTERPRETER = /usr/bin/python + +build: build-stamp + +build-stamp: + dh_testdir + python setup.py build + python3 setup.py build + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + rm -rf build + -find . -name '*.py[co]' | xargs rm -f + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + python setup.py install --root=$(CURDIR)/debian/python-serial --install-layout=deb + python3 setup.py install --root=$(CURDIR)/debian/python3-serial --install-layout=deb + dh_python2 + dh_python3 + mv debian/python3-serial/usr/bin/miniterm.py debian/python3-serial/usr/bin/miniterm-py3k + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs CHANGES.txt + dh_installdocs README.txt + dh_installexamples examples/* + dh_installman + dh_compress -X.py -X.wxg + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure --- pyserial-2.5.orig/debian/control +++ pyserial-2.5/debian/control @@ -0,0 +1,30 @@ +Source: pyserial +Section: python +Priority: optional +Maintainer: Matthias Klose +Build-Depends: debhelper (>= 5) +Build-Depends-Indep: python (>= 2.6.6-2~), python3 (>= 3.1.2-10~) +XS-Python-Version: all +Standards-Version: 3.9.1 + +Package: python-serial +Architecture: all +Depends: ${python:Depends}, ${misc:Depends} +Suggests: python-wxgtk2.8 | python-wxgtk2.6 | python-wxgtk +XB-Python-Version: ${python:Versions} +Description: pyserial - module encapsulating access for the serial port + This module capsulates the access for the serial port. It provides + backends for standard Python running on Windows, Linux, BSD (possibly + any POSIX compilant system). The module named "serial" automatically + selects the appropriate backend. + +Package: python3-serial +Architecture: all +Depends: ${python3:Depends}, ${misc:Depends} +Suggests: python3-wxgtk2.8 | python3-wxgtk +XB-Python-Version: ${python3:Versions} +Description: pyserial - module encapsulating access for the serial port + This module capsulates the access for the serial port. It provides + backends for standard Python running on Windows, Linux, BSD (possibly + any POSIX compilant system). The module named "serial" automatically + selects the appropriate backend. --- pyserial-2.5.orig/debian/copyright +++ pyserial-2.5/debian/copyright @@ -0,0 +1,69 @@ +This package was debianized by Matthias Klose on +Sat, 24 Apr 2004 00:15:15 +0200. + +It was downloaded from http://pyserial.sf.net/ + +Upstream Author: Chris Liechti + +Copyright: + +Copyright (c) 2001 Chris Liechti ; +All Rights Reserved. + +This is the Python license. In short, you can use this product in +commercial and non-commercial applications, modify it, redistribute it. +A notification to the author when you use and/or modify it is welcome. + + +TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING THIS SOFTWARE +=================================================================== + +LICENSE AGREEMENT +----------------- + +1. This LICENSE AGREEMENT is between the copyright holder of this +product, and the Individual or Organization ("Licensee") accessing +and otherwise using this product in source or binary form and its +associated documentation. + +2. Subject to the terms and conditions of this License Agreement, +the copyright holder hereby grants Licensee a nonexclusive, +royalty-free, world-wide license to reproduce, analyze, test, +perform and/or display publicly, prepare derivative works, distribute, +and otherwise use this product alone or in any derivative version, +provided, however, that copyright holders License Agreement and +copyright holders notice of copyright are retained in this product +alone or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates this product or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to this product. + +4. The copyright holder is making this product available to Licensee on +an "AS IS" basis. THE COPYRIGHT HOLDER MAKES NO REPRESENTATIONS OR +WARRANTIES, EXPRESS OR IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, +THE COPYRIGHT HOLDER MAKES NO AND DISCLAIMS ANY REPRESENTATION OR +WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR +THAT THE USE OF THIS PRODUCT WILL NOT INFRINGE ANY THIRD PARTY RIGHTS. + +5. THE COPYRIGHT HOLDER SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER +USERS OF THIS PRODUCT FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL +DAMAGES OR LOSS AS A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE +USING THIS PRODUCT, OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE +POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between the +copyright holder and Licensee. This License Agreement does not grant +permission to use trademarks or trade names from the copyright holder +in a trademark sense to endorse or promote products or services of +Licensee, or any third party. + +8. By copying, installing or otherwise using this product, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. --- pyserial-2.5.orig/debian/watch +++ pyserial-2.5/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/pyserial/pyserial-([\d\.]*).zip --- pyserial-2.5.orig/debian/compat +++ pyserial-2.5/debian/compat @@ -0,0 +1 @@ +5 --- pyserial-2.5.orig/examples/miniterm.py +++ pyserial-2.5/examples/miniterm.py @@ -120,7 +120,7 @@ sys.exitfunc = cleanup_console #terminal modes have to be restored on exit... else: - raise "Sorry no implementation for your platform (%s) available." % sys.platform + raise NotImplementedError, "Sorry no implementation for your platform (%s) available." % sys.platform CONVERT_CRLF = 2 --- pyserial-2.5.orig/serial/serialposix.py +++ pyserial-2.5/serial/serialposix.py @@ -215,7 +215,7 @@ # no exception, just continue with a brave attempt to build a device name # even if the device name is not correct for the platform it has chances # to work using a string with the real device name as port parameter. - def device(portum): + def device(portnum): return '/dev/ttyS%d' % portnum def set_special_baudrate(port, baudrate): raise SerialException("sorry don't know how to handle non standard baud rate on this platform")