Skip to content

Commit

Permalink
build: replace pkg_resources with importlib.metadata
Browse files Browse the repository at this point in the history
pkg_resources is now deprecated
  • Loading branch information
jtpavlock committed Apr 7, 2024
1 parent 4dbfdc5 commit 3a19664
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moe_musicbrainz/mb_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

import datetime
import importlib.metadata
import logging
from pathlib import Path
from typing import Any, Callable, Optional, cast
Expand All @@ -14,7 +15,6 @@
import mediafile
import moe
import musicbrainzngs
import pkg_resources
from moe import config
from moe.library import Album, LibItem, MetaAlbum, MetaTrack, Track
from moe.moe_import import CandidateAlbum
Expand Down Expand Up @@ -44,7 +44,7 @@ class MBAuthError(Exception):

musicbrainzngs.set_useragent(
"moe",
pkg_resources.get_distribution("moe").version,
importlib.metadata.version("moe"),
contact="https://mrmoe.readthedocs.io/en/latest/index.html",
)

Expand Down

0 comments on commit 3a19664

Please sign in to comment.