Fix CLI tests.... have them install [all]

This commit is contained in:
Adam Fourney 2025-02-28 16:57:19 -08:00
parent 10da043ec6
commit b9487b6b6d
2 changed files with 10 additions and 2 deletions

View file

@ -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",

View file

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