From fe1160223d6f443851f6abc30dd1dece40ec5bd8 Mon Sep 17 00:00:00 2001 From: Martin Larralde Date: Thu, 9 Jan 2025 20:57:59 +0100 Subject: [PATCH] Add missing Sphinx dependency to `pyproject.toml` --- pyproject.toml | 3 +++ sphinxcontrib/svgbob/tests/test_sphinx.py | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 1667df2..37086be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,6 +32,9 @@ classifiers = [ "Topic :: Text Processing", "Typing :: Typed", ] +dependencies = [ + "sphinx" +] [project.urls] "Bug Tracker" = "https://github.com/sphinx-contrib/svgbob/issues" diff --git a/sphinxcontrib/svgbob/tests/test_sphinx.py b/sphinxcontrib/svgbob/tests/test_sphinx.py index 1433494..2351aaf 100644 --- a/sphinxcontrib/svgbob/tests/test_sphinx.py +++ b/sphinxcontrib/svgbob/tests/test_sphinx.py @@ -4,14 +4,10 @@ import textwrap import unittest -try: - import sphinx.cmd.build - import sphinx.cmd.quickstart -except ImportError: - sphinx = None +import sphinx.cmd.build +import sphinx.cmd.quickstart -@unittest.skipUnless(sphinx, "Sphinx not available") class TestSphinx(unittest.TestCase): @classmethod