From b9487b6b6d4e36d2e869e62366e41c4bfec69d6a Mon Sep 17 00:00:00 2001 From: Adam Fourney Date: Fri, 28 Feb 2025 16:57:19 -0800 Subject: [PATCH] Fix CLI tests.... have them install [all] --- packages/markitdown/pyproject.toml | 11 ++++++++++- packages/markitdown/src/markitdown/_markitdown.py | 1 - 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/packages/markitdown/pyproject.toml b/packages/markitdown/pyproject.toml index a321fee..3343eae 100644 --- a/packages/markitdown/pyproject.toml +++ b/packages/markitdown/pyproject.toml @@ -29,7 +29,6 @@ dependencies = [ "mammoth", "markdownify~=0.14.1", "numpy", - "python-pptx", "pandas", "openpyxl", "xlrd", @@ -46,6 +45,10 @@ dependencies = [ "azure-identity" ] +[project.optional-dependencies] +all = ["python-pptx"] +pptx = ["python-pptx"] + [project.urls] Documentation = "https://github.com/microsoft/markitdown#readme" Issues = "https://github.com/microsoft/markitdown/issues" @@ -57,6 +60,12 @@ path = "src/markitdown/__about__.py" [project.scripts] markitdown = "markitdown.__main__:main" +[tool.hatch.envs.default] +features = ["all"] + +[tool.hatch.envs.hatch-test] +features = ["all"] + [tool.hatch.envs.types] extra-dependencies = [ "mypy>=1.0.0", diff --git a/packages/markitdown/src/markitdown/_markitdown.py b/packages/markitdown/src/markitdown/_markitdown.py index e80e089..8f1bd46 100644 --- a/packages/markitdown/src/markitdown/_markitdown.py +++ b/packages/markitdown/src/markitdown/_markitdown.py @@ -354,7 +354,6 @@ class MarkItDown: try: res = converter.convert(local_path, **_kwargs) except Exception: - print("HERE!") failed_attempts.append( FailedConversionAttempt( converter=converter, exc_info=sys.exc_info()