at 23.05-pre 1.5 kB view raw
1From 75baa1751973378cb96fb204b0a18a74e5caa2d1 Mon Sep 17 00:00:00 2001 2From: Rouven Czerwinski <r.czerwinski@pengutronix.de> 3Date: Wed, 17 Feb 2021 14:03:20 +0100 4Subject: [PATCH] serialdriver: remove pyserial version check 5 6This check isn't required on NixOS, since pyserial within NixOS already 7contains the patches. 8 9Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de> 10--- 11 labgrid/driver/serialdriver.py | 6 ------ 12 1 file changed, 6 deletions(-) 13 14diff --git a/labgrid/driver/serialdriver.py b/labgrid/driver/serialdriver.py 15index 126f674e..59a92269 100644 16--- a/labgrid/driver/serialdriver.py 17+++ b/labgrid/driver/serialdriver.py 18@@ -27,12 +27,6 @@ class SerialDriver(ConsoleExpectMixin, Driver, ConsoleProtocol): 19 bindings = {"port": "SerialPort", } 20 else: 21 bindings = {"port": {"SerialPort", "NetworkSerialPort"}, } 22- if version.parse(serial.__version__) != version.Version('3.4.0.1'): 23- message = ("The installed pyserial version does not contain important RFC2217 fixes.\n" 24- "You can install the labgrid fork via:\n" 25- "pip uninstall pyserial\n" 26- "pip install https://github.com/labgrid-project/pyserial/archive/v3.4.0.1.zip#egg=pyserial\n") # pylint: disable=line-too-long 27- warnings.warn(message) 28 29 txdelay = attr.ib(default=0.0, validator=attr.validators.instance_of(float)) 30 timeout = attr.ib(default=3.0, validator=attr.validators.instance_of(float)) 31-- 322.30.0 33