diff --git a/docs/conf.py b/docs/conf.py index c060174..060906b 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -19,7 +19,7 @@ import subprocess import sys -import pkg_resources +from importlib.metadata import version as _dist_version GH_ORGANIZATION = "treasure-data" GH_PROJECT = "td-client-python" @@ -81,7 +81,7 @@ def linkcode_resolve(domain, info): author = "Arm Treasure Data" # The full version, including alpha/beta/rc tags -release = pkg_resources.get_distribution(PACKAGE).version +release = _dist_version(PACKAGE) # -- General configuration ---------------------------------------------------