Upgrade mammoth to 1.11.0 (#1452)

This commit is contained in:
afourney
2025-10-20 16:07:39 -07:00
committed by GitHub
parent 447c047731
commit 3d4fe3cdcc
2 changed files with 2 additions and 9 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ dependencies = [
[project.optional-dependencies]
all = [
"python-pptx",
"mammoth~=1.10.0",
"mammoth~=1.11.0",
"pandas",
"openpyxl",
"xlrd",
@@ -50,7 +50,7 @@ all = [
"azure-identity"
]
pptx = ["python-pptx"]
docx = ["mammoth~=1.10.0", "lxml"]
docx = ["mammoth~=1.11.0", "lxml"]
xlsx = ["pandas", "openpyxl"]
xls = ["pandas", "xlrd"]
pdf = ["pdfminer.six"]
@@ -15,13 +15,6 @@ from .._exceptions import MissingDependencyException, MISSING_DEPENDENCY_MESSAGE
_dependency_exc_info = None
try:
import mammoth
import mammoth.docx.files
def mammoth_files_open(self, uri):
warn("DOCX: processing of r:link resources (e.g., linked images) is disabled.")
return io.BytesIO(b"")
mammoth.docx.files.Files.open = mammoth_files_open
except ImportError:
# Preserve the error and stack trace for later