Skip to content

Commit

Permalink
docs: bump docutils
Browse files Browse the repository at this point in the history
docs: use `importlib` rather than `pkg_resources`
  • Loading branch information
tsutterley committed Jul 22, 2024
1 parent 879b01f commit 43b006b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion doc/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: is2view-docs
channels:
- conda-forge
dependencies:
- docutils<0.18
- docutils
- graphviz
- ipywidgets
- notebook
Expand Down
13 changes: 6 additions & 7 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,18 @@
# import sys
import datetime
# sys.path.insert(0, os.path.abspath('.'))
from pkg_resources import get_distribution
import importlib.metadata


# -- Project information -----------------------------------------------------

project = 'IS2view'
# package metadata
metadata = importlib.metadata.metadata("IS2view")
project = metadata["Name"]
year = datetime.date.today().year
copyright = f"2022\u2013{year}, Tyler C. Sutterley"
author = 'Tyler Sutterley'
author = 'Tyler C. Sutterley'

# The full version, including alpha/beta/rc tags
# get semantic version from setuptools-scm
version = get_distribution("IS2view").version
version = metadata["version"]
# append "v" before the version
release = f"v{version}"

Expand Down

0 comments on commit 43b006b

Please sign in to comment.