Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: remove packaing as a dependency #1939

Merged
merged 1 commit into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
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
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
Loading