Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@
import datetime
import os
import sys

import pkg_resources
from importlib.metadata import version as get_version


# If your extensions are in another directory, add it here. If the directory
Expand All @@ -39,7 +38,7 @@
# General configuration
# ---------------------

rqmt = pkg_resources.require('ZODB')[0]
version_str = get_version('ZODB')

# Add any Sphinx extension module names here as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
Expand Down Expand Up @@ -73,7 +72,7 @@
# built documents.
#
# The short X.Y version.
version = '%s.%s' % tuple(map(int, rqmt.version.split('.')[:2]))
version = '%s.%s' % tuple(map(int, version_str.split('.')[:2]))
# The full version, including alpha/beta/rc tags.
# release = '3.10.3'

Expand Down
Loading