Skip to content

Commit

Permalink
doc/conf.py: fix after move to nitime/_version.py.
Browse files Browse the repository at this point in the history
Since introduction of nitime/_version.py through the move to
pyproject.toml, the sphinx documentation configuration script does not
seem to have followed.  Use of the former variables are causing a
variety of errors when trying to rebuild the documentation.  Adjusting
to the new set of variables from nitime/_version.py fixes that.

Signed-off-by: Étienne Mollier <[email protected]>
  • Loading branch information
emollier committed Dec 14, 2023
1 parent 1dc1d22 commit 96e80d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@
# We read the version info from the source file.
ver = {}

ver_file = os.path.join('..', 'nitime', 'version.py')
ver_file = os.path.join('..', 'nitime', '_version.py')
with open(ver_file) as f:
exec(f.read())

# The short X.Y version.
version = '%s.%s' % (_version_major, _version_minor)
version = '%s.%s' % (version_tuple[0], version_tuple[1])
# The full version, including alpha/beta/rc tags.
release = __version__

Expand Down

0 comments on commit 96e80d0

Please sign in to comment.