From 5bdd05a69d0111ae68a4eb821dd1ff668bbcacb1 Mon Sep 17 00:00:00 2001 From: itzzdev09 Date: Tue, 24 Nov 2026 04:22:10 +0530 Subject: [PATCH] Drop pkg_resources --- docs/conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ---------------------------------------------------