Skip to content

Commit

Permalink
Merge pull request #86 from zacharyburnett/tomli_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJamieson committed Apr 7, 2023
2 parents 78e60fa + b85f801 commit 4eeb7aa
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import importlib
import stsci_rtd_theme
import sys
import tomli
if sys.version_info < (3, 11):
import tomli as tomllib
else:
import tomllib
from datetime import datetime
from pathlib import Path

Expand All @@ -22,7 +25,7 @@ def setup(app):
# Read the package's `pyproject.toml` so that we can use relevant
# values here:
with open(REPO_ROOT / "pyproject.toml", "rb") as configuration_file:
conf = tomli.load(configuration_file)
conf = tomllib.load(configuration_file)
setup_metadata = conf['project']

project = setup_metadata["name"]
Expand Down

0 comments on commit 4eeb7aa

Please sign in to comment.