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()