Bump sphinx min version

This allows us to remove some conditional logic.

Change-Id: Ie4ced37286bfbabab6a7e451b8cc7a53e8941a41
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
This commit is contained in:
Stephen Finucane
2026-01-09 16:14:23 +00:00
parent f66ef5f741
commit 08bca60eee
2 changed files with 2 additions and 10 deletions

View File

@@ -16,7 +16,6 @@ import os.path
import subprocess
import time
import sphinx
from sphinx.util import logging
from . import version
@@ -82,14 +81,7 @@ def _get_last_updated(app, pagename):
# Strip the prefix from the filename so the git command recognizes
# the file as part of the current repository.
# NOTE(sean-k-mooney): on python 3.9 we clamp sphinx to <8
# app.builder.env.srcdir is a string on py39
if sphinx.version_info >= (8, 0):
src_file = str(full_src_file.relative_to(app.builder.env.srcdir))
else: # Sphinx < 8.0
src_file = full_src_file[len(str(app.builder.env.srcdir)) :].lstrip(
'/'
)
src_file = str(full_src_file.relative_to(app.builder.env.srcdir))
candidates.append(src_file)
if not os.path.exists(src_file):

View File

@@ -1,3 +1,3 @@
pbr!=2.1.0,>=2.0.0 # Apache-2.0
dulwich>=0.15.0 # Apache-2.0
sphinx>=6.0.0 # BSD
sphinx>=8.0.0 # BSD