Skip to content

Commit 4046d33

Browse files
committed
Remove pkg_resources dependency and bump patch version number
1 parent 56ef251 commit 4046d33

3 files changed

Lines changed: 6 additions & 15 deletions

File tree

CHANGELOG.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
Version 3.3.4
2+
====
3+
4+
Removed the pkg_resources dependency by removing checks for the can.interface entry point
5+
16
Version 3.3.3
27
====
38

pycan/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import logging
88

9-
__version__ = "3.3.3"
9+
__version__ = "3.3.4"
1010

1111
log = logging.getLogger('pycan')
1212

pycan/interfaces/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
Interfaces 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)
107
BACKENDS = {
@@ -24,15 +21,4 @@
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-
3824
VALID_INTERFACES = frozenset(list(BACKENDS.keys()) + ['socketcan_native', 'socketcan_ctypes'])

0 commit comments

Comments
 (0)