Skip to content

Commit

Permalink
Replace deprecated pkg_resources.get_distribution by importlib.metadata
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Sep 8, 2023
1 parent 2ee00bf commit c24f809
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pylxd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
# License for the specific language governing permissions and limitations
# under the License.

from pkg_resources import get_distribution
from importlib.metadata import version

from pylxd.client import Client, EventType

__all__ = ["Client", "EventType"]

__version__ = get_distribution("pylxd").version
__version__ = version("pylxd")

0 comments on commit c24f809

Please sign in to comment.