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", "mammoth",
"markdownify~=0.14.1", "markdownify~=0.14.1",
"numpy", "numpy",
"python-pptx",
"pandas", "pandas",
"openpyxl", "openpyxl",
"xlrd", "xlrd",
@ -46,6 +45,10 @@ dependencies = [
"azure-identity" "azure-identity"
] ]
[project.optional-dependencies]
all = ["python-pptx"]
pptx = ["python-pptx"]
[project.urls] [project.urls]
Documentation = "https://github.com/microsoft/markitdown#readme" Documentation = "https://github.com/microsoft/markitdown#readme"
Issues = "https://github.com/microsoft/markitdown/issues" Issues = "https://github.com/microsoft/markitdown/issues"
@ -57,6 +60,12 @@ path = "src/markitdown/__about__.py"
[project.scripts] [project.scripts]
markitdown = "markitdown.__main__:main" markitdown = "markitdown.__main__:main"
[tool.hatch.envs.default]
features = ["all"]
[tool.hatch.envs.hatch-test]
features = ["all"]
[tool.hatch.envs.types] [tool.hatch.envs.types]
extra-dependencies = [ extra-dependencies = [
"mypy>=1.0.0", "mypy>=1.0.0",

View file

@ -354,7 +354,6 @@ class MarkItDown:
try: try:
res = converter.convert(local_path, **_kwargs) res = converter.convert(local_path, **_kwargs)
except Exception: except Exception:
print("HERE!")
failed_attempts.append( failed_attempts.append(
FailedConversionAttempt( FailedConversionAttempt(
converter=converter, exc_info=sys.exc_info() converter=converter, exc_info=sys.exc_info()