Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
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
Loading