Releases: Lei-k/async-pyserial
Releases · Lei-k/async-pyserial
Release v0.2.3
New Features and Enhancements
Error Handling
- Added
SerialPortError
to handle write and read errors. - Improved error handling in the callback functions for
write
operations innative_serialport.py
. - Refactored internal calls to
_callback_write
for better error management.
Testing Improvements
- Added extensive tests for different async workers:
tests/asyncio/test_serialport.py
for asyncio.tests/callback/test_serialport.py
for callback-based operations.tests/eventlet/test_serialport.py
for eventlet.tests/gevent/test_serialport.py
for gevent.tests/sync/test_serialport.py
for synchronous operations.
- Introduced utility functions for creating virtual serial ports and mocking data reception in
tests/test_util.py
. - Added tests for platform-specific behavior in
tests/test_platform.py
.
Documentation
- Updated documentation version to 0.2.3 in
docs/source/conf.py
.
CI/CD
- Updated GitHub Actions workflow (
codecov-publish.yml
) to include thedev
branch.
Code Refactoring
- Renamed and restructured test files for better organization and clarity.
- Replaced private method names (
__method_name
) with protected method names (_method_name
) innative_serialport.py
.
Version Bump
- Updated version to 0.2.3 in
pyproject.toml
,setup.py
, andasync_pyserial/__init__.py
.
Bug Fixes
- Fixed various minor bugs and improved stability in serial port operations.
Contributors:
- Neil Lei
For detailed changes, refer to the commit history.
Installation
pip install async_pyserial==0.2.3
v0.2.2 Release
patch release
v0.2.1 Release
patch release
- fix darwin build
- publish source distribution
Bump version to v0.2.0
- Add callback functionality for read/write operations.
- Integrate gevent, eventlet, and asyncio support.
- Update examples to demonstrate new async features.
- Implement async read/write with gevent, eventlet, and asyncio.
- Improve error handling and thread synchronization.
Bump version to v0.1.3
- Enhanced EventEmitter with decorator support for adding event listeners.
- Added remove_listener and remove_all_listeners methods for managing event listeners.
- Updated unit tests to cover new functionalities.
- Improved documentation and examples for better clarity.
First Release
First Release