diff --git a/pyproject.toml b/pyproject.toml index 70517e0a6..64bb12b55 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -25,7 +25,6 @@ dependencies = [ "sphinx>=5", "beautifulsoup4", "docutils!=0.17.0", - "packaging", "Babel", "pygments>=2.7", "accessible-pygments", diff --git a/src/pydata_sphinx_theme/translator.py b/src/pydata_sphinx_theme/translator.py index ba715ab43..fba25ef52 100644 --- a/src/pydata_sphinx_theme/translator.py +++ b/src/pydata_sphinx_theme/translator.py @@ -2,8 +2,6 @@ import types -import sphinx -from packaging.version import Version from sphinx.application import Sphinx from sphinx.ext.autosummary import autosummary_table from sphinx.util import logging @@ -40,10 +38,7 @@ def visit_table(self, node): # init the attributes atts = {} - if Version(sphinx.__version__) < Version("4.3"): - self._table_row_index = 0 - else: - self._table_row_indices.append(0) + self._table_row_indices.append(0) # get the classes classes = [cls.strip(" \t\n") for cls in self.settings.table_style.split(",")]