Skip to content

Commit

Permalink
remove pkg_resources, use importlib
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf committed Feb 7, 2024
1 parent 3814b2a commit a20f2aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions atlas_direction_vectors/version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""version"""
from pkg_resources import get_distribution # type: ignore
import importlib.metadata

VERSION = get_distribution("atlas_direction_vectors").version
VERSION = importlib.metadata.version("atlas_direction_vectors")
4 changes: 2 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import os
import sys

from pkg_resources import get_distribution
import importlib.metadata


# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -52,7 +52,7 @@
# built documents.
#
# The short X.Y version.
version = get_distribution(project).version
version = importlib.metadata.version(project)
# The full version, including alpha/beta/rc tags.
release = version

Expand Down

0 comments on commit a20f2aa

Please sign in to comment.