Skip to content
This repository has been archived by the owner on Feb 26, 2025. It is now read-only.

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace pkg_resources with importlib in docs
Browse files Browse the repository at this point in the history
eleftherioszisis committed Feb 7, 2024
1 parent 94da0a6 commit 78dbba3
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
@@ -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
@@ -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

0 comments on commit 78dbba3

Please sign in to comment.