commit | 84a71e9ce9bdcd1932f3c851ca4348a989eb2160 | [log] [tgz] |
---|---|---|
author | Zack Williams <zdw@opennetworking.org> | Fri Nov 15 09:00:19 2019 -0700 |
committer | Zack Williams <zdw@opennetworking.org> | Tue Nov 19 07:31:59 2019 -0700 |
tree | 8e49c3c13dbd1718abe67cc6a6debf19236bfc06 | |
parent | a4d0bdeb4ad41ff58f4928dc948272662e7c230e [diff] |
[VOL-2241] Python 3 refactor of pyvoltha Majority of work was manual fixes to bytes and strings types, which are different in py3, but same in py2. As the OMCI library does a lot of these comparisons and scapy then renders packets, this was frequently nontrival to debug. Also: - Removed grpc dep which wasn't being used, not py3 compatible - s/Alarms/Events/ to work with protobuf changes per VOL-2224 - Automatic fixes via modernize tooling - Removed unused OrderedWeakValueDict code - Removed frameio send_frame specific to Darwin (MacOS), which had no corresponding linux code - Use library functions for hex and unicode conversions - Various other cleanups and fixes (EOL whitespace, etc.) Also more (Matt): - handle stringify better, check if already string - use binary string for binary work - import new thread paths - update requirements.txt for newer libraries needed with newer python - return proper tuple for unpacking - bytes string formatting fixed - fix mock task unit test Even more (Zack): - Python 2/3 compat for _thread by using 'future' - Bump version to 2.3.0 Change-Id: I53b596d374a944bfb80d0b112f21bcc1f8bcee6e