Skip to content

Commit

Permalink
Merge pull request #3119 from getpelican/remove-pkg_resources
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer authored Oct 28, 2023
2 parents 91d9ef7 + 865f7b1 commit 6a623ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pelican/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import argparse
import importlib.metadata
import json
import logging
import multiprocessing
Expand Down Expand Up @@ -30,8 +31,7 @@
from pelican.writers import Writer

try:
__version__ = __import__('pkg_resources') \
.get_distribution('pelican').version
__version__ = importlib.metadata.version("pelican")
except Exception:
__version__ = "unknown"

Expand Down

0 comments on commit 6a623ba

Please sign in to comment.