14
0

27 Commits

Author SHA256 Message Date
106b9d2975 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=44
2025-06-11 06:23:38 +00:00
b601192434 - fix alternatives
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=42
2025-01-17 09:04:10 +00:00
03d7bc041a Accepting request 1238041 from home:nkrapp:branches:devel:languages:python
- Use libalternatives instead of update-alternatives, bsc#1235782

OBS-URL: https://build.opensuse.org/request/show/1238041
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=41
2025-01-15 12:59:49 +00:00
36557fefe5 Accepting request 1202917 from home:ecsos:python
- Fix build error under Leap.

OBS-URL: https://build.opensuse.org/request/show/1202917
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=39
2024-09-24 12:58:28 +00:00
77b169025b Accepting request 1190290 from home:glaubitz:branches:devel:languages:python
- Cherry-pick upstream patch to fix tests with Python 3.13
  * replace-deprecated-unittest-function.patch

OBS-URL: https://build.opensuse.org/request/show/1190290
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=37
2024-07-30 20:04:36 +00:00
c2fc102bfc Accepting request 1084391 from home:dirkmueller:acdc:as_python3_module
- Switch documentation to be within the main package.

OBS-URL: https://build.opensuse.org/request/show/1084391
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=35
2023-05-03 14:43:03 +00:00
a53ce069e5 Accepting request 1081566 from home:dirkmueller:acdc:as_python3_module
SR for python stack proposal

OBS-URL: https://build.opensuse.org/request/show/1081566
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=33
2023-04-21 13:22:29 +00:00
83c3706df9 Accepting request 865162 from system:homeautomation:home-assistant
- update to version 3.5:
  New Features:
  [#411] Add a backend for Silicon Labs CP2110/4 HID-to-UART bridge. (depends on hid module)
  Improvements:
  [#315] Use absolute import everywhere
  [#354] Make ListPortInfo hashable
  [#372] threaded: "write" returns byte count
  [#400] Add bytesize and stopbits argument parser to tcp_serial_redirect
  [#408] loop: add out_waiting
  [#495] list_ports_linux: Correct "interface" property on Linux hosts
  [#500] Remove Python 3.2 and 3.3 from test
  [#261, #285, #296, #320, #333, #342, #356, #358, #389, #397, #510] doc updates
  miniterm: add CTRL+T Q as alternative to exit
  miniterm: suspend function key changed to CTRL-T Z
  add command line tool entries pyserial-miniterm (replaces miniterm.py) and pyserial-ports (runs serial.tools.list_ports).
  python -m serial opens miniterm (use w/o args and it will print port list too) [experimental]
  Bugfixes:
  [#371] Don't open port if self.port is not set while entering context manager
  [#437, #502] refactor: raise new instances for PortNotOpenError and SerialTimeoutException
  [#261, #263] list_ports: set default name attribute
  [#286] fix: compare only of the same type in list_ports_common.ListPortInfo
  rfc2217/close(): fix race-condition
  [#305] return b'' when connection closes on rfc2217 connection
  [#386] rfc2217/close(): fix race condition
  Fixed flush_input_buffer() for situations where the remote end has closed the socket.
  [#441] reset_input_buffer() can hang on sockets
  examples: port_publisher python 3 fixes
  [#324] miniterm: Fix miniterm constructor exit_character and menu_character
  [#326] miniterm: use exclusive access for native serial ports by default
  [#497] miniterm: fix double use of CTRL-T + s use z for suspend instead

OBS-URL: https://build.opensuse.org/request/show/865162
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=31
2021-01-21 08:33:45 +00:00
Tomáš Chvátal
a31b32673a Accepting request 694155 from home:jayvdb:branches:devel:languages:python
- Remove unnecessary Windows and OSX modules from runtime package
- Remove Mono and Java CLI modules from runtime package
- Activate test suite
- Fix fdupes, hashbangs and executable bits
- Remove non-break-space in python-pyserial.changes with normal space
- Remove superfluous devel dependency for noarch package
- Further fix shebangs
- Update to version 3.4
  + Improvements:
    * miniterm: suspend function (temporarily release port, :kbd:`Ctrl-T s`)
    * [#240] context manager automatically opens port on ``__enter__``
    * [#141] list_ports: add interface number to location string
    * [#225] protocol_socket: Retry if ``BlockingIOError`` occurs in
      ``reset_input_buffer``.
  + Bugfixes:
    * [#153] list_ports: option to include symlinked devices
    * [#237] list_ports: workaround for special characters in port names
  + Bugfixes (posix):
    * allow calling cancel functions w/o error if port is closed
    * [#220] protocol_socket: sync error handling with posix version
    * [#227] posix: ignore more blocking errors and EINTR, timeout only
      applies to blocking I/O
    * [#228] fix: port_publisher typo
- Fix shebangs
- Do not include unneccessary undeterministic environment.pickle in package to fix build-compare
- 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.
- Fix update-alternatives implementation.
- Split documentation into subpackage.
- 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
- 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
- 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 
- Renamed to python-pyserial (from python-serial)
- Fixed mon-executable scripts and wrong EOL encoding rpmlint issues
- update to 2.5
  * python 3 compatibility
  * many bugfixes and features, see CHANGES.txt
- build as noarch on newer distros
- update to 2.4
  * iterator interface
  * inter-character timeout
  * support for Jython and IronPython
  * bugfixes
- updated to reflect python changes due to #149809
- converted neededforbuild to BuildRequires
- update to 2.2
- spec file cleanup
- Initial creation of package python-serial (pyserial).

OBS-URL: https://build.opensuse.org/request/show/694155
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=29
2019-04-15 09:19:57 +00:00
59c6d3f3d8 Correct sed syntax
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=27
2018-12-06 21:50:39 +00:00
da333b832a Fix build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=26
2018-12-06 17:53:45 +00:00
612c84fc47 Clean up the SPEC file
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=25
2018-12-04 17:19:57 +00:00
1accee1e12 Remove superfluous devel dependency for noarch package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=24
2018-12-04 13:54:29 +00:00
Todd R
204843e4e8 Accepting request 515044 from home:TheBlackCat:branches:devel:languages:python
- Further fix shebangs

OBS-URL: https://build.opensuse.org/request/show/515044
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=22
2017-08-07 16:32:50 +00:00
Todd R
f8df8ddcf6 Accepting request 514816 from home:TheBlackCat:branches:devel:languages:python
- Update to version 3.4
- Fix shebangs

OBS-URL: https://build.opensuse.org/request/show/514816
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=21
2017-08-06 18:31:09 +00:00
Jan Matejek
42c15148fa Accepting request 505423 from home:bmwiedemann:branches:devel:languages:python
Do not include unneccessary undeterministic environment.pickle in package to fix build-compare

OBS-URL: https://build.opensuse.org/request/show/505423
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=19
2017-06-21 13:51:05 +00:00
Todd R
a725953375 Accepting request 486221 from home:TheBlackCat:branches:devel:languages:python
Update to Version 3.3
Implement single-spec version

OBS-URL: https://build.opensuse.org/request/show/486221
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=17
2017-04-06 18:22:55 +00:00
Todd R
b9bb263392 Accepting request 419501 from home:TheBlackCat:branches:devel:languages:python
- Fix update-alternatives implementation.
- Split documentation into subpackage.

OBS-URL: https://build.opensuse.org/request/show/419501
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=15
2016-08-15 18:07:51 +00:00
Todd R
735edd0ff1 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
2016-05-20 17:13:12 +00:00
Denisart Benjamin
f655445c6b Accepting request 208218 from home:posophe:branches:devel:languages:python
update

OBS-URL: https://build.opensuse.org/request/show/208218
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=11
2013-11-24 21:06:40 +00:00
Todd R
5e81eb4ea2 Accepting request 174583 from home:HighwayStar:branches:devel:languages:python
python3 package added
update to 2.6 version
spec file cleaned from old TODO comments

OBS-URL: https://build.opensuse.org/request/show/174583
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=7
2013-05-08 09:07:02 +00:00
Sascha Peilicke
5231750531 Accepting request 126144 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/126144
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=6
2012-06-26 09:58:58 +00:00
Pavol Rusnak
fc0ccef89c remove unneeded todo
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=5
2012-01-24 14:35:49 +00:00
Pavol Rusnak
1c2014c0a1 Accepting request 101352 from Virtualization:Cloud:OpenStack:Diablo
- fix Obsoletes

OBS-URL: https://build.opensuse.org/request/show/101352
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=4
2012-01-24 14:31:02 +00:00
Pascal Bleser
78d0bcd152 remove %debug_package
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=3
2011-12-12 09:06:02 +00:00
Stephan Kulow
f8a157e1d8 replace license with spdx.org variant
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyserial?expand=0&rev=3
2011-12-06 17:57:27 +00:00
Sascha Peilicke
07003a51a6 - Renamed to python-pyserial (from python-serial)
- Fixed mon-executable scripts and wrong EOL encoding rpmlint issues

- update to 2.5
  * python 3 compatibility
  * many bugfixes and features, see CHANGES.txt

- build as noarch on newer distros

- update to 2.4
  * iterator interface
  * inter-character timeout
  * support for Jython and IronPython
  * bugfixes

- updated to reflect python changes due to #149809

- converted neededforbuild to BuildRequires

- update to 2.2

- spec file cleanup

- Initial creation of package python-serial (pyserial).

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyserial?expand=0&rev=1
2011-09-06 15:27:11 +00:00