From 16cc4ac771310262cf349e66785a68a051365979 Mon Sep 17 00:00:00 2001 From: "David W.H. Swenson" Date: Mon, 11 May 2026 11:07:02 +0200 Subject: [PATCH] Switch from pkg_resources to importlib Assisted-by: Codex.app:GPT-5.4 --- .gitignore | 4 ++++ docs/conf.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 673695f9..e6cc3f32 100644 --- a/.gitignore +++ b/.gitignore @@ -131,3 +131,7 @@ dmypy.json # Pyre type checker .pyre/ + +# pixi environments +.pixi +*.egg-info diff --git a/docs/conf.py b/docs/conf.py index 866f3013..24f8d48c 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -21,7 +21,7 @@ make_param_main(f) # -- Project information ----------------------------------------------------- -import pkg_resources +import importlib.metadata import packaging.version project = 'OpenPathSampling CLI' @@ -29,7 +29,7 @@ author = 'David W.H. Swenson' # The full version, including alpha/beta/rc tags -release = pkg_resources.get_distribution('openpathsampling-cli').version +release = importlib.metadata.version('openpathsampling-cli') version = packaging.version.Version(release).base_version master_doc = 'index'