Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions bagit.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
from functools import partial
from os.path import abspath, isdir, isfile, join

from pkg_resources import DistributionNotFound, get_distribution
from importlib.metadata import version

try:
from urllib.parse import urlparse
Expand All @@ -48,9 +48,8 @@ def find_locale_dir():

LOGGER = logging.getLogger(MODULE_NAME)

try:
VERSION = get_distribution(MODULE_NAME).version
except DistributionNotFound:
VERSION = version(MODULE_NAME)
if not VERSION:
VERSION = "0.0.dev0"

PROJECT_URL = "https://github.com/LibraryOfCongress/bagit-python"
Expand Down