Skip to content

Commit

Permalink
Update to importlib.metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
scasagrande committed Jan 25, 2022
1 parent 23ced6a commit 7d08e43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

from pkg_resources import get_distribution
from importlib.metadata import version
import os
import sys

Expand Down Expand Up @@ -56,7 +56,7 @@
# built documents.
#
# The full release version
release = get_distribution("instruments").version
release = version("instruments")
# The short X.Y version
version = ".".join(release.split(".")[:2])

Expand Down

0 comments on commit 7d08e43

Please sign in to comment.