Skip to content

Commit

Permalink
remove pkg_resources, use importlib (#62)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeplf authored Feb 7, 2024
1 parent 67d273c commit a671f1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions atlas_densities/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_densities").version
VERSION = importlib.metadata.version("atlas_densities")
5 changes: 2 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +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,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -52,7 +51,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 a671f1c

Please sign in to comment.