We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af4d170 commit 8a3a662Copy full SHA for 8a3a662
docs/requirements.txt
@@ -1,3 +1,4 @@
1
sphinx
2
recommonmark
3
pandoc
4
+importlib-metadata
docs/source/conf.py
@@ -15,7 +15,7 @@
15
# sys.path.insert(0, os.path.abspath('.'))
16
import datetime
17
18
-import pkg_resources
+from importlib.metadata import version as package_version
19
20
# The master toctree document.
21
master_doc = "index"
@@ -25,7 +25,7 @@
25
26
project = "bmi-topography"
27
author = "Community Surface Dynamics Modeling System"
28
-version = pkg_resources.get_distribution("bmi_topography").version
+version = package_version("bmi_topography")
29
release = version
30
this_year = datetime.date.today().year
31
copyright = f"{this_year}, {author}"
0 commit comments