canonical / charms.reactive

Framework for developing charms and relations using the reactive pattern
Apache License 2.0
22 stars 34 forks source link

Fix 'EntryPoints' object has no attribute 'get' #251

Closed hloeung closed 2 months ago

hloeung commented 6 months ago

Fixes https://github.com/juju-solutions/charms.reactive/issues/237:

.tox/unit/lib/python3.12/site-packages/charms/reactive/__init__.py:21: in <module>
    from .relations import *  # noqa
.tox/unit/lib/python3.12/site-packages/charms/reactive/relations.py:944: in <module>
    RelationFactory.discover()
.tox/unit/lib/python3.12/site-packages/charms/reactive/relations.py:125: in discover
    for ep in entry_points().get('charms.reactive.relation_factory', []):
E   AttributeError: 'EntryPoints' object has no attribute 'get'
wolsen commented 2 months ago

@hloeung considering this was fixed in #260, I'm going to close this out in favor of that PR since its already merged.