Hello community,
here is the log from the commit of package python3-pyserial for
openSUSE:Factory checked in at 2016-05-23 16:38:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python3-pyserial (Old)
and /work/SRC/openSUSE:Factory/.python3-pyserial.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python3-pyserial"
Changes:
--------
New Changes file:
--- /dev/null 2016-04-07 01:36:33.300037506 +0200
+++
/work/SRC/openSUSE:Factory/.python3-pyserial.new/python3-pyserial-doc.changes
2016-05-23 16:38:31.000000000 +0200
@@ -0,0 +1,183 @@
+-------------------------------------------------------------------
+Thu May 19 18:37:25 UTC 2016 - [email protected]
+
+- Split documentation into own subpackage to speed up build.
+- Implement update-alternatives
+
+-------------------------------------------------------------------
+Sun May 8 07:05:15 UTC 2016 - [email protected]
+
+- specfile:
+ * changed to https for source url
+ * updated source url to files.pythonhosted.org
+
+
+-------------------------------------------------------------------
+Tue Jan 12 22:23:52 UTC 2016 - [email protected]
+
+- 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
+
+-------------------------------------------------------------------
+Wed Dec 30 18:48:07 UTC 2015 - [email protected]
+
+- specfile:
+ * update copyright year
+ * updated url (moved to github)
+ * use setuptools
+ * CHANGES.txt -> CHANGES.rst
+ * README.txt -> README.rst
+
+- update to version 3.0:
+ * minor fixes to setup.py (file list), inter_byte_timeout (not
+ stored when passed to __init__), rfc2217 (behavior of close when
+ open failed), list_ports (__str__), loop://, renamed ReaderThread
+ * hwgrep:// added options to pick n'th port, skip busy ports
+ * miniterm: --ask option added
+ * Bugfixes (posix):
+ + [#26/#30] always call tcsettattr on open
+ + [#42] fix disregard read timeout if there is more data
+ + [#45] check for write timeout, even if EAGAIN was rised
+ * Bugfixes (win32):
+ + [#27] fix race condition in "read()", fix minimal timeout issue
+ + race condition in nonblocking case
+ + [#49] change exception type in case SetCommState fails
+ + [#50] fixed issue with 0 timeout on windows 10
+
+- changes from version 3.0b1:
+ * list_ports: add "vid", "pid", "serial_number", "product",
+ "manufacturer" and "location" attribute for USB devices.
+ * list_ports: update OSX implementation.
+ * list_ports: Raspberry Pi: internal port is found.
+ * serial_for_url: fix import (multiple packages in list)
+ * threaded: added new module implementing a reader thread
+ * tweak examples/wx*
+ * posix: add experimental implementation "VTIMESerial"
+ * new URL handler "alt://" to select alternative implementations
+
+- changes from version 3.0a0:
+ * Starting from this release, only Python 2.7 and 3.2 (or newer) are
+ supported. The source code is compatible to the 2.x and 3.x series
+ without any changes. The support for earlier Python versions than
+ 2.7 is removed, please refer to the pyserial-legacy (V2.x) series
+ if older Python versions are a requirement).
+ * Development moved to github, update links in docs.
+ * API changes: properties for "rts", "dtr", "cts", "dsr", "cd",
+ "ri", "in_waiting" (instead of get/set functions)
+ * remove file "FileLike" class, add "read_until" and "iread_until"
+ to "SerialBase"
+ * RS485 support changed ("rts_toggle" removed, added "serial.rs485"
+ module and "rs485_mode" property)
+ * "socket://" and "rfc2217://" handlers use the IPv6 compatible
+ "socket.create_connection"
+ * New URL handler: "spy:://".
+ * URL handlers now require the proper format ("?" and "&") for
+ arguments instead of "/"
+ (e.g. "rfc2217://localhost:7000?ign_set_control&timeout=5.5")
+ * Remove obsolete examples.
+ * Finish update to BSD license.
+ * Use setuptools if available, fall back to distutils if
+ unavailable.
+ * miniterm: changed command line options
+ * miniterm: support encodings on serial port
+ * miniterm: new transformations, by default escape/convert all
+ control characters
+ * list_ports: improved, added USB location (Linux, Win32)
+ * refactored code
+ * [FTR pyserial:37] Support fileno() function in the socket protocol
+ * Posix: [Patch pyserial:31] Mark/space parity on Linux
+ * Linux: [Patch pyserial:32] Module list_ports for linux should
+ include the product information as description.
+ * Java: fix 2 bugs (stop bits if/else and non-integer timeouts)
+ (Torsten Roemer)
+ * Update wxSerialConfigDialog.py to use serial.tools.list_ports.
+ * [Patch pyserial:34] Improvements to port_publisher.py example
+ * [Feature pyserial:39] Support BlueTooth serial port discovery on
+ Linux
+ * Bugfixes:
+ + [Bug pyserial:157] Implement inWaiting in protocol_socket
+ + [Bug pyserial:166] RFC2217 connections always fail
+ + [Bug pyserial:172] applySettingsDict() throws an error if the
+ settings dictionary is not complete
+ + [Bug pyserial:185] SocketSerial.read() never returns data when
+ timeout==0
+ * Bugfixes (posix):
+ + [Bug pyserial:156] PosixSerial.open raises OSError rather than
+ SerialException when port open fails
+ + [Bug pyserial:163] serial.tools.list_ports.grep() fails if it
+ encounters None type
+ + fix setXON
+ + [Patch pyserial:36 / 38] Make USB information work in python 3.4
+ and 2.7
+ + clear OCRNL/ONLCR flags (CR/LF translation settings)
+ + [Feature pyserial:38] RS485 Support
+ + [Bug pyserial:170] list_ports_posix not working properly for
+ Cygwin
+ + [Bug pyserial:187] improve support for FreeBSD
+ (list_ports_posix)
+ * Bugfixes (win32):
+ + [Bug pyserial:169] missing "import time" in serialwin32.py
+ * Bugfixes (cli):
+ + [Bug pyserial:159] write() in serialcli.py not working with
+ IronPython 2.7.4
+
+-------------------------------------------------------------------
+Mon Dec 23 08:46:13 UTC 2013 - [email protected]
+
+- Update to version 2.7
+ + Win32: setRTS and setDTR can be called before the port is opened and it
will
+ set the initial state on port open.
+ + Posix: add platform specific method: outWaiting (already present for Win32)
+ + Posix: rename flowControl to setXON to match name on Win32, add
+ flowControlOut function
+ + rfc2217: zero polls value (baudrate, data size, stop bits, parity)
+ + Posix: [Patch pyserial:28] Accept any speed on Linux [update]
+ + Posix: [Patch pyserial:29] PosixSerial.read() should "ignore" errno.EINTR
+ + OSX: [Patch pyserial:27] Scan by VendorID/Product ID for USB Serial devices
+ + Ensure working with bytes in write() calls
+ + [Bug 3540332] SerialException not returned
+ + [Bug pyserial:145] Error in socket_connection.py
+ + [Bug pyserial:135] reading from socket with timeout=None causes TypeError
+ + [Bug pyserial:130] setup.py should not append py3k to package name
+ + [Bug pyserial:117] no error on lost conn w/socket://
+ + [Patch 3462364] Fix: NameError: global name 'base' is not defined
+ + list_ports and device() for BSD updated (Anders Langworthy)
+ + [Bug 3518380] python3.2 +m serial.tools.list_ports error
+ + [Bug pyserial:137] Patch to add non +standard baudrates to Cygwin
+ + [Bug pyserial:141] open: Pass errno from IOError to SerialException
+ + [Bug pyserial:125] Undefined 'base' on list_ports_posix.py, function
usb_lsusb
+ + [Bug pyserial:151] Serial.write() without a timeout uses 100% CPU on POSIX
+ + [Patch pyserial:30] [PATCH 1/1] serial.Serial() should not raise IOError.
+ + [Bug 3444941] ctypes.WinError() unicode error
+ + [Bug 3550043] on Windows in tools global name 'GetLastError' is not defined
+ + [Bug pyserial:146] flush() does nothing in windows (despite docs)
+ + [Bug pyserial:144] com0com ports ignored due to missing "friendly name"
+ + [Bug pyserial:152] Cannot configure port, some setting was wrong. Can leave
+ port handle open but port not accessible
+
+-------------------------------------------------------------------
+Wed Apr 24 03:53:23 UTC 2013 - [email protected]
+
+- initial python3 package
+- update to 2.6 version
+ * Moved some of the examples to serial.tools so that they can be
+ used with ``python -m``
+ * serial port enumeration now included as ``serial.tools.list_ports``
+ * URL handers for ``serial_for_url`` are now imported dynamically.
+ This allows to add protocols w/o editing files. The list
+ ``serial.protocol_handler_packages`` can be used to add or remove
+ user packages with protocol handlers (see docs for details).
+ * new URL type: hwgrep://<regexp> uses list_ports module to search
+ for ports by their description
+ * serveral internal changes to improve Python 3.x compatibility
+ (setup.py, use of absolute imports and more)
+ * [Bug 3093882] calling open() on an already open port now
+ raises an exception
+ * [Bug 3245627] connection-lost let rfc2217 hangs in closed loop
+ * [Patch 3147043] readlines() to support multi-character eol
+ * [Patch 3316943] Avoid unneeded termios.tcsetattr calls in serialposix.py
+ * [Patch 2912349] Serial Scan as a Module with Mac Support
--- /work/SRC/openSUSE:Factory/python3-pyserial/python3-pyserial.changes
2016-05-17 17:12:02.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python3-pyserial.new/python3-pyserial.changes
2016-05-23 16:38:31.000000000 +0200
@@ -1,0 +2,6 @@
+Thu May 19 18:37:25 UTC 2016 - [email protected]
+
+- Split documentation into own subpackage to speed up build.
+- Implement update-alternatives
+
+-------------------------------------------------------------------
New:
----
python3-pyserial-doc.changes
python3-pyserial-doc.spec
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python3-pyserial-doc.spec ++++++
#
# spec file for package python3-pyserial-doc
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python3-pyserial-doc
Version: 3.0.1
Release: 0
Url: https://github.com/pyserial/pyserial
Summary: Documentation for python3-pyserial
License: Python-2.0
Group: Documentation/HTML
Source:
https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3-pyserial = %{version}
BuildRequires: python3-Sphinx
Recommends: python3-pyserial = %{version}
BuildArch: noarch
%description
Documentation and help files for python3-pyserial.
%prep
%setup -q -n pyserial-%{version}
sed -i "s|#\!\/usr\/bin\/env python||" serial/{serialposix,__init__}.py # Fix
non-executable scripts
sed -i "s/\r//" examples/port_publisher.py # Fix EOL encoding
%build
sed -i "s/sphinx-build/sphinx-build-%{py3_ver}/g" -i documentation/Makefile
%install
make -C documentation html && rm documentation/_build/html/.buildinfo # Build
HTML documentation
%files
%defattr(-,root,root,-)
%doc examples
%doc documentation/_build/*
%changelog
++++++ python3-pyserial.spec ++++++
--- /var/tmp/diff_new_pack.a9ypqH/_old 2016-05-23 16:38:32.000000000 +0200
+++ /var/tmp/diff_new_pack.a9ypqH/_new 2016-05-23 16:38:32.000000000 +0200
@@ -27,10 +27,11 @@
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python3
BuildRequires: python3-2to3
-BuildRequires: python3-Sphinx
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildArch: noarch
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
%description
Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython
@@ -38,22 +39,35 @@
%prep
%setup -q -n pyserial-%{version}
sed -i "s|#\!\/usr\/bin\/env python||" serial/{serialposix,__init__}.py # Fix
non-executable scripts
-sed -i "s/\r//" examples/port_publisher.py # Fix EOL encoding
%build
python3 setup.py build
-sed -i "s/sphinx-build/sphinx-build-%{py3_ver}/g" -i documentation/Makefile
-make -C documentation html && rm documentation/_build/html/.buildinfo # Build
HTML documentation
%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
-mv %{buildroot}%{_bindir}/miniterm.py
%{buildroot}%{_bindir}/miniterm-%{py3_ver}.py
+
+mkdir -p %{buildroot}%{_sysconfdir}/alternatives
+mv %{buildroot}%{_bindir}/miniterm.py
%{buildroot}%{_bindir}/miniterm-%{py3_ver}
+ln -s -f %{_sysconfdir}/alternatives/miniterm %{buildroot}%{_bindir}/miniterm
+# create a dummy target for /etc/alternatives/miniterm
+touch %{buildroot}%{_sysconfdir}/alternatives/miniterm
+
+%post
+"%_sbindir/update-alternatives" \
+ --install %{_bindir}/miniterm miniterm %{_bindir}/miniterm-%{py3_ver} 30
+
+%postun
+if [ $1 -eq 0 ] ; then
+ "%_sbindir/update-alternatives" --remove miniterm
%{_bindir}/miniterm-%{py3_ver}
+fi
%files
%defattr(-,root,root,-)
-%doc CHANGES.rst LICENSE.txt README.rst examples documentation/_build/*
-%{_bindir}/miniterm-%{py3_ver}.py
+%doc CHANGES.rst LICENSE.txt README.rst
+%{_bindir}/miniterm
+%{_bindir}/miniterm-%{py3_ver}
+%ghost %{_sysconfdir}/alternatives/miniterm
%{python3_sitelib}/serial/
-%{python3_sitelib}/pyserial-%{version}-py%{py3_ver}.egg-info
+%{python3_sitelib}/pyserial-%{version}-py*.egg-info
%changelog