File tree 1 file changed +3
-5
lines changed
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 52
52
)
53
53
54
54
try :
55
- _distribution_name = __name__
56
55
__version__ = importlib_metadata .version (__name__ )
57
56
except Exception :
58
- _distribution_name = "ibis-framework"
59
- __version__ = importlib_metadata .version (_distribution_name )
57
+ __version__ = importlib_metadata .version ("ibis-framework" )
60
58
61
59
62
60
def __getattr__ (name : str ) -> BaseBackend :
@@ -74,10 +72,10 @@ def __getattr__(name: str) -> BaseBackend:
74
72
the `ibis.backends` entrypoints. If successful, the `ibis.sqlite`
75
73
attribute is "cached", so this function is only called the first time.
76
74
"""
77
- distribution = importlib_metadata .distribution ( _distribution_name )
75
+ ibis_entry_points = importlib_metadata .entry_points ()[ "ibis.backends" ]
78
76
entry_points = [
79
77
entry_point
80
- for entry_point in distribution . entry_points
78
+ for entry_point in ibis_entry_points
81
79
if name == entry_point .name
82
80
]
83
81
You can’t perform that action at this time.
0 commit comments