Skip to content

Commit

Permalink
Replace pkg_resources with importlib in docs (#1104)
Browse files Browse the repository at this point in the history
  • Loading branch information
eleftherioszisis authored Feb 7, 2024
1 parent 94da0a6 commit e0767a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@

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

VERSION = get_distribution('neurom').version
VERSION = importlib.metadata.version('neurom')

# 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 @@ -77,7 +77,7 @@
# built documents.
#
# The short X.Y version.
version = get_distribution('neurom').version
version = importlib.metadata.version('neurom')
# The full version, including alpha/beta/rc tags.
release = version

Expand Down

0 comments on commit e0767a5

Please sign in to comment.