File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Version 3.3.4
2+ ====
3+
4+ Removed the pkg_resources dependency by removing checks for the can.interface entry point
5+
16Version 3.3.3
27====
38
Original file line number Diff line number Diff line change 66
77import logging
88
9- __version__ = "3.3.3 "
9+ __version__ = "3.3.4 "
1010
1111log = logging .getLogger ('pycan' )
1212
Original file line number Diff line number Diff line change 22Interfaces contain low level implementations that interact with CAN hardware.
33"""
44
5- import warnings
6- from pkg_resources import iter_entry_points
7-
85
96# interface_name => (module, classname)
107BACKENDS = {
2421 'systec' : ('pycan.interfaces.systec' , 'UcanBus' )
2522}
2623
27- BACKENDS .update ({
28- interface .name : (interface .module_name , interface .attrs [0 ])
29- for interface in iter_entry_points ('pycan.interface' )
30- })
31-
32- # Old entry point name. May be removed >3.0.
33- for interface in iter_entry_points ('python_can.interface' ):
34- BACKENDS [interface .name ] = (interface .module_name , interface .attrs [0 ])
35- warnings .warn ('{} is using the deprecated python_can.interface entry point. ' .format (interface .name ) +
36- 'Please change to pycan.interface instead.' , DeprecationWarning )
37-
3824VALID_INTERFACES = frozenset (list (BACKENDS .keys ()) + ['socketcan_native' , 'socketcan_ctypes' ])
You can’t perform that action at this time.
0 commit comments