Skip to content

Commit 16cc4ac

Browse files
committed
Switch from pkg_resources to importlib
Assisted-by: Codex.app:GPT-5.4
1 parent 2cdd6aa commit 16cc4ac

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,7 @@ dmypy.json
131131

132132
# Pyre type checker
133133
.pyre/
134+
135+
# pixi environments
136+
.pixi
137+
*.egg-info

docs/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@
2121
make_param_main(f)
2222

2323
# -- Project information -----------------------------------------------------
24-
import pkg_resources
24+
import importlib.metadata
2525
import packaging.version
2626

2727
project = 'OpenPathSampling CLI'
2828
copyright = '2019-2022, David W.H. Swenson and contributors'
2929
author = 'David W.H. Swenson'
3030

3131
# The full version, including alpha/beta/rc tags
32-
release = pkg_resources.get_distribution('openpathsampling-cli').version
32+
release = importlib.metadata.version('openpathsampling-cli')
3333
version = packaging.version.Version(release).base_version
3434

3535
master_doc = 'index'

0 commit comments

Comments
 (0)