forked from pool/python-pyserial
Accepting request 397069 from home:TheBlackCat:branches:devel:languages:python
update to version 3.0.1 OBS-URL: https://build.opensuse.org/request/show/397069 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/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:3542ec0838793e61d6224e27ff05e8ce4ba5a5c5cc4ec5c6a3e8d49247985477
|
|
||||||
size 122081
|
|
3
pyserial-3.0.1.tar.gz
Normal file
3
pyserial-3.0.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:969cb6405d1d87f8960cf9c10f597ae58f85da2fb9769dba96f4aeeaade54656
|
||||||
|
size 134742
|
@@ -1,3 +1,110 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri May 20 17:05:24 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- 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
|
||||||
|
- 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
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
* updated url (moved to github)
|
||||||
|
* use setuptools
|
||||||
|
* CHANGES.txt -> CHANGES.rst
|
||||||
|
* README.txt -> README.rst
|
||||||
|
* Implement update-alternatives
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Nov 24 21:04:55 UTC 2013 - p.drouand@gmail.com
|
Sun Nov 24 21:04:55 UTC 2013 - p.drouand@gmail.com
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pyserial
|
# spec file for package python-pyserial
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2016 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -17,23 +17,29 @@
|
|||||||
|
|
||||||
|
|
||||||
Name: python-pyserial
|
Name: python-pyserial
|
||||||
Version: 2.7
|
Version: 3.0.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Url: http://pyserial.sourceforge.net/
|
Url: https://github.com/pyserial/pyserial
|
||||||
Summary: Python Serial Port Extension
|
Summary: Python Serial Port Extension
|
||||||
License: Python-2.0
|
License: Python-2.0
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Source: http://pypi.python.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: python-Sphinx
|
BuildRequires: python
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: python-setuptools
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
%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()")}
|
%{!?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
|
%else
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
Provides: python-serial = %{version}
|
Provides: python-serial = %{version}
|
||||||
Obsoletes: python-serial < %{version}
|
Obsoletes: python-serial < %{version}
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython
|
Python Serial Port Extension for Win32, Linux, BSD, Jython, IronPython
|
||||||
@@ -50,11 +56,28 @@ make -C documentation html && rm documentation/_build/html/.buildinfo # Build HT
|
|||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||||
|
|
||||||
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
||||||
|
mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm-%{py_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-%{py_ver} 30
|
||||||
|
|
||||||
|
%postun
|
||||||
|
if [ $1 -eq 0 ] ; then
|
||||||
|
"%_sbindir/update-alternatives" --remove miniterm %{_bindir}/miniterm-%{py_ver}
|
||||||
|
fi
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CHANGES.txt LICENSE.txt README.txt examples documentation/_build/*
|
%doc CHANGES.rst LICENSE.txt README.rst examples documentation/_build/*
|
||||||
%{_bindir}/miniterm.py
|
%{_bindir}/miniterm
|
||||||
|
%{_bindir}/miniterm-%{py_ver}
|
||||||
|
%ghost %{_sysconfdir}/alternatives/miniterm
|
||||||
%{python_sitelib}/serial/
|
%{python_sitelib}/serial/
|
||||||
%{python_sitelib}/pyserial-%{version}-py%{py_ver}.egg-info
|
%{python_sitelib}/pyserial-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user