Skip to content

Commit

Permalink
MAINT: remove packaing as a dependency
Browse files Browse the repository at this point in the history
It was only used to compared the version of sphinxm to 4.3, but we
anyway require sphinx to be greater then 5 in pyprojet.toml, so it is
dead code and unsused dependency.
  • Loading branch information
Carreau committed Jul 25, 2024
1 parent 22ee6af commit b1de74d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ dependencies = [
"sphinx>=5",
"beautifulsoup4",
"docutils!=0.17.0",
"packaging",
"Babel",
"pygments>=2.7",
"accessible-pygments",
Expand Down
7 changes: 1 addition & 6 deletions src/pydata_sphinx_theme/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(",")]
Expand Down

0 comments on commit b1de74d

Please sign in to comment.