Hello community, here is the log from the commit of package python-pyserial for openSUSE:Factory checked in at 2017-04-19 18:08:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pyserial (Old) and /work/SRC/openSUSE:Factory/.python-pyserial.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pyserial" Wed Apr 19 18:08:09 2017 rev:13 rq:486222 version:3.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pyserial/python-pyserial.changes 2016-08-22 14:00:14.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.python-pyserial.new/python-pyserial.changes 2017-04-19 18:08:14.471777827 +0200 @@ -1,0 +2,86 @@ +Thu Apr 6 18:13:45 UTC 2017 - [email protected] + +- Update to Version 3.3 2017-03-08 + + Improvements: + * [#206] Exclusive access on POSIX. ``exclusive`` flag added. + * [#172] list_ports_windows: list_ports with 'manufacturer' info property + * [#174] miniterm: change cancel impl. for console + * [#182] serialutil: add overall timeout for read_until + * socket: use non-blocking socket and new Timeout class + * socket: implement a functional a reset_input_buffer + * rfc2217: improve read timeout implementation + * win32: include error message from system in ClearCommError exception + * and a few minor changes, docs + + Bugfixes: + * [#183] rfc2217: Fix broken calls to to_bytes on Python3. + * [#188] rfc2217: fix auto-open use case when port is given as parameter + + Bugfixes (posix): + * [#178] in read, count length of converted data + * [#189] fix return value of write + + Bugfixes (win32): + * [#194] spurious write fails with ERROR_SUCCESS +- Update to Version 3.2.1 + + Improvements: + * remove ``serial.aio`` in favor of separate package, ``pyserial-asyncio`` + * add client mode to example ``tcp_serial_redirect.py`` + * use of monotonic clock for timeouts, when available (Python 3.3 and up) + * [#169] arbitrary baud rate support for BSD family + * improve tests, improve ``loop://`` + + Bugfixes: + * [#137] Exception while cancel in miniterm (python3) + * [#143] Class Serial in protocol_loop.py references variable before assigning + to it + * [#149] Python 3 fix for threaded.FramedPacket + + Bugfixes (posix): + * [#133] _update_dtr_state throws Inappropriate ioctl for virtual serial + port created by socat on OS X + * [#157] Broken handling of CMSPAR in serialposix.py + + Bugfixes (win32): + * [#144] Use Unicode API for list_ports + * [#145] list_ports_windows: support devices with only VID + * [#162] Write in non-blocking mode returns incorrect value on windows +- Update to Version 3.2.0 + + See 3.2.1, this one missed a merge request related to removing aio. +- Update to Version 3.1.1 + + Improvements: + * deprecate ``nonblocking()`` method on posix, the port is already in this + mode. + * style: use .format() in various places instead of "%" formatting + + Bugfixes: + * [#122] fix bug in FramedPacket + * [#127] The Serial class in the .NET/Mono (IronPython) backend does not + implement the _reconfigure_port method + * [#123, #128] Avoid Python 3 syntax in aio module + + Bugfixes (posix): + * [#126] PATCH: Check delay_before_tx/rx for None in serialposix.py + * posix: retry if interrupted in Serial.read + + Bugfixes (win32): + * win32: handle errors of GetOverlappedResult in read(), fixes #121 +- Update to Version 3.1.0 + + Improvements: + * improve error handling in ``alt://`` handler + * ``socket://`` internally used select, improves timeout behavior + * initial state of RTS/DTR: ignore error when setting on open posix + (support connecting to pty's) + * code style updates + * posix: remove "number_to_device" which is not called anymore + * add cancel_read and cancel_write to win32 and posix implementations + + Bugfixes: + * [#68] aio: catch errors and close connection + * [#87] hexlify: update codec for Python 2 + * [#100] setPort not implemented + * [#101] bug in serial.threaded.Packetizer with easy fix + * [#104] rfc2217 and socket: set timeout in create_connection + * [#107] miniterm.py fails to exit on failed serial port + + Bugfixes (posix): + * [#59] fixes for RTS/DTR handling on open + * [#77] list_ports_osx: add missing import + * [#85] serialposix.py _set_rs485_mode() tries to read non-existing + rs485_settings.delay_rts_before_send + * [#96] patch: native RS485 is never enabled + + Bugfixes (win32): + * fix bad super call and duplicate old-style __init__ call + * [#80] list_ports: Compatibility issue between Windows/Linux +- Implement single-spec version. + +------------------------------------------------------------------- Old: ---- pyserial-3.0.1.tar.gz New: ---- pyserial-3.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pyserial.spec ++++++ --- /var/tmp/diff_new_pack.g9mKJw/_old 2017-04-19 18:08:15.227670902 +0200 +++ /var/tmp/diff_new_pack.g9mKJw/_new 2017-04-19 18:08:15.231670337 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-pyserial # -# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,8 +16,9 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pyserial -Version: 3.0.1 +Version: 3.3 Release: 0 Url: https://github.com/pyserial/pyserial Summary: Python Serial Port Extension @@ -25,31 +26,29 @@ Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-Sphinx -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -BuildRequires: python-importlib -Requires: python-importlib -%else +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python3-Sphinx BuildArch: noarch -%endif Provides: python-serial = %{version} Obsoletes: python-serial < %{version} Requires(post): update-alternatives Requires(preun): update-alternatives +%python_subpackages + %description Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython -%package doc +%package -n %{name}-doc Summary: Documentation for %{name} Group: Documentation/Other -Recommends: %{name} = %{version} +Provides: python2-pyserial-doc = %{version} +Provides: python3-pyserial-doc = %{version} -%description doc +%description -n %{name}-doc Documentation, examples, and help files for %{name}. %prep @@ -58,35 +57,31 @@ sed -i "s/\r//" examples/port_publisher.py # Fix EOL encoding %build -python setup.py build +%python_build make -C documentation html && rm documentation/_build/html/.buildinfo # Build HTML documentation %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install + +%python_expand %fdupes %{buildroot}%{$python_sitelib} -mkdir -p %{buildroot}%{_sysconfdir}/alternatives -mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm-%{py_ver} -ln -s -f %{_sysconfdir}/alternatives/miniterm %{buildroot}%{_bindir}/miniterm +mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm +%python_clone -a %{buildroot}%{_bindir}/miniterm %post -%_sbindir/update-alternatives \ - --install %{_bindir}/miniterm miniterm %{_bindir}/miniterm-%{py_ver} 30 +%python_install_alternative miniterm %preun -if [ $1 -eq 0 ] ; then - %_sbindir/update-alternatives --remove miniterm %{_bindir}/miniterm-%{py_ver} -fi +%python_uninstall_alternative miniterm -%files +%files %{python_files} %defattr(-,root,root,-) %doc CHANGES.rst LICENSE.txt README.rst -%{_bindir}/miniterm -%{_bindir}/miniterm-%{py_ver} -%ghost %{_sysconfdir}/alternatives/miniterm +%python_alternative miniterm %{python_sitelib}/serial/ %{python_sitelib}/pyserial-%{version}-py*.egg-info -%files doc +%files -n %{name}-doc %defattr(-,root,root,-) %doc examples/ %doc documentation/_build/* ++++++ pyserial-3.0.1.tar.gz -> pyserial-3.3.tar.gz ++++++ ++++ 8746 lines of diff (skipped)
