Skip to content

Commit

Permalink
Fix version in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhollas committed Nov 25, 2024
1 parent fcf3ec3 commit 25d2bb8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@
# serve to show the default.

import contextlib
import importlib.metadata
import os
import sys
import time

import aiida_test_cache

# -- AiiDA-related setup --------------------------------------------------

# If extensions (or modules to document with autodoc) are in another directory,
Expand Down Expand Up @@ -76,7 +75,7 @@
# built documents.
#
# The full version, including alpha/beta/rc tags.
release = aiida_test_cache.__version__
release = importlib.metadata.version('aiida_test_cache')
# The short X.Y version.
version = '.'.join(release.split('.')[:2])

Expand Down

0 comments on commit 25d2bb8

Please sign in to comment.