From de6fefb5344f8f8ad078c1f1cc495499a1a1bab5 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 18:45:48 +0200 Subject: [PATCH 01/13] Upate Changelog for Release v.4.3.0 --- CHANGELOG.md | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 493ac1966..894129c5e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,54 @@ +Version 4.3.0 +=========== + +Breaking Changes +---------------- +* Raise Minimum Python Version to 3.8 (#1597) + +Bug Fixes +--------- +* Fix Vector channel detection (#1634) +* ixxat: Fix exception in 'state' property on bus coupling errors (#1647) +* NeoVi: Fixed serial number range (#1650) +* Fix PCAN timestamp (#1651) +* Fix BLFReader error for incomplete or truncated stream (#1662) +* We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666) + +Features +-------- + +### IO +* Distinguish Text/Binary-IO for Reader/Writer classes. (#1585) +* Can Player compatibility with interfaces that use additional configuration (#1610) + +### Interface Improvements +* Change Bus constructor implementation and typing (#1557) +* Add `protocol` property to BusABC to determine active CAN Protocol (#1532) +* Add auto-modifying cyclic tasks (#703) +* NeoVi: Enable send and receive on network ID above 255 (#1627) +* Optimize PCAN send performance (#1640) +* Support version string of older PCAN basic API (#1644) +* Kvaser: add parameter exclusive and `override_exclusive` (#1660) +* Relax BitTiming & BitTimingFd Validation (#1618) +* Send HighPriority Message to flush VectorBus Tx buffer (#1636) +* PCAN: remove Windows registry check (#1672) +* Vector: Skip the `can_op_mode check` if the device reports `can_op_mode=0` (#1678) + +### Miscellaneous +* Convert setup.py to pyproject.toml (#1592) +* activate ruff pycodestyle checks (#1602) +* Update linter instructions in development.rst (#1603) +* remove unnecessary script files (#1604) +* BigEndian test fixes (#1625) +* Use same configuration file as Linux on macOS (#1657) +* Catch `pywintypes.error` in broadcast manager (#1659) +* Update linters, activate more ruff rules (#1669) +* align `ID:` in can.Message string (#1635) +* Do not stop notifier if exception was handled (#1645) +* Add `BitTiming.iterate_from_sample_point` static methods (#1671) +* Add Python 3.12 Support / Test Python 3.12 (#1673) + + Version 4.2.2 ============= From eb827b0a293e652cc49d65574f511075593fdfc2 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:12:08 +0200 Subject: [PATCH 02/13] Update CHANGELOG.md Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 894129c5e..13be030f8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,7 +30,7 @@ Features * Support version string of older PCAN basic API (#1644) * Kvaser: add parameter exclusive and `override_exclusive` (#1660) * Relax BitTiming & BitTimingFd Validation (#1618) -* Send HighPriority Message to flush VectorBus Tx buffer (#1636) +* Vector: Send HighPriority Message to flush Tx buffer (#1636) * PCAN: remove Windows registry check (#1672) * Vector: Skip the `can_op_mode check` if the device reports `can_op_mode=0` (#1678) From 64f02e884e6bb9ed3357f69b1de20e13aaaccbcc Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:12:17 +0200 Subject: [PATCH 03/13] Update CHANGELOG.md Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13be030f8..8e7b8a4a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,7 +31,7 @@ Features * Kvaser: add parameter exclusive and `override_exclusive` (#1660) * Relax BitTiming & BitTimingFd Validation (#1618) * Vector: Send HighPriority Message to flush Tx buffer (#1636) -* PCAN: remove Windows registry check (#1672) +* PCAN: remove Windows registry check to fix 32bit compatibility (#1672) * Vector: Skip the `can_op_mode check` if the device reports `can_op_mode=0` (#1678) ### Miscellaneous From 6b558d40e6f72196004e9d7f59e1fbe823c041eb Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:15:50 +0200 Subject: [PATCH 04/13] Update CHANGELOG.md Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e7b8a4a8..ca115dc90 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,7 +24,7 @@ Features ### Interface Improvements * Change Bus constructor implementation and typing (#1557) * Add `protocol` property to BusABC to determine active CAN Protocol (#1532) -* Add auto-modifying cyclic tasks (#703) +* Add `modifier_callback` parameter to `BusABC.send_periodic` for auto-modifying cyclic tasks (#703) * NeoVi: Enable send and receive on network ID above 255 (#1627) * Optimize PCAN send performance (#1640) * Support version string of older PCAN basic API (#1644) From 1a179b5cf58dce78caa7a2fd4847dbe32deb999e Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:17:12 +0200 Subject: [PATCH 05/13] Update CHANGELOG.md Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ca115dc90..fd51a62da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,7 @@ Bug Fixes * Fix Vector channel detection (#1634) * ixxat: Fix exception in 'state' property on bus coupling errors (#1647) * NeoVi: Fixed serial number range (#1650) -* Fix PCAN timestamp (#1651) +* PCAN: Fix timestamp offset due to timezone (#1651) * Fix BLFReader error for incomplete or truncated stream (#1662) * We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666) From 4f72c203894a5e188a5c4a6c9ab3096ca7d40ad5 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:17:21 +0200 Subject: [PATCH 06/13] Update CHANGELOG.md Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd51a62da..a64fce66d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ Features * Add `protocol` property to BusABC to determine active CAN Protocol (#1532) * Add `modifier_callback` parameter to `BusABC.send_periodic` for auto-modifying cyclic tasks (#703) * NeoVi: Enable send and receive on network ID above 255 (#1627) -* Optimize PCAN send performance (#1640) +* PCAN: Optimize send performance (#1640) * Support version string of older PCAN basic API (#1644) * Kvaser: add parameter exclusive and `override_exclusive` (#1660) * Relax BitTiming & BitTimingFd Validation (#1618) From 8f861f972d922f1a1cf44e7d02457e20313309d5 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:17:32 +0200 Subject: [PATCH 07/13] Update CHANGELOG.md Co-authored-by: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a64fce66d..08bcae833 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,7 @@ Breaking Changes Bug Fixes --------- -* Fix Vector channel detection (#1634) +* Vector: channel detection fails, if there is an active flexray channel (#1634) * ixxat: Fix exception in 'state' property on bus coupling errors (#1647) * NeoVi: Fixed serial number range (#1650) * PCAN: Fix timestamp offset due to timezone (#1651) From 238865d44e3c603ee9d992d33d4d8c9a970d43f6 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Sat, 14 Oct 2023 21:22:28 +0200 Subject: [PATCH 08/13] Make requested changes to CHANGELOG, sort by PR ID --- CHANGELOG.md | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 08bcae833..80a145c97 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,40 +12,42 @@ Bug Fixes * NeoVi: Fixed serial number range (#1650) * PCAN: Fix timestamp offset due to timezone (#1651) * Fix BLFReader error for incomplete or truncated stream (#1662) -* We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666) +* Vector: Skip the `can_op_mode check` if the device reports `can_op_mode=0` (#1678) Features -------- +### API +* Add `modifier_callback` parameter to `BusABC.send_periodic` for auto-modifying cyclic tasks (#703) +* Add `protocol` property to BusABC to determine active CAN Protocol (#1532) +* Change Bus constructor implementation and typing (#1557) +* Add `BitTiming.iterate_from_sample_point` static methods (#1671) + ### IO -* Distinguish Text/Binary-IO for Reader/Writer classes. (#1585) * Can Player compatibility with interfaces that use additional configuration (#1610) ### Interface Improvements -* Change Bus constructor implementation and typing (#1557) -* Add `protocol` property to BusABC to determine active CAN Protocol (#1532) -* Add `modifier_callback` parameter to `BusABC.send_periodic` for auto-modifying cyclic tasks (#703) * NeoVi: Enable send and receive on network ID above 255 (#1627) +* Vector: Send HighPriority Message to flush Tx buffer (#1636) * PCAN: Optimize send performance (#1640) * Support version string of older PCAN basic API (#1644) * Kvaser: add parameter exclusive and `override_exclusive` (#1660) -* Relax BitTiming & BitTimingFd Validation (#1618) -* Vector: Send HighPriority Message to flush Tx buffer (#1636) * PCAN: remove Windows registry check to fix 32bit compatibility (#1672) -* Vector: Skip the `can_op_mode check` if the device reports `can_op_mode=0` (#1678) ### Miscellaneous +* Distinguish Text/Binary-IO for Reader/Writer classes. (#1585) * Convert setup.py to pyproject.toml (#1592) * activate ruff pycodestyle checks (#1602) * Update linter instructions in development.rst (#1603) * remove unnecessary script files (#1604) +* Relax BitTiming & BitTimingFd Validation (#1618) * BigEndian test fixes (#1625) +* align `ID:` in can.Message string (#1635) +* Do not stop notifier if exception was handled (#1645) * Use same configuration file as Linux on macOS (#1657) * Catch `pywintypes.error` in broadcast manager (#1659) +* We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666) * Update linters, activate more ruff rules (#1669) -* align `ID:` in can.Message string (#1635) -* Do not stop notifier if exception was handled (#1645) -* Add `BitTiming.iterate_from_sample_point` static methods (#1671) * Add Python 3.12 Support / Test Python 3.12 (#1673) From 2b1c3fa098db55507fabe1b53be15ccf2d887109 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Mon, 16 Oct 2023 10:47:27 +0200 Subject: [PATCH 09/13] Fix remaining comments --- CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80a145c97..64b07dc87 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ Version 4.3.0 Breaking Changes ---------------- * Raise Minimum Python Version to 3.8 (#1597) +* Do not stop notifier if exception was handled (#1645) Bug Fixes --------- @@ -11,7 +12,9 @@ Bug Fixes * ixxat: Fix exception in 'state' property on bus coupling errors (#1647) * NeoVi: Fixed serial number range (#1650) * PCAN: Fix timestamp offset due to timezone (#1651) +* Catch `pywintypes.error` in broadcast manager (#1659) * Fix BLFReader error for incomplete or truncated stream (#1662) +* PCAN: remove Windows registry check to fix 32bit compatibility (#1672) * Vector: Skip the `can_op_mode check` if the device reports `can_op_mode=0` (#1678) Features @@ -21,6 +24,7 @@ Features * Add `modifier_callback` parameter to `BusABC.send_periodic` for auto-modifying cyclic tasks (#703) * Add `protocol` property to BusABC to determine active CAN Protocol (#1532) * Change Bus constructor implementation and typing (#1557) +* Add optional `strict` parameter to relax BitTiming & BitTimingFd Validation (#1618) * Add `BitTiming.iterate_from_sample_point` static methods (#1671) ### IO @@ -30,9 +34,8 @@ Features * NeoVi: Enable send and receive on network ID above 255 (#1627) * Vector: Send HighPriority Message to flush Tx buffer (#1636) * PCAN: Optimize send performance (#1640) -* Support version string of older PCAN basic API (#1644) +* PCAN: Support version string of older PCAN basic API (#1644) * Kvaser: add parameter exclusive and `override_exclusive` (#1660) -* PCAN: remove Windows registry check to fix 32bit compatibility (#1672) ### Miscellaneous * Distinguish Text/Binary-IO for Reader/Writer classes. (#1585) @@ -40,12 +43,9 @@ Features * activate ruff pycodestyle checks (#1602) * Update linter instructions in development.rst (#1603) * remove unnecessary script files (#1604) -* Relax BitTiming & BitTimingFd Validation (#1618) * BigEndian test fixes (#1625) * align `ID:` in can.Message string (#1635) -* Do not stop notifier if exception was handled (#1645) * Use same configuration file as Linux on macOS (#1657) -* Catch `pywintypes.error` in broadcast manager (#1659) * We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666) * Update linters, activate more ruff rules (#1669) * Add Python 3.12 Support / Test Python 3.12 (#1673) From 9510ef3ea0a1430e032482d1131288f16b73e982 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Mon, 16 Oct 2023 12:04:53 +0200 Subject: [PATCH 10/13] Add PR for Kvaser BitTiming support --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64b07dc87..7b1d01838 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ Features * Can Player compatibility with interfaces that use additional configuration (#1610) ### Interface Improvements +* Kvaser: Add BitTiming/BitTimingFd support to KvaserBus (#1510) * NeoVi: Enable send and receive on network ID above 255 (#1627) * Vector: Send HighPriority Message to flush Tx buffer (#1636) * PCAN: Optimize send performance (#1640) From 246f0ae3526cfce0f543e1a2ee552c40aa65581b Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Mon, 16 Oct 2023 22:31:35 +0200 Subject: [PATCH 11/13] add 1679 (bugfix for 1666) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b1d01838..0f0ac3d02 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -47,7 +47,7 @@ Features * BigEndian test fixes (#1625) * align `ID:` in can.Message string (#1635) * Use same configuration file as Linux on macOS (#1657) -* We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666) +* We do not need to account for drift when we `USE_WINDOWS_EVENTS` (#1666, #1679) * Update linters, activate more ruff rules (#1669) * Add Python 3.12 Support / Test Python 3.12 (#1673) From 78ed62dff9b9332c828f6dbd810f40e4f3e23759 Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Tue, 17 Oct 2023 11:34:12 +0200 Subject: [PATCH 12/13] Add PR #1607, change changelog version to 4.3.0rc --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0f0ac3d02..651b222fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -Version 4.3.0 +Version 4.3.0rc0 =========== Breaking Changes @@ -32,6 +32,7 @@ Features ### Interface Improvements * Kvaser: Add BitTiming/BitTimingFd support to KvaserBus (#1510) +* Ixxat: Implement `detect_available_configs` for the Ixxat bus. (#1607) * NeoVi: Enable send and receive on network ID above 255 (#1627) * Vector: Send HighPriority Message to flush Tx buffer (#1636) * PCAN: Optimize send performance (#1640) From e55e7ae69b075954d9a8f55a2c76cc505df64fbb Mon Sep 17 00:00:00 2001 From: Lukas Magel Date: Tue, 17 Oct 2023 11:36:21 +0200 Subject: [PATCH 13/13] Bump project version to 4.3.0rc0 --- can/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/can/__init__.py b/can/__init__.py index 46a461b38..48dda308d 100644 --- a/can/__init__.py +++ b/can/__init__.py @@ -8,7 +8,7 @@ import logging from typing import Any, Dict -__version__ = "4.2.2" +__version__ = "4.3.0rc0" __all__ = [ "ASCReader", "ASCWriter",