From f608d43bc2a303c48a48f2085cae3fe1da1e990f Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Sun, 7 Aug 2022 14:10:12 +0200 Subject: [PATCH 1/6] update CHANGELOG.md --- CHANGELOG.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 86612f9b9..19e3a77d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,34 @@ +Version 4.1.0 (WIP) +==== + +Bug Fixes +--------- + +* Fix BLF timestamp conversion (#1266, #1273) +* Fix channel2int conversion (#1268, #1269) +* Fix failure to initiate the Neousys DLL (#1281) +* Fix AttributeError in IscanError (#1292, #1293) +* Add missing vector devices (#1296) +* Fix timestamp handling in udp_multicast on macOS (#1275, #1278) +* Set default mode for FileIOMessageWriter to wt instead of rt (#1303) +* Fix fileno error on Windows (#1312, #1313, #1333) +* Remove redundant ``writer.stop()`` call that throws error (#1316, #1317) +* Fix error for DLC > 8 in ASCReader (#1299, #1301) +* Detect and cast types of CLI ``extra_args`` (#1280, #1328) + +Features +-------- + +* Add direction support to canutils logger (#1244) +* Use common CAN interface names in canutils logfile (#1271) +* Improve gs_usb usability and fix loopback frames (#1270) +* Add ``-a, --append`` option to logger CLI API (#1326, #1327, #1361) +* Allow ICSApiError to be pickled and un-pickled (#1341) +* Sort interface names in CLI API to make documentation reproducible (#1342) +* Exclude repository-configuration from git-archive (#1343) +* Add device_id parameter to PcanBus constructor (#1346) +* Find USB2CAN Serial Number by USB Name (#1129) + Version 4.0.0 ==== From 5c90438a3d0fa02b72de9075938cd007026320bd Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Mon, 8 Aug 2022 17:49:37 +0200 Subject: [PATCH 2/6] add 1344 to features --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 19e3a77d2..615cda5a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ Features * Allow ICSApiError to be pickled and un-pickled (#1341) * Sort interface names in CLI API to make documentation reproducible (#1342) * Exclude repository-configuration from git-archive (#1343) +* Add py.typed file for PEP 561 compliance (#1344) * Add device_id parameter to PcanBus constructor (#1346) * Find USB2CAN Serial Number by USB Name (#1129) From ea31e881a2fa1af0ac43d47e794f0efab6a31611 Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Mon, 15 Aug 2022 23:33:31 +0200 Subject: [PATCH 3/6] update CHANGELOG.md --- CHANGELOG.md | 65 +++++++++++++++++++++++++++++++++++----------------- 1 file changed, 44 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 615cda5a6..bcf2a2a46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,34 +1,57 @@ Version 4.1.0 (WIP) ==== +Features +-------- + +### IO + +* The canutils logger preserves message direction (#1244) + and uses common interface names (e.g. can0) instead of just + channel numbers (#1271). +* The ``can.logger`` script accepts the ``-a, --append`` option + to add new data to an existing log file (#1326, #1327, #1361). + Currently only the blf-, canutils- and csv-formats are supported. +* All CLI ``extra_args`` are passed to the bus, logger + and player initialisation (#1366). + +### Type Annotations +* python-can now includes the ``py.typed`` marker to support type checking + according to PEP 561 (#1344). + +### Interface Improvements +* The gs_usb interface can be selected by device index instead + of USB bus/address. Loopback frames are now correctly marked + with the ``is_rx`` flag (#1270). +* The PCAN interface can be selected by its device ID instead + of just the channel name (#1346). +* The PCAN Bus implementation supports auto bus-off reset (#1345). + Bug Fixes --------- -* Fix BLF timestamp conversion (#1266, #1273) -* Fix channel2int conversion (#1268, #1269) -* Fix failure to initiate the Neousys DLL (#1281) -* Fix AttributeError in IscanError (#1292, #1293) -* Add missing vector devices (#1296) -* Fix timestamp handling in udp_multicast on macOS (#1275, #1278) -* Set default mode for FileIOMessageWriter to wt instead of rt (#1303) -* Fix fileno error on Windows (#1312, #1313, #1333) -* Remove redundant ``writer.stop()`` call that throws error (#1316, #1317) -* Fix error for DLC > 8 in ASCReader (#1299, #1301) -* Detect and cast types of CLI ``extra_args`` (#1280, #1328) - -Features --------- +* Improve robustness of USB2CAN serial number detection (#1129). +* Fix channel2int conversion (#1268, #1269). +* Fix BLF timestamp conversion (#1266, #1273). +* Fix timestamp handling in udp_multicast on macOS (#1275, #1278). +* Fix failure to initiate the Neousys DLL (#1281). +* Fix AttributeError in IscanError (#1292, #1293). +* Add missing vector devices (#1296). +* Fix error for DLC > 8 in ASCReader (#1299, #1301). +* Set default mode for FileIOMessageWriter to wt instead of rt (#1303). +* Fix conversion for port number from config file (#1309). +* Fix fileno error on Windows (#1312, #1313, #1333). +* Remove redundant ``writer.stop()`` call that throws error (#1316, #1317). +* Detect and cast types of CLI ``extra_args`` (#1280, #1328). +* Fix ASC/CANoe incompatibility due to timestamp format (#1315, #1362). +* Fix MessageSync timings (#1372, #1374). + +Miscellaneous +------------- -* Add direction support to canutils logger (#1244) -* Use common CAN interface names in canutils logfile (#1271) -* Improve gs_usb usability and fix loopback frames (#1270) -* Add ``-a, --append`` option to logger CLI API (#1326, #1327, #1361) * Allow ICSApiError to be pickled and un-pickled (#1341) * Sort interface names in CLI API to make documentation reproducible (#1342) * Exclude repository-configuration from git-archive (#1343) -* Add py.typed file for PEP 561 compliance (#1344) -* Add device_id parameter to PcanBus constructor (#1346) -* Find USB2CAN Serial Number by USB Name (#1129) Version 4.0.0 ==== From 023be941858012b8d9219809f752f51afa938796 Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Mon, 31 Oct 2022 17:37:13 +0100 Subject: [PATCH 4/6] update CHANGELOG.md --- CHANGELOG.md | 19 ++++++++++++++++++- can/__init__.py | 2 +- 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bcf2a2a46..f0e384a91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -Version 4.1.0 (WIP) +Version 4.1.0 ==== Features @@ -26,6 +26,11 @@ Features * The PCAN interface can be selected by its device ID instead of just the channel name (#1346). * The PCAN Bus implementation supports auto bus-off reset (#1345). +* SocketCAN: Make ``find_available_interfaces()`` find slcanX interfaces (#1369). +* Vector: Add xlGetReceiveQueueLevel, xlGenerateSyncPulse and + xlFlushReceiveQueue to xldriver (#1387). +* Vector: Raise a CanInitializationError, if the CAN settings can not + be applied according to the arguments of ``VectorBus.__init__`` (#1426). Bug Fixes --------- @@ -45,6 +50,7 @@ Bug Fixes * Detect and cast types of CLI ``extra_args`` (#1280, #1328). * Fix ASC/CANoe incompatibility due to timestamp format (#1315, #1362). * Fix MessageSync timings (#1372, #1374). +* Fix file name for compressed files in SizedRotatingLogger (#1382, #1683). Miscellaneous ------------- @@ -52,6 +58,17 @@ Miscellaneous * Allow ICSApiError to be pickled and un-pickled (#1341) * Sort interface names in CLI API to make documentation reproducible (#1342) * Exclude repository-configuration from git-archive (#1343) +* Improve documentation (#1397, #1401, #1405, #1420, #1421) +* Officially support Python 3.11 (#1423) + +Breaking Changes +---------------- + +* ``windows-curses`` was moved to optional dependencies (#1395). + Use ``pip install python-can[viewer]`` if you are using the ``can.viewer`` + script on Windows. +* The attributes of ``can.interfaces.vector.VectorChannelConfig`` were renamed + from camelCase to snake_case (#1422). Version 4.0.0 ==== diff --git a/can/__init__.py b/can/__init__.py index 2a0b805ac..18d226867 100644 --- a/can/__init__.py +++ b/can/__init__.py @@ -8,7 +8,7 @@ import logging from typing import Dict, Any -__version__ = "4.0.0" +__version__ = "4.1.0.dev0" log = logging.getLogger("can") From df1d18be6957002c24f855e92698a5bf2e4323cf Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Sun, 13 Nov 2022 18:43:09 +0100 Subject: [PATCH 5/6] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index f0e384a91..7df885a96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,6 +51,7 @@ Bug Fixes * Fix ASC/CANoe incompatibility due to timestamp format (#1315, #1362). * Fix MessageSync timings (#1372, #1374). * Fix file name for compressed files in SizedRotatingLogger (#1382, #1683). +* Fix memory leak in neoVI bus where message_receipts grows with no limit (#1427). Miscellaneous ------------- From 48ead6e412b76a999d40590507d7a10f482acc25 Mon Sep 17 00:00:00 2001 From: zariiii9003 <52598363+zariiii9003@users.noreply.github.com> Date: Sun, 13 Nov 2022 19:53:36 +0100 Subject: [PATCH 6/6] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7df885a96..1f10e2b78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,7 @@ Bug Fixes * Fix MessageSync timings (#1372, #1374). * Fix file name for compressed files in SizedRotatingLogger (#1382, #1683). * Fix memory leak in neoVI bus where message_receipts grows with no limit (#1427). +* Raise ValueError if gzip is used with incompatible log formats (#1429). Miscellaneous -------------