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

Replace pkg_resources with importlib in docs #1104

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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