Skip to content

Commit

Permalink
Fix version
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Feb 3, 2024
1 parent 77de10e commit 46de4b1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@

# The full version, including alpha/beta/rc tags.
release = transonic.__version__
if "+" in release:
release = release.split("+")[0]
# The short X.Y version.
version = release.split(".")
version = "{}.{}.{}".format(version[0], version[1], version[2])
Expand Down
4 changes: 3 additions & 1 deletion src/transonic/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
__version__ = "0.5.3"
from importlib import metadata

__version__ = metadata.version(__package__)

try:
from pyfiglet import figlet_format
Expand Down

0 comments on commit 46de4b1

Please sign in to comment.