Skip to content

Commit

Permalink
docs: Derive package version automatically (#170)
Browse files Browse the repository at this point in the history
* Derive package version automatically

* Formatting
  • Loading branch information
daniel-mills-cqc authored Nov 29, 2024
1 parent 4fae192 commit 0d025fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))

import pkg_resources

# -- Project information -----------------------------------------------------

Expand All @@ -22,9 +23,9 @@
author = "Quantinuum"

# The short X.Y version
version = "0.5.0"
version = str(pkg_resources.get_distribution("Qermit").version)
# The full version, including alpha/beta/rc tags
release = "0.5.0"
release = str(pkg_resources.get_distribution("Qermit").version)


# -- General configuration ---------------------------------------------------
Expand Down

0 comments on commit 0d025fb

Please sign in to comment.