Skip to content

Commit

Permalink
Documentation: building docs conf.py conditionally import deprecated …
Browse files Browse the repository at this point in the history
…read_configuration function
  • Loading branch information
henryborchers committed Oct 6, 2023
1 parent c067f46 commit 333f02c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,12 @@
import sys

import re
from setuptools.config import read_configuration

try:
from setuptools.config.setupcfg import read_configuration
except ModuleNotFoundError:
from setuptools.config import read_configuration

sys.path.insert(0, os.path.abspath('../..'))

# metadata = dict()
Expand Down

0 comments on commit 333f02c

Please sign in to comment.