forked from pool/python-pyserial
Accepting request 486222 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/486222 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=13
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:969cb6405d1d87f8960cf9c10f597ae58f85da2fb9769dba96f4aeeaade54656
|
||||
size 134742
|
3
pyserial-3.3.tar.gz
Normal file
3
pyserial-3.3.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:2949cddffc2b05683065a3cd2345114b1a49b08df8cb843d69ba99dc3e19edc2
|
||||
size 149032
|
@@ -1,3 +1,89 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 6 18:13:45 UTC 2017 - toddrme2178@gmail.com
|
||||
|
||||
- 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.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 15 14:51:56 UTC 2016 - toddrme2178@gmail.com
|
||||
|
||||
|
@@ -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 @@ License: Python-2.0
|
||||
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|#\!\/usr\/bin\/env python||" serial/{serialposix,__init__}.py # Fix no
|
||||
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
|
||||
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||
mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm-%{py_ver}
|
||||
ln -s -f %{_sysconfdir}/alternatives/miniterm %{buildroot}%{_bindir}/miniterm
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
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
|
||||
%doc CHANGES.rst LICENSE.txt README.rst
|
||||
%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/*
|
||||
|
Reference in New Issue
Block a user