Skip to content

Commit

Permalink
Use qiskit_addon_cutting.__version__ in docs/conf.py (#665)
Browse files Browse the repository at this point in the history
We might as well do this, to make sure it is set properly.

And it fixes an instance of don't-repeat-yourself.
  • Loading branch information
garrison authored Aug 23, 2024
1 parent 25d8e6c commit f71279c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import os
import sys

from importlib.metadata import version as metadata_version
import qiskit_addon_cutting

project = "Circuit Knitting Toolbox"
copyright = "2024" # pylint: disable=redefined-builtin
Expand All @@ -31,7 +31,7 @@
sys.path.insert(0, str(_rootdir))

# The full version, including alpha/beta/rc tags
release = metadata_version("qiskit-addon-cutting")
release = qiskit_addon_cutting.__version__
# The short X.Y version
version = ".".join(release.split(".")[:2])

Expand Down

0 comments on commit f71279c

Please sign in to comment.