Chris Trenthem commited on
Commit
91e75a3
·
1 Parent(s): 20ec218

fix to documentation merge

Browse files
Files changed (1) hide show
  1. docs/conf.py +4 -1
docs/conf.py CHANGED
@@ -57,7 +57,10 @@ author = "Nidhal Baccouri"
57
  # the built documents.
58
  #
59
  # The short X.Y version.
60
- version = '1.5.1-pre1'
 
 
 
61
  # The full version, including alpha/beta/rc tags.
62
  # release = deep_translator.__version__
63
 
 
57
  # the built documents.
58
  #
59
  # The short X.Y version.
60
+ import toml
61
+ with open("pyproject.toml", "r") as f:
62
+ tom = toml.load(f)
63
+ version = tom['tool']['poetry']['version']
64
  # The full version, including alpha/beta/rc tags.
65
  # release = deep_translator.__version__
66