Hello community, here is the log from the commit of package python3-pyserial for openSUSE:Factory checked in at 2016-01-13 22:43:06 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python3-pyserial (Old) and /work/SRC/openSUSE:Factory/.python3-pyserial.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-pyserial" Changes: -------- --- /work/SRC/openSUSE:Factory/python3-pyserial/python3-pyserial.changes 2016-01-04 09:21:56.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python3-pyserial.new/python3-pyserial.changes 2016-01-13 22:43:07.000000000 +0100 @@ -1,0 +2,10 @@ +Tue Jan 12 22:23:52 UTC 2016 - a...@gmx.de + +- update to version 3.0.1: + * special case for FDTIBUS in list_ports on win32 + * "Serial" keyword arguments, more on backward compatibility, fix + #55 + * list_ports: return name if product is None, fix for #54 + * port_publisher: restore some sorting of ports + +------------------------------------------------------------------- Old: ---- pyserial-3.0.tar.gz New: ---- pyserial-3.0.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python3-pyserial.spec ++++++ --- /var/tmp/diff_new_pack.J1s5uU/_old 2016-01-13 22:43:08.000000000 +0100 +++ /var/tmp/diff_new_pack.J1s5uU/_new 2016-01-13 22:43:08.000000000 +0100 @@ -1,7 +1,7 @@ # # spec file for package python3-pyserial # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python3-pyserial -Version: 3.0 +Version: 3.0.1 Release: 0 Url: https://github.com/pyserial/pyserial Summary: Python Serial Port Extension ++++++ pyserial-3.0.tar.gz -> pyserial-3.0.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/CHANGES.rst new/pyserial-3.0.1/CHANGES.rst --- old/pyserial-3.0/CHANGES.rst 2015-12-28 23:25:05.000000000 +0100 +++ new/pyserial-3.0.1/CHANGES.rst 2016-01-11 23:48:24.000000000 +0100 @@ -579,3 +579,15 @@ - [#49] change exception type in case SetCommState fails - [#50] fixed issue with 0 timeout on windows 10 + +Version 3.0.1 2016-01-11 +-------------------------- + +- special case for FDTIBUS in list_ports on win32 + +Bugfixes: + +- ``Serial`` keyword arguments, more on backward compatibility, fix #55 +- list_ports: return name if product is None, fix for #54 +- port_publisher: restore some sorting of ports + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/PKG-INFO new/pyserial-3.0.1/PKG-INFO --- old/pyserial-3.0/PKG-INFO 2015-12-29 20:57:03.000000000 +0100 +++ new/pyserial-3.0.1/PKG-INFO 2016-01-11 23:54:58.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: pyserial -Version: 3.0 +Version: 3.0.1 Summary: Python Serial Port Extension Home-page: https://github.com/pyserial/pyserial Author: Chris Liechti diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/documentation/conf.py new/pyserial-3.0.1/documentation/conf.py --- old/pyserial-3.0/documentation/conf.py 2015-10-20 22:49:41.000000000 +0200 +++ new/pyserial-3.0.1/documentation/conf.py 2016-01-11 22:52:56.000000000 +0100 @@ -47,7 +47,7 @@ # The short X.Y version. version = '3.0' # The full version, including alpha/beta/rc tags. -release = '3.0b1' +release = '3.0.1' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/examples/port_publisher.py new/pyserial-3.0.1/examples/port_publisher.py --- old/pyserial-3.0/examples/port_publisher.py 2015-09-22 22:27:29.000000000 +0200 +++ new/pyserial-3.0.1/examples/port_publisher.py 2016-01-01 22:55:03.000000000 +0100 @@ -523,8 +523,8 @@ log.info("unpublish: %s" % (published[device])) unpublish(published[device]) # Handle devices that are connected but not yet published - for device in set(connected).difference(published): - # Find the first available port, starting from 7000 + for device in sorted(set(connected).difference(published)): + # Find the first available port, starting from specified number port = args.base_port ports_in_use = [f.network_port for f in published.values()] while port in ports_in_use: @@ -534,8 +534,7 @@ "%s on %s" % (device, hostname), port, on_close=unpublish, - log=log - ) + log=log) log.warning("publish: %s" % (published[device])) published[device].open() @@ -549,8 +548,7 @@ read_map.keys(), write_map.keys(), error_map.keys(), - 5 - ) + 5) # select_end = time.time() # print "select used %.3f s" % (select_end - select_start) for reader in readers: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/pyserial.egg-info/PKG-INFO new/pyserial-3.0.1/pyserial.egg-info/PKG-INFO --- old/pyserial-3.0/pyserial.egg-info/PKG-INFO 1970-01-01 01:00:00.000000000 +0100 +++ new/pyserial-3.0.1/pyserial.egg-info/PKG-INFO 2016-01-11 23:54:58.000000000 +0100 @@ -0,0 +1,30 @@ +Metadata-Version: 1.1 +Name: pyserial +Version: 3.0.1 +Summary: Python Serial Port Extension +Home-page: https://github.com/pyserial/pyserial +Author: Chris Liechti +Author-email: cliec...@gmx.net +License: Python +Description: Python Serial Port Extension for Win32, OSX, Linux, BSD, Jython, IronPython +Platform: any +Classifier: Development Status :: 5 - Production/Stable +Classifier: Intended Audience :: Developers +Classifier: Intended Audience :: End Users/Desktop +Classifier: License :: OSI Approved :: BSD License +Classifier: Natural Language :: English +Classifier: Operating System :: POSIX +Classifier: Operating System :: Microsoft :: Windows +Classifier: Operating System :: MacOS :: MacOS X +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.2 +Classifier: Programming Language :: Python :: 3.3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Topic :: Communications +Classifier: Topic :: Software Development :: Libraries +Classifier: Topic :: Software Development :: Libraries :: Python Modules +Classifier: Topic :: Terminals :: Serial diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/pyserial.egg-info/SOURCES.txt new/pyserial-3.0.1/pyserial.egg-info/SOURCES.txt --- old/pyserial-3.0/pyserial.egg-info/SOURCES.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/pyserial-3.0.1/pyserial.egg-info/SOURCES.txt 2016-01-11 23:54:58.000000000 +0100 @@ -0,0 +1,71 @@ +CHANGES.rst +LICENSE.txt +MANIFEST.in +README.rst +setup.py +documentation/Makefile +documentation/appendix.rst +documentation/conf.py +documentation/examples.rst +documentation/index.rst +documentation/pyserial.png +documentation/pyserial.rst +documentation/pyserial_api.rst +documentation/shortintro.rst +documentation/tools.rst +documentation/url_handlers.rst +examples/at_protocol.py +examples/port_publisher.py +examples/port_publisher.sh +examples/rfc2217_server.py +examples/setup-miniterm-py2exe.py +examples/setup-rfc2217_server-py2exe.py +examples/setup-wxTerminal-py2exe.py +examples/tcp_serial_redirect.py +examples/wxSerialConfigDialog.py +examples/wxSerialConfigDialog.wxg +examples/wxTerminal.py +examples/wxTerminal.wxg +pyserial.egg-info/PKG-INFO +pyserial.egg-info/SOURCES.txt +pyserial.egg-info/dependency_links.txt +pyserial.egg-info/top_level.txt +serial/__init__.py +serial/aio.py +serial/rfc2217.py +serial/rs485.py +serial/serialcli.py +serial/serialjava.py +serial/serialposix.py +serial/serialutil.py +serial/serialwin32.py +serial/win32.py +serial/threaded/__init__.py +serial/tools/__init__.py +serial/tools/hexlify_codec.py +serial/tools/list_ports.py +serial/tools/list_ports_common.py +serial/tools/list_ports_linux.py +serial/tools/list_ports_osx.py +serial/tools/list_ports_posix.py +serial/tools/list_ports_windows.py +serial/tools/miniterm.py +serial/urlhandler/__init__.py +serial/urlhandler/protocol_alt.py +serial/urlhandler/protocol_hwgrep.py +serial/urlhandler/protocol_loop.py +serial/urlhandler/protocol_rfc2217.py +serial/urlhandler/protocol_socket.py +serial/urlhandler/protocol_spy.py +test/run_all_tests.py +test/test.py +test/test_advanced.py +test/test_high_load.py +test/test_iolib.py +test/test_readline.py +test/test_rfc2217.py +test/test_rs485.py +test/test_settings_dict.py +test/test_url.py +test/handlers/__init__.py +test/handlers/protocol_test.py \ No newline at end of file diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/pyserial.egg-info/dependency_links.txt new/pyserial-3.0.1/pyserial.egg-info/dependency_links.txt --- old/pyserial-3.0/pyserial.egg-info/dependency_links.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/pyserial-3.0.1/pyserial.egg-info/dependency_links.txt 2016-01-11 23:54:58.000000000 +0100 @@ -0,0 +1 @@ + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/pyserial.egg-info/top_level.txt new/pyserial-3.0.1/pyserial.egg-info/top_level.txt --- old/pyserial-3.0/pyserial.egg-info/top_level.txt 1970-01-01 01:00:00.000000000 +0100 +++ new/pyserial-3.0.1/pyserial.egg-info/top_level.txt 2016-01-11 23:54:58.000000000 +0100 @@ -0,0 +1 @@ +serial diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/serial/__init__.py new/pyserial-3.0.1/serial/__init__.py --- old/pyserial-3.0/serial/__init__.py 2015-12-28 23:53:19.000000000 +0100 +++ new/pyserial-3.0.1/serial/__init__.py 2016-01-11 22:54:11.000000000 +0100 @@ -3,7 +3,7 @@ # This is a wrapper module for different platform implementations # # This file is part of pySerial. https://github.com/pyserial/pyserial -# (C) 2001-2015 Chris Liechti <cliec...@gmx.net> +# (C) 2001-2016 Chris Liechti <cliec...@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause @@ -13,7 +13,7 @@ from serial.serialutil import * #~ SerialBase, SerialException, to_bytes, iterbytes -VERSION = '3.0' +VERSION = '3.0.1' if sys.platform == 'cli': from serial.serialcli import Serial diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/serial/serialutil.py new/pyserial-3.0.1/serial/serialutil.py --- old/pyserial-3.0/serial/serialutil.py 2015-12-16 22:54:41.000000000 +0100 +++ new/pyserial-3.0.1/serial/serialutil.py 2016-01-02 23:22:59.000000000 +0100 @@ -123,13 +123,14 @@ baudrate=9600, # baud rate bytesize=EIGHTBITS, # number of data bits parity=PARITY_NONE, # enable parity checking - stopbits=STOPBITS_ONE, # number of stop bits + stopbits=STOPBITS_ONE, # number of stop bits timeout=None, # set a timeout value, None to wait forever xonxoff=False, # enable software flow control rtscts=False, # enable RTS/CTS flow control write_timeout=None, # set a timeout for writes dsrdtr=False, # None: use rtscts setting, dsrdtr override if True or False - inter_byte_timeout=None # Inter-character timeout, None to disable + inter_byte_timeout=None, # Inter-character timeout, None to disable + **kwargs ): """\ Initialize comm port object. If a port is given, then the port will be @@ -138,17 +139,18 @@ """ self.is_open = False - self._port = None # correct value is assigned below through properties - self._baudrate = None # correct value is assigned below through properties - self._bytesize = None # correct value is assigned below through properties - self._parity = None # correct value is assigned below through properties - self._stopbits = None # correct value is assigned below through properties - self._timeout = None # correct value is assigned below through properties - self._write_timeout = None # correct value is assigned below through properties - self._xonxoff = None # correct value is assigned below through properties - self._rtscts = None # correct value is assigned below through properties - self._dsrdtr = None # correct value is assigned below through properties - self._inter_byte_timeout = None # correct value is assigned below through properties + # correct values are assigned below through properties + self._port = None + self._baudrate = None + self._bytesize = None + self._parity = None + self._stopbits = None + self._timeout = None + self._write_timeout = None + self._xonxoff = None + self._rtscts = None + self._dsrdtr = None + self._inter_byte_timeout = None self._rs485_mode = None # disabled by default self._rts_state = True self._dtr_state = True @@ -166,6 +168,13 @@ self.rtscts = rtscts self.dsrdtr = dsrdtr self.inter_byte_timeout = inter_byte_timeout + # watch for backward compatible kwargs + if 'writeTimeout' in kwargs: + self.write_timeout = kwargs.pop('writeTimeout') + if 'interCharTimeout' in kwargs: + self.inter_byte_timeout = kwargs.pop('interCharTimeout') + if kwargs: + raise ValueError('unexpected keyword arguments: %r' % (kwargs,)) if port is not None: self.open() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/serial/tools/list_ports_common.py new/pyserial-3.0.1/serial/tools/list_ports_common.py --- old/pyserial-3.0/serial/tools/list_ports_common.py 2015-12-16 22:57:34.000000000 +0100 +++ new/pyserial-3.0.1/serial/tools/list_ports_common.py 2015-12-30 23:20:42.000000000 +0100 @@ -46,8 +46,10 @@ def usb_description(self): if self.interface is not None: return '{} - {}'.format(self.product, self.interface) - else: + elif self.product is not None: return self.product + else: + return self.name def usb_info(self): return 'USB VID:PID={:04X}:{:04X}{}{}'.format( diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/serial/tools/list_ports_windows.py new/pyserial-3.0.1/serial/tools/list_ports_windows.py --- old/pyserial-3.0/serial/tools/list_ports_windows.py 2015-12-16 22:59:05.000000000 +0100 +++ new/pyserial-3.0.1/serial/tools/list_ports_windows.py 2016-01-11 22:54:29.000000000 +0100 @@ -4,7 +4,7 @@ # and hardware information. # # This file is part of pySerial. https://github.com/pyserial/pyserial -# (C) 2001-2015 Chris Liechti <cliec...@gmx.net> +# (C) 2001-2016 Chris Liechti <cliec...@gmx.net> # # SPDX-License-Identifier: BSD-3-Clause @@ -230,7 +230,6 @@ if m.group(4): info.serial_number = m.group(4) # calculate a location string - # XXX was empty in tests with (internal) USB3 hub :( loc_path_str = byte_buffer(250) if SetupDiGetDeviceRegistryProperty( g_hdi, @@ -255,6 +254,15 @@ if location: info.location = ''.join(location) info.hwid = info.usb_info() + elif szHardwareID_str.startswith('FTDIBUS'): + m = re.search(r'VID_([0-9a-f]{4})\+PID_([0-9a-f]{4})(\+(\w+))?', szHardwareID_str, re.I) + if m: + info.vid = int(m.group(1), 16) + info.pid = int(m.group(2), 16) + if m.group(4): + info.serial_number = m.group(4) + # USB location is hidden by FDTI driver :( + info.hwid = info.usb_info() else: info.hwid = szHardwareID_str diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pyserial-3.0/setup.cfg new/pyserial-3.0.1/setup.cfg --- old/pyserial-3.0/setup.cfg 1970-01-01 01:00:00.000000000 +0100 +++ new/pyserial-3.0.1/setup.cfg 2016-01-11 23:54:58.000000000 +0100 @@ -0,0 +1,5 @@ +[egg_info] +tag_build = +tag_date = 0 +tag_svn_revision = 0 +