diff --git a/docs/conf.py b/docs/conf.py index b1a5a43..dfa5610 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -16,6 +16,7 @@ import os import sys +from importlib import metadata sys.path.insert(0, os.path.abspath("..")) @@ -51,9 +52,9 @@ copyright = "2013, Oleg Pidsadnyi" # built documents. # # The short X.Y version. -version = pytest_bdd.__version__ +version = metadata.version("pytest-factoryboy") # The full version, including alpha/beta/rc tags. -release = pytest_bdd.__version__ +release = version # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages.