Skip to content

Commit

Permalink
use importlib.metadata instead of pkg_resources in docs conf
Browse files Browse the repository at this point in the history
  • Loading branch information
braingram committed Sep 19, 2023
1 parent 3e318ea commit f1b2fba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
# http://www.sphinx-doc.org/en/master/config

import datetime
import importlib.metadata
import sys
from pathlib import Path

import tomli
from pkg_resources import get_distribution

# -- Project information -----------------------------------------------------
try:
Expand All @@ -33,7 +33,7 @@
version = readme.readline().split(" ")[-1]

# The full version, including alpha/beta/rc tags
release = get_distribution(configuration["name"]).version
release = importlib.metadata.version(configuration["name"])

intersphinx_mapping["asdf"] = ("https://asdf.readthedocs.io/en/latest/", None) # noqa: F405

Expand Down

0 comments on commit f1b2fba

Please sign in to comment.